CVE Explorer
CVE-2026-25495
Craft is a platform for creating digital experiences. In Craft versions 4.0.0-RC1 through 4.16.17 and 5.0.0-RC1 through 5.8.21, the element-indexes/get-elements endpoint is vulnerable to SQL Injection via the criteria[orderBy] parameter (JSON body). The application fails to sanitize this input before using it in the database query. An attacker with Control Panel access can inject arbitrary SQL into the ORDER BY clause by omitting viewState[order] (or setting both to the same payload). This issue
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.8.22"},{"status":"affected","version":">= 4.0.0-RC1, < 4.16.18"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:26faf55e9ba32dcac847ee94581cc1da66bda0aefcafa65358b345f5f34c5f5a · sha256:e1751abc8f4090b0… · /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:26faf55e9ba32dcac847ee94581cc1da66bda0aefcafa65358b345f5f34c5f5a · sha256:e1751abc8f4090b0… · /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:26faf55e9ba32dcac847ee94581cc1da66bda0aefcafa65358b345f5f34c5f5a · sha256:e1751abc8f4090b0… · /containers/cna/problemTypes/0/descriptions/0
Source references
3 source assertions{"name":"https://github.com/craftcms/cms/commit/96c60d775c644ff0a0276da52fe29e11d4cd38d2","tags":["x_refsource_MISC"],"url":"https://github.com/craftcms/cms/commit/96c60d775c644ff0a0276da52fe29e11d4cd38d2"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:26faf55e9ba32dcac847ee94581cc1da66bda0aefcafa65358b345f5f34c5f5a · sha256:e1751abc8f4090b0… · /containers/cna/references/1
{"name":"https://github.com/craftcms/cms/releases/tag/5.8.22","tags":["x_refsource_MISC"],"url":"https://github.com/craftcms/cms/releases/tag/5.8.22"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:26faf55e9ba32dcac847ee94581cc1da66bda0aefcafa65358b345f5f34c5f5a · sha256:e1751abc8f4090b0… · /containers/cna/references/2
{"name":"https://github.com/craftcms/cms/security/advisories/GHSA-2453-mppf-46cj","tags":["x_refsource_CONFIRM"],"url":"https://github.com/craftcms/cms/security/advisories/GHSA-2453-mppf-46cj"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:26faf55e9ba32dcac847ee94581cc1da66bda0aefcafa65358b345f5f34c5f5a · sha256:e1751abc8f4090b0… · /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.