{"id":"CVE-2026-58492","published":"2026-07-10T16:22:37Z","modified":"2026-07-10T16:48:28Z","title":"grav-plugin-database: SQL Injection in PDO::tableExists() due to Unsanitized Table Name Interpolation","vendor":"getgrav","product":"grav","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.2,"severity":"CRITICAL","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00525,"percentile":0.37901,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/getgrav/grav/security/advisories/GHSA-8jxg-4pw9-xcwf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/getgrav/grav-plugin-database/commit/f6d058785c9e23df7efc5ea7556f8746fef286df","tags":["x_refsource_MISC"]},{"url":"https://github.com/getgrav/grav-plugin-database/releases/tag/1.2.0","tags":["x_refsource_MISC"]}],"priority":{"score":14.0,"factors":[{"name":"EPSS percentile","points":7.58},{"name":"CVSS severity","points":6.44}]},"vendorSlug":"getgrav","affectedVersions":[{"vendor":"getgrav","product":"grav","versions":["< 1.2.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-10T16:47:46.202785Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-42947","exploited":false,"provenance":"source"}}