CVE-2026-58492
CRITICALgrav-plugin-database: SQL Injection in PDO::tableExists() due to Unsanitized Table Name Interpolation
Title source: cnaDescription
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.
References (3)
Core 3
Core References
X_Refsource_Confirm x_refsource_confirm
https://github.com/getgrav/grav/security/advisories/GHSA-8jxg-4pw9-xcwf
X_Refsource_Misc x_refsource_misc
https://github.com/getgrav/grav-plugin-database/commit/f6d058785c9e23df7efc5ea7556f8746fef286df
X_Refsource_Misc x_refsource_misc
https://github.com/getgrav/grav-plugin-database/releases/tag/1.2.0
Scores
CVSS v4
9.2
EPSS
0.0030
EPSS Percentile
22.5%
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
CISA SSVC
Vulnrichment
Exploitation
poc
Automatable
no
Technical Impact
partial
Details
CWE
CWE-89
Status
published
Products (1)
getgrav/grav
< 1.2.0
Published
Jul 10, 2026
Tracked Since
Jul 10, 2026