{
  "id": "CVE-2026-31858",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-31858",
  "published_at": "2026-03-11T17:35:07.438Z",
  "title": "CraftCMS's `ElementSearchController` Affected by Blind SQL Injection",
  "vendor": "craftcms",
  "product": "cms",
  "cvss": {
    "score": 8.8,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "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": "Craft is a content management system (CMS). The ElementSearchController::actionSearch() endpoint is missing the unset() protection that was added to ElementIndexesController in CVE-2026-25495. The exact same SQL injection vulnerability (including criteria[orderBy], the original advisory vector) works on this controller because the fix was never applied to it. Any authenticated control panel user (no admin required) can inject arbitrary SQL via criteria[where], criteria[orderBy], or other query properties, and extract the full database contents via boolean-based blind injection. Users should update to the patched 5.9.9 release to mitigate the issue.",
  "cwe": "CWE-89",
  "cpes": [
    "cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:*",
    "cpe:2.3:a:craftcms:craft_cms:5.0.0:-:*:*:*:*:*:*",
    "cpe:2.3:a:craftcms:craft_cms:5.0.0:rc1:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.7,
    "nvd": 8.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "craftcms",
        "product": "cms",
        "ranges": [
          "\u003e= 5.0.0-RC1, \u003c= 5.9.8"
        ],
        "fixed_in": null
      },
      {
        "vendor": "",
        "product": "craftcms/cms",
        "ranges": [
          "\u003e= 5.0.0-RC1, \u003c 5.9.9"
        ],
        "fixed_in": [
          "5.9.9"
        ],
        "ecosystem": "Packagist",
        "advisory": "GHSA-g7j6-fmwx-7vp8"
      }
    ],
    "upgrade": [
      "Upgrade craftcms/cms to 5.9.9 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/craftcms/cms/security/advisories/GHSA-g7j6-fmwx-7vp8"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/craftcms/cms/commit/e1a3dd669ae31491b86ad996e88a1d30d33d9a42"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
