Skip to content
Heist/ feed
Back to feed
Critical

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

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-58492
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 19:37 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 10 Jul 2026, 16:22 UTC

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.

osv:CVE-2026-58492
Complete source record
{
  "id": "eb15f98a7cf806074a0355688e410e1b98d168791097d7edfc62650de7587bf5",
  "url": "https://osv.dev/vulnerability/CVE-2026-58492",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "grav-plugin-database: SQL Injection in PDO::tableExists() due to Unsanitized Table Name Interpolation",
    "summary": "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.",
    "evidence": "osv:CVE-2026-58492",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2026-58492",
      "aliases": [
        "CVE-2026-58492",
        "GHSA-8jxg-4pw9-xcwf"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/getgrav/grav-plugin-database",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "4fe933eafa564a7411777ba2a47cfacf89d200df"
                },
                {
                  "fixed": "f6d058785c9e23df7efc5ea7556f8746fef286df"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "1.2.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "f6d058785c9e23df7efc5ea7556f8746fef286df"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "4fe933eafa564a7411777ba2a47cfacf89d200df"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "1.2.0"
                  }
                ]
              }
            }
          ],
          "versions": [
            "1.1.2",
            "1.1.1",
            "1.1.0",
            "1.0.2",
            "1.0.1",
            "1.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-58492.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:22.781168745Z",
      "provider": "osv",
      "references": [
        "https://github.com/getgrav/grav-plugin-database/releases/tag/1.2.0",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58492.json",
        "https://github.com/getgrav/grav/security/advisories/GHSA-8jxg-4pw9-xcwf",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-58492",
        "https://github.com/getgrav/grav-plugin-database/commit/f6d058785c9e23df7efc5ea7556f8746fef286df"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-89"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58492.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-58492",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 489248,
  "published_at": "2026-07-10T16:22:37.052+00:00"
}