Skip to main content

Craft CMS CVE-2026-56382

| EUVDEUVD-2026-38176 HIGH
Code Injection (CWE-94)
8.6
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Obtain Craft CMS admin credentials
  2. Delivery
    Authenticate to /admin control panel
  3. Exploit
    Send crafted POST to fields/render-card-preview with malicious fieldLayoutConfig
  4. Install
    Yii2 instantiates layout with attacker-controlled 'on init' handler
  5. C2
    Arbitrary PHP executes in web server context
  6. Execute
    Exfiltrate CRAFT_SECURITY_KEY and DB credentials
  7. Impact
    Pivot to full application and database takeover

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires valid Craft CMS admin-level authentication to reach the FieldsController::actionRenderCardPreview() endpoint (the CVSS vector specifies PR:H, confirming high-privilege admin access is mandatory, not merely an authenticated low-privilege user). The vulnerable code path is present in default installations of Craft CMS 5.5.0 through 5.9.13 - no non-default configuration toggle is needed beyond the standard CMS being reachable over the network. Limiting factors: admin credentials are required (PR:H), and exploitation is bounded to deployments where the /admin control panel is network-reachable to the attacker, so installations behind VPN, IP allowlists, or SSO with MFA on the admin role materially reduce exposure.

Impact

The CVSS 4.0 vector AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H produces an 8.6 (High), reflecting network-reachable exploitation against the admin control panel with high impact across confidentiality, integrity, and availability - but the PR:H requirement (admin authentication) is the critical limiter. There is no EPSS score, KEV listing, or SSVC decision data provided, and no public exploit has been identified, though the VulnCheck advisory provides detailed technical specifics that materially lower the barrier to weaponization. Practical risk concentrates on Craft CMS deployments where admin credentials may be obtained via phishing, credential reuse, or chained with other flaws - once that prerequisite is met, exploitation is straightforward and yields the CRAFT_SECURITY_KEY, which enables further forgery attacks. This is a real priority for any organization running Craft CMS in the affected range, but not an emergency-patch-tonight scenario absent evidence of in-the-wild activity.

Exploit ScenarioDerived

An attacker who has obtained Craft CMS admin credentials (via phishing, credential stuffing, or a separately compromised account) logs into the control panel and sends a crafted POST request to the fields/render-card-preview endpoint with a fieldLayoutConfig payload containing an 'on init' Yii2 event handler that executes arbitrary PHP. The handler reads environment variables and returns the CRAFT_SECURITY_KEY and database credentials, granting the attacker full application takeover and the ability to forge signed tokens. The VulnCheck advisory provides technical detail sufficient for skilled attackers to reproduce, even though no weaponized PoC is publicly identified at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 22, 2026

Authenticated remote code execution in Craft CMS versions 5.5.0 through 5.9.13 allows admin users to execute arbitrary PHP by injecting Yii2 event handlers via the fieldLayoutConfig POST parameter to FieldsController::actionRenderCardPreview(). The flaw stems from missing Component::cleanseConfig() sanitization, enabling disclosure of environment variables including database credentials and CRAFT_SECURITY_KEY. No public exploit identified at time of analysis, though VulnCheck has published a detailed advisory describing the attack technique.

RemediationAI

Vendor-released patch: upgrade craftcms/cms to version 5.9.14 or later via composer (composer require craftcms/cms:^5.9.14), as documented in the vendor advisory at https://github.com/craftcms/cms/security/advisories/GHSA-86vw-x4ww-x467 and detailed by VulnCheck at https://www.vulncheck.com/advisories/craft-cms-remote-code-execution-via-missing-config-sanitization-in-fieldscontroller. As a temporary compensating control if immediate patching is not possible, restrict network access to the /admin control panel (specifically the fields/render-card-preview endpoint) via IP allowlisting at the web server or WAF tier - note this breaks legitimate remote admin access for users outside the allowlist. Additionally, rotate any admin credentials suspected of compromise and, post-upgrade, rotate the CRAFT_SECURITY_KEY and database credentials in case they were already exfiltrated, since the key drives cryptographic operations across the application.

Affected VersionsENISA

CMS 5.5.0 <5.9.14

Affected Packages

composer craftcms/cms fix: 5.9.14
euvd cms fix: 5.9.14

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in composer, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Craft CMS is a PHP-based content management system built on the Yii2 framework (composer package craftcms/cms). Yii2 supports configuration-driven object instantiation where array keys prefixed with 'on' (e.g., 'on init') register event handlers that fire during object lifecycle events. The vulnerability is a classic CWE-94 Code Injection: the FieldsController::actionRenderCardPreview() method passes user-supplied fieldLayoutConfig POST data directly to Fields::createLayout() without first invoking Component::cleanseConfig(), which is Craft's documented sanitizer that strips dangerous keys like 'as' (behaviors) and 'on' (event handlers) from configuration arrays. The CPE cpe:2.3:a:craftcms:cms:*:*:*:*:*:*:*:* confirms the craftcms/cms product family is universally affected within the stated version range.

Know when Cms gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 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
vuln.today AI 7.2 HIGH

Network-reachable admin endpoint (AV:N/AC:L), requires admin authentication (PR:H), no user interaction, and arbitrary PHP execution yields full C/I/A impact within the application scope.

3.1 AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
High
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Jun 21, 2026 - 15:31 EUVD

DescriptionCVE.org

Craft CMS (composer package craftcms/cms) versions >= 5.5.0 and <= 5.9.13 contain a remote code execution vulnerability in the FieldsController::actionRenderCardPreview() method, which passes the fieldLayoutConfig POST parameter directly to Fields::createLayout() without calling Component::cleanseConfig(). An authenticated admin user can inject Yii2 event handlers (e.g., 'on init' keys) via the fieldLayoutConfig parameter to execute arbitrary PHP code and disclose sensitive information (such as environment variables containing database credentials and CRAFT_SECURITY_KEY). The issue is fixed in version 5.9.14.

Executive ViewAI

Why It Matters

A critical vulnerability in Craft CMS (versions 5.5.0-5.9.13) could allow authenticated administrators with malicious intent to extract sensitive database credentials and encryption keys, posing a direct threat to data security and system integrity. Organizations running affected versions should prioritize patching to prevent potential insider threats and credential compromise.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.5%
Top 62% exploitable
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Social Media
2
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

63
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +43
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Cms

View all
CVE-2020-7357 CRITICAL POC
9.9 Aug 06

Cayin CMS suffers from an authenticated OS semi-blind command injection vulnerability using default credentials. Rated c

CVE-2012-4405 MEDIUM
6.8 Sep 18

Multiple integer underflows in the icmLut_allocate function in International Color Consortium (ICC) Format library (iccl

CVE-2021-47753 CRITICAL POC
9.8 Jan 15

phpKF CMS 3.00 Beta allows unauthenticated PHP file upload by disguising it as a PNG, then renaming it for execution. Po

CVE-2019-9874 CRITICAL POC
9.8 May 31

Deserialization of Untrusted Data in the Sitecore.Security.AntiCSRF (aka anti CSRF) module in Sitecore CMS 7.0 to 7.2 an

CVE-2019-9875 HIGH POC
8.8 May 31

Deserialization of Untrusted Data in the anti CSRF module in Sitecore through 9.1 allows an authenticated attacker to ex

CVE-2026-113358 HIGH POC
8.7 Oct 20

Unauthenticated file disclosure in LavaLite CMS through 10.1.2 allows remote attackers to download private stored files

CVE-2012-5894 HIGH POC
7.5 Nov 17

SQL injection vulnerability in hava_post.php in Havalite CMS 1.1.0 and earlier allows remote attackers to execute arbitr

CVE-2012-5893 MEDIUM POC
6.8 Nov 17

Unrestricted file upload vulnerability in hava_upload.php in Havalite CMS 1.1.0 and earlier allows remote attackers to e

CVE-2015-2083 MEDIUM POC
6.8 Feb 25

Cross-site request forgery (CSRF) vulnerability in Ilch CMS allows remote attackers to hijack the authentication of admi

CVE-2012-5919 MEDIUM POC
4.3 Nov 19

Multiple cross-site scripting (XSS) vulnerabilities in Havalite 1.0.4 and earlier allow remote attackers to inject arbit

CVE-2025-5429 MEDIUM POC
6.3 Jun 02

A security vulnerability in juzaweb CMS (CVSS 6.3). Risk factors: public PoC available.

CVE-2025-5428 MEDIUM POC
6.3 Jun 02

A security vulnerability in juzaweb CMS (CVSS 6.3). Risk factors: public PoC available.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy