CVE-2026-58492

Source
https://cve.org/CVERecord?id=CVE-2026-58492
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-58492.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-58492
Aliases
  • GHSA-8jxg-4pw9-xcwf
Published
2026-07-10T16:22:37.052Z
Modified
2026-07-15T01:48:56.493800909Z
Severity
  • 9.2 (Critical) CVSS_V4 - 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 CVSS Calculator
Summary
grav-plugin-database: SQL Injection in PDO::tableExists() due to Unsanitized Table Name Interpolation
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-89"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58492.json",
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/getgrav/grav-plugin-database

Affected ranges

Type
GIT
Repo
https://github.com/getgrav/grav-plugin-database
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
{
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "1.2.0"
        }
    ],
    "source": [
        "AFFECTED_FIELD",
        "REFERENCES"
    ]
}

Affected versions

1.*
1.0.0
1.0.1
1.0.2
1.1.0
1.1.1
1.1.2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-58492.json"