SecurityContext

CVE-2026-25498: Craft CMS - Remote Code Execution

  • Cve: CVE-2026-25498
  • Name: Craft CMS - Remote Code Execution
  • 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.
  • Impact: Authenticated administrators can execute arbitrary system commands, potentially leading to full server compromise.
  • Remediation: Update to version 5.8.22 or later.
  • Vulnerability impact: remote_code_execution
  • Requirement type: logged_in
  • Requirements: Attacker must be an authenticated administrator
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.2
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.011
  • Epss percentile: 0.66343
  • Assignee: [email protected]
  • Published at: 2026-02-09T20:15:58Z
  • Age in days: 288
  • Modified at: 2026-06-17T10:24:44Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-25498
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: vulnerability type, hackerone

Cwe

IdName
CWE-470Use of Externally-Controlled Input to Select Classes or Code

Public exploits

UrlSourceAdded date
https://github.com/craftcms/cms/security/advisories/GHSA-7jx7-3846-m7w7nvd2026-02-09

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/craftcms/cms/commit/395c64f0b80b507be1c862a2ec942eaacb353748Patch
https://github.com/craftcms/cms/security/advisories/GHSA-7jx7-3846-m7w7Exploit, Patch, Vendor Advisory
https://github.com/craftcms/cms/releases/tag/5.8.22Release Notes

Products

ProductAffectedPlatform boundSourcesUrl
craftcms:craft_cms> 5.0.0, < 5.8.22; = 5.0.0; = 5.0.0 rc1; > 4.0.0, < 4.16.18; = 4.0.0; = 4.0.0 rc1; = 4.0.0 rc2; = 4.0.0 rc3nonvd/v1/products/craftcms/craft_cms

Projects

RepositoryLink kindsIndexedUrl
craftcms/cmscommit, fix, package, releases, security_advisoryyes/v1/repositories/craftcms/cms

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2026-02-09
  • Remote: yes
  • Authentication required: yes
  • Exposed hosts: 34344
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports