CVE-2026-58492: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in getgrav grav
grav-plugin-database is the database plugin for Grav CMS. Prior to 1.2.0, the PDO::tableExists method interpolates its table argument directly into a raw SQL query string without sanitization, escaping, quoting, or whitelisting, allowing attacker-controlled table names passed by consuming plugin or developer code to execute arbitrary SQL against the configured database. This issue is fixed in version 1.2.0.
AI Analysis
Technical Summary
The grav-plugin-database for Grav CMS versions before 1.2.0 contains a SQL injection vulnerability (CWE-89) in the PDO::tableExists method. This method interpolates the table name argument directly into a SQL query string without sanitization, escaping, quoting, or whitelisting. As a result, an attacker who can control the table name parameter via plugin or developer code can execute arbitrary SQL commands on the database. The vulnerability is fixed in version 1.2.0.
Potential Impact
Successful exploitation allows an unauthenticated attacker to execute arbitrary SQL commands on the database, potentially leading to data disclosure, data modification, or other database compromises. The CVSS 4.0 score is 9.2 (critical), indicating a high-impact vulnerability with network attack vector and no user interaction required.
Mitigation Recommendations
Upgrade grav-plugin-database to version 1.2.0 or later, where this SQL injection vulnerability is fixed. Since no official patch or temporary fix details are provided beyond this version update, applying this upgrade is the recommended remediation.
CVE-2026-58492: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in getgrav grav
Description
grav-plugin-database is the database plugin for Grav CMS. Prior to 1.2.0, the PDO::tableExists method interpolates its table argument directly into a raw SQL query string without sanitization, escaping, quoting, or whitelisting, allowing attacker-controlled table names passed by consuming plugin or developer code to execute arbitrary SQL against the configured database. This issue is fixed in version 1.2.0.
CVSS v4.0
Score 9.2critical
Affected software
pkg:github/getgrav/grav-plugin-databaseRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The grav-plugin-database for Grav CMS versions before 1.2.0 contains a SQL injection vulnerability (CWE-89) in the PDO::tableExists method. This method interpolates the table name argument directly into a SQL query string without sanitization, escaping, quoting, or whitelisting. As a result, an attacker who can control the table name parameter via plugin or developer code can execute arbitrary SQL commands on the database. The vulnerability is fixed in version 1.2.0.
Potential Impact
Successful exploitation allows an unauthenticated attacker to execute arbitrary SQL commands on the database, potentially leading to data disclosure, data modification, or other database compromises. The CVSS 4.0 score is 9.2 (critical), indicating a high-impact vulnerability with network attack vector and no user interaction required.
Mitigation Recommendations
Upgrade grav-plugin-database to version 1.2.0 or later, where this SQL injection vulnerability is fixed. Since no official patch or temporary fix details are provided beyond this version update, applying this upgrade is the recommended remediation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-30T20:21:25.812Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a511ed668715ace43d68a00
Added to database: 07/10/2026, 16:33:26 UTC
Last enriched: 07/10/2026, 16:47:29 UTC
Last updated: 08/24/2026, 14:53:26 UTC
Views: 87
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.