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

- Severity: Critical 9.2 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2026-07-10T16:22:37.052Z
- Modified: 2026-10-25T15:10:00.147Z
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- getgrav grav: < 1.2.0

## References

- <https://github.com/getgrav/grav/security/advisories/GHSA-8jxg-4pw9-xcwf>
- <https://github.com/getgrav/grav-plugin-database/commit/f6d058785c9e23df7efc5ea7556f8746fef286df>
- <https://github.com/getgrav/grav-plugin-database/releases/tag/1.2.0>

## Sources

- CVE List: [CVE-2026-58492](https://www.cve.org/CVERecord?id=CVE-2026-58492), CVE Terms of Use, modified 2026-07-10
- NVD: [CVE-2026-58492](https://nvd.nist.gov/vuln/detail/CVE-2026-58492), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-58492 · Whole record: https://cve.day/CVE-2026-58492.json · Rebuilt by cve.day 2026-11-25T22:59:27.655Z
