CVE-2026-58492 Details
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.
A SQL injection vulnerability has been identified in the Grav CMS Database Plugin, specifically in versions prior to 1.2.0. The issue arises in the PDO::tableExists method, which improperly interpolates table names into SQL queries without adequate sanitization or validation. This flaw allows attacker-controlled table names to execute arbitrary SQL commands against the database. The vulnerability can be exploited by passing malicious table names through consuming plugin or developer code.
Users can update to Grav Database Plugin version 1.2.0 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 10, 2026CISA-ADP
Assessed Jul 10, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/getgrav/grav-plugin-database/commit/f6d058785c9e23df7efc5ea7556f8746fef286df | [email protected] | Source CodeVendor |
| https://github.com/getgrav/grav-plugin-database/releases/tag/1.2.0 | [email protected] | Release NotesVendor |
| https://github.com/getgrav/grav/security/advisories/GHSA-8jxg-4pw9-xcwf | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Grav | All versions |
CPE
Remediation
| |
| Grav-plugin-database | 1.1.2 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 25, 2026 | CVE Translated | [email protected] |
| Jul 10, 2026 | New CVE Received | [email protected] |
| Jul 10, 2026 | CVE Modified | CISA-ADP |
Volerion