CVE Explorer
CVE-2026-31858
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 p
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"cms","vendor":"craftcms","versions":[{"status":"affected","version":">= 5.0.0-RC1, <= 5.9.8"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:149eae9a6edc4c579843ae6bfd28dad1b8f6a8b242217f05a0375fa64824149f · sha256:36ac66797351d4a4… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"NETWORK","baseScore":8.7,"baseSeverity":"HIGH","privilegesRequired":"LOW","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"HIGH","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH"},"metric_type":"cvssV4_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:149eae9a6edc4c579843ae6bfd28dad1b8f6a8b242217f05a0375fa64824149f · sha256:36ac66797351d4a4… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
1 source assertion{"cweId":"CWE-89","description":"CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:149eae9a6edc4c579843ae6bfd28dad1b8f6a8b242217f05a0375fa64824149f · sha256:36ac66797351d4a4… · /containers/cna/problemTypes/0/descriptions/0
Source references
2 source assertions{"name":"https://github.com/craftcms/cms/commit/e1a3dd669ae31491b86ad996e88a1d30d33d9a42","tags":["x_refsource_MISC"],"url":"https://github.com/craftcms/cms/commit/e1a3dd669ae31491b86ad996e88a1d30d33d9a42"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:149eae9a6edc4c579843ae6bfd28dad1b8f6a8b242217f05a0375fa64824149f · sha256:36ac66797351d4a4… · /containers/cna/references/1
{"name":"https://github.com/craftcms/cms/security/advisories/GHSA-g7j6-fmwx-7vp8","tags":["x_refsource_CONFIRM"],"url":"https://github.com/craftcms/cms/security/advisories/GHSA-g7j6-fmwx-7vp8"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:149eae9a6edc4c579843ae6bfd28dad1b8f6a8b242217f05a0375fa64824149f · sha256:36ac66797351d4a4… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.