Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. craftcms/cms
  4. ›
  5. CVE-2026-25498

CVE-2026-25498: Craft CMS Vulnerable to potential authenticated Remote Code Execution via malicious attached Behavior

February 9, 2026

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 GHSA-255j-qw47-wjh5, affecting different endpoints through a separate code path.


References

  • github.com/advisories/GHSA-7jx7-3846-m7w7
  • github.com/craftcms/cms
  • github.com/craftcms/cms/releases/tag/4.16.18
  • github.com/craftcms/cms/releases/tag/5.8.22
  • github.com/craftcms/cms/security/advisories/GHSA-7jx7-3846-m7w7
  • nvd.nist.gov/vuln/detail/CVE-2026-25498

Code Behaviors & Features

Detect and mitigate CVE-2026-25498 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 4.0.0-RC1 before 4.16.18, all versions starting from 5.0.0-RC1 before 5.8.22

Fixed versions

  • 5.8.22
  • 4.16.18

Solution

Upgrade to versions 4.16.18, 5.8.22 or above.

Impact 7.2 HIGH

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')

Source file

packagist/craftcms/cms/CVE-2026-25498.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 24 Mar 2026 12:18:12 +0000.