# CVE-2026-25498: Craft has a potential authenticated Remote Code Execution via malicious attached Behavior

- Severity: High 8.6 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.10%, higher than 66% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-02-09T19:55:06.558Z
- Modified: 2026-06-17T10:24:44.610Z
- Also known as: GHSA-7jx7-3846-m7w7
- Related: CVE-2026-32263, CVE-2026-32264
- Weaknesses: CWE-470
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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 vulnerability represents an unpatched variant of the behavior injection vulnerability addressed in CVE-2025-68455, affecting different endpoints through a separate code path. This vulnerability is fixed in 5.8.22.

(As written by CVE List.)

## Affected

- craftcms cms: >= 5.0.0-RC1, < 5.8.22; >= 4.0.0-RC1, < 4.16.18
- craftcms/cms (Packagist): from 5.0.0-RC1 before 5.8.22; from 4.0.0-RC1 before 4.16.18
- craftcms craft_cms: from >4.0.0 before 4.16.18; from >5.0.0 before 5.8.22; 4.0.0; 5.0.0

## Every score

- GitHub_M: CVSS:4.0 8.6 High `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`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/craftcms/cms/security/advisories/GHSA-7jx7-3846-m7w7> (exploit, patch, vendor-advisory, web)
- <https://github.com/craftcms/cms/commit/395c64f0b80b507be1c862a2ec942eaacb353748> (patch, web)
- <https://github.com/craftcms/cms/releases/tag/5.8.22> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-25498> (advisory)
- <https://github.com/craftcms/cms> (package)
- <https://github.com/craftcms/cms/releases/tag/4.16.18> (web)

## Sources

- CVE List: [CVE-2026-25498](https://www.cve.org/CVERecord?id=CVE-2026-25498), CVE Terms of Use, modified 2026-02-10
- GitHub Advisory Database: [GHSA-7jx7-3846-m7w7](https://github.com/advisories/GHSA-7jx7-3846-m7w7), CC-BY-4.0, modified 2026-04-02
- NVD: [CVE-2026-25498](https://nvd.nist.gov/vuln/detail/CVE-2026-25498), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-25498 · Whole record: https://cve.day/CVE-2026-25498.json · Rebuilt by cve.day 2026-11-25T22:59:13.670Z
