{"id":"CVE-2026-31858","published":"2026-03-11T17:35:07Z","modified":"2026-03-12T14:01:14Z","title":"CraftCMS's `ElementSearchController` Affected by Blind SQL Injection","vendor":"Craft CMS","product":"cms","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00364,"percentile":0.30111,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/craftcms/cms/security/advisories/GHSA-g7j6-fmwx-7vp8","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/craftcms/cms/commit/e1a3dd669ae31491b86ad996e88a1d30d33d9a42","tags":["x_refsource_MISC"]}],"priority":{"score":12.1,"factors":[{"name":"EPSS percentile","points":6.02},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"craft-cms","affectedVersions":[{"vendor":"craftcms","product":"cms","versions":[">= 5.0.0-RC1, <= 5.9.8"]}],"affected":[{"ecosystem":"Packagist","package":"craftcms/cms","vulnerableRanges":[">=5.0.0-RC1, <5.9.9"],"patched":["5.9.9"],"from":["GHSA-g7j6-fmwx-7vp8"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-11259","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-craft-cms-cms-cve-2026-25495","parents":[{"from":"CVE-2026-25495","to":"CVE-2026-31858","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-g7j6-fmwx-7vp8","via":"reference","url":"https://github.com/craftcms/cms/security/advisories/GHSA-2453-mppf-46cj"}]}],"packageHistory":[{"cve":"CVE-2026-29113","published":"2026-03-10","fixed":"5.9.7","kev":false},{"cve":"CVE-2026-31859","published":"2026-03-11","fixed":"5.9.7","kev":false,"link":{"from":"CVE-2026-31859","to":"CVE-2026-31858","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:craftcms/cms","fromFixed":"5.9.7","toFixed":"5.9.9","daysApart":0}]}},{"cve":"CVE-2026-31857","published":"2026-03-11","fixed":"5.9.9","kev":false},{"cve":"CVE-2026-31858","published":"2026-03-11","fixed":"5.9.9","kev":false},{"cve":"CVE-2026-32262","published":"2026-03-16","fixed":"5.9.11","kev":false},{"cve":"CVE-2026-32263","published":"2026-03-16","fixed":"5.9.11","kev":false},{"cve":"CVE-2026-32264","published":"2026-03-16","fixed":"5.9.11","kev":false}],"package":"Packagist:craftcms/cms"}}