{
  "id": "CVE-2026-58492",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-58492",
  "published_at": "2026-07-10T16:22:37.052Z",
  "title": "grav-plugin-database: SQL Injection in PDO::tableExists() due to Unsanitized Table Name Interpolation",
  "vendor": "getgrav",
  "product": "grav",
  "cvss": {
    "score": 9.2,
    "source": "cna",
    "vector": "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"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-89",
  "cvss_by_source": {
    "cna": 9.2
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "getgrav",
        "product": "grav",
        "ranges": [
          "\u003c 1.2.0"
        ],
        "fixed_in": [
          "1.2.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade grav to 1.2.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/getgrav/grav/security/advisories/GHSA-8jxg-4pw9-xcwf"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/getgrav/grav-plugin-database/commit/f6d058785c9e23df7efc5ea7556f8746fef286df"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/getgrav/grav-plugin-database/releases/tag/1.2.0"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
