Home

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.

PUBLISHED Reserved 2026-06-30 | Published 2026-07-10 | Updated 2026-07-10 | Assigner GitHub_M




CRITICAL: 9.2CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N

Problem types

CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Product status

< 1.2.0
affected

References

github.com/...v/grav/security/advisories/GHSA-8jxg-4pw9-xcwf

github.com/...ommit/f6d058785c9e23df7efc5ea7556f8746fef286df

github.com/getgrav/grav-plugin-database/releases/tag/1.2.0

cve.org (CVE-2026-58492)

nvd.nist.gov (CVE-2026-58492)

Download JSON