CVE Explorer
CVE-2026-25498
Craft is a platform for creating digital experiences. In versions 4.0.0-RC1 through 4.16.17 and 5.0.0-RC1 through 5.8.21, a Remote Code Execution (RCE) vulnerability exists in Craft CMS where the assembleLayoutFromPost() function in src/services/Fields.php fails to sanitize user-supplied configuration data before passing it to Craft::createObject(). This allows authenticated administrators to inject malicious Yii2 behavior configurations that execute arbitrary system commands on the server. This
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:e1b82460b6a2f12aab7214d1ad7efe73e0e3c82ca05dedff10e92f554c3e514b · sha256:20656db3da908b55… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"NETWORK","baseScore":8.6,"baseSeverity":"HIGH","privilegesRequired":"HIGH","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/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:e1b82460b6a2f12aab7214d1ad7efe73e0e3c82ca05dedff10e92f554c3e514b · sha256:20656db3da908b55… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
1 source assertion{"cweId":"CWE-470","description":"CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:e1b82460b6a2f12aab7214d1ad7efe73e0e3c82ca05dedff10e92f554c3e514b · sha256:20656db3da908b55… · /containers/cna/problemTypes/0/descriptions/0
Source references
3 source assertions{"name":"https://github.com/craftcms/cms/commit/395c64f0b80b507be1c862a2ec942eaacb353748","tags":["x_refsource_MISC"],"url":"https://github.com/craftcms/cms/commit/395c64f0b80b507be1c862a2ec942eaacb353748"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:e1b82460b6a2f12aab7214d1ad7efe73e0e3c82ca05dedff10e92f554c3e514b · sha256:20656db3da908b55… · /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:e1b82460b6a2f12aab7214d1ad7efe73e0e3c82ca05dedff10e92f554c3e514b · sha256:20656db3da908b55… · /containers/cna/references/2
{"name":"https://github.com/craftcms/cms/security/advisories/GHSA-7jx7-3846-m7w7","tags":["x_refsource_CONFIRM"],"url":"https://github.com/craftcms/cms/security/advisories/GHSA-7jx7-3846-m7w7"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:e1b82460b6a2f12aab7214d1ad7efe73e0e3c82ca05dedff10e92f554c3e514b · sha256:20656db3da908b55… · /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.