CVE Explorer
CVE-2026-31857
Craft is a content management system (CMS). Prior to 5.9.9 and 4.17.4, a Remote Code Execution vulnerability exists in the Craft CMS 5 conditions system. The BaseElementSelectConditionRule::getElementIds() method passes user-controlled string input through renderObjectTemplate() -- an unsandboxed Twig rendering function with escaping disabled. Any authenticated Control Panel user (including non-admin roles such as Author or Editor) can achieve full RCE by sending a crafted condition rule via sta
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.9"},{"status":"affected","version":">= 4.0.0-beta.1, < 4.17.4"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:5ae3898edd7b03c37dc0fac11db3b354c5097dd009e7ded817c09de86ca90cb0 · sha256:b06461e3ea43d6cf… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"NETWORK","baseScore":8.1,"baseSeverity":"HIGH","privilegesRequired":"NONE","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U","version":"4.0","vulnAvailabilityImpact":"HIGH","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH"},"metric_type":"cvssV4_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:5ae3898edd7b03c37dc0fac11db3b354c5097dd009e7ded817c09de86ca90cb0 · sha256:b06461e3ea43d6cf… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
1 source assertion{"cweId":"CWE-94","description":"CWE-94: Improper Control of Generation of Code ('Code Injection')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:5ae3898edd7b03c37dc0fac11db3b354c5097dd009e7ded817c09de86ca90cb0 · sha256:b06461e3ea43d6cf… · /containers/cna/problemTypes/0/descriptions/0
Source references
2 source assertions{"name":"https://github.com/craftcms/cms/commit/8d4903647dcfd31b8d40ed027e27082013347a80","tags":["x_refsource_MISC"],"url":"https://github.com/craftcms/cms/commit/8d4903647dcfd31b8d40ed027e27082013347a80"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:5ae3898edd7b03c37dc0fac11db3b354c5097dd009e7ded817c09de86ca90cb0 · sha256:b06461e3ea43d6cf… · /containers/cna/references/1
{"name":"https://github.com/craftcms/cms/security/advisories/GHSA-fp5j-j7j4-mcxc","tags":["x_refsource_CONFIRM"],"url":"https://github.com/craftcms/cms/security/advisories/GHSA-fp5j-j7j4-mcxc"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:5ae3898edd7b03c37dc0fac11db3b354c5097dd009e7ded817c09de86ca90cb0 · sha256:b06461e3ea43d6cf… · /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.