Remote Code Execution Vulnerability in Craft CMS by Craft
CVE-2026-25498
8.6HIGH
What is CVE-2026-25498?
Craft CMS exhibits a vulnerability where the function assembleLayoutFromPost() within src/services/Fields.php does not properly sanitize input from users. This flaw allows authenticated administrators to execute arbitrary commands on the server by injecting harmful Yii2 behavior configurations. The affected versions are 4.0.0-RC1 through 4.16.17 and 5.0.0-RC1 through 5.8.21. This is a new variant of a previously resolved behavior injection issue documented in CVE-2025-68455, which exploits different code execution paths. Users are encouraged to update to Craft CMS version 5.8.22 or later for protection.
Affected Version(s)
cms >= 5.0.0-RC1, < 5.8.22 < 5.0.0-RC1, 5.8.22
cms >= 4.0.0-RC1, < 4.16.18 < 4.0.0-RC1, 4.16.18
