CVE-2026-58492
JSON

9.2critical

grav-plugin-database: SQL Injection in PDO::tableExists() due to Unsanitized Table Name Interpolation

Severity
9.2critical CVSS:4.0 by GitHub_M
Exploit likelihood
0.30% (higher than 24% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

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.

Affected

Product or packageVersionsReported by
getgrav grav< 1.2.0CVE List

Classification

CWE-89

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

grav-plugin-database es el plugin de base de datos para Grav CMS. Antes de la versión 1.2.0, el método PDO::tableExists interpola su argumento de tabla directamente en una cadena de consulta SQL sin procesar sin sanitización, escape, entrecomillado o lista blanca, permitiendo que nombres de tabla controlados por el atacante pasados por un plugin consumidor o código de desarrollador ejecuten SQL arbitrario contra la base de datos configurada. Este problema está solucionado en la versión 1.2.0.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-58492 changed 2026-07-10CVE Terms of Use
NVDCVE-2026-58492 changed 2026-10-25Public domain