Getgrav grav
grav-plugin-database: SQL Injection in PDO::tableExists() due to Unsanitized Table Name Interpolation
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS9.2critical · scored by CNA · CWE-89
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
getgrav grav
- < 1.2.0
Fixed in 1.2.0
Mitigation
Upgrade grav to 1.2.0 or later.
References
- Vendor advisory github.com/getgrav/grav/security/advisories/GH…
- Patch github.com/getgrav/grav-plugin-database/commit…
- Release notes github.com/getgrav/grav-plugin-database/releas…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.