High severity · published Feb 9, 2026
CVE-2026-25498
Craft has a potential authenticated Remote Code Execution via malicious attached Behavior
7.2
CVSS
1.1%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
High
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)1.1% · higher than 66% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CM
cms · craftcms
>= 5.0.0-RC1, < 5.8.22; >= 4.0.0-RC1, < 4.16.18 · source: vendor
CC
Craft Cms · Craftcms
after 4.0.0 before 4.16.18; after 5.0.0 before 5.8.22; 4.0.0; 4.0.0; 4.0.0; 4.0.0; +2 more · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-25498
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-25498
Patch
https://github.com/craftcms/cms/commit/395c64f0b80b507be1c862a2ec942eaacb353748
Release Notes
https://github.com/craftcms/cms/releases/tag/5.8.22
Exploit
https://github.com/craftcms/cms/security/advisories/GHSA-7jx7-3846-m7w7
More from cms
10.0
CVE-2025-32432
Craft CMS Allows Remote Code Execution
9.8
CVE-2024-56145
RCE when PHP `register_argc_argv` config setting is enabled in craftcms/cms
8.1
CVE-2025-23209
Potential RCE with a compromised security key in craft/cms
9.8
CVE-2026-112776
Craft CMS 5.0.0 before 5.11.0 GraphQL Site-Scope Bypass via Mutations
9.8
CVE-2026-84795
Craft CMS before 5.10.11 Authentication Bypass via Admin Flag Inheritance
