Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-25498: CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') in craftcms cms

0
High
VulnerabilityCVE-2026-25498cvecve-2026-25498cwe-470
Published: Mon Feb 09 2026 (02/09/2026, 19:55:06 UTC)
Source: CVE Database V5
Vendor/Project: craftcms
Product: cms

Description

CVE-2026-25498 is a high-severity Remote Code Execution vulnerability in Craft CMS versions 4. 0. 0-RC1 through 4. 16. 17 and 5. 0. 0-RC1 through 5. 8. 21. It arises from unsafe reflection due to improper sanitization of user-supplied configuration data in the assembleLayoutFromPost() function, allowing authenticated administrators to inject malicious Yii2 behavior configurations.

AI-Powered Analysis

AILast updated: 02/09/2026, 20:30:41 UTC

Technical Analysis

CVE-2026-25498 is a critical Remote Code Execution vulnerability identified in Craft CMS, a widely used platform for building digital experiences. The flaw exists in the assembleLayoutFromPost() function within src/services/Fields.php, where user-supplied configuration data is passed unsanitized to the Craft::createObject() method. This unsafe reflection (CWE-470) allows authenticated administrators to inject malicious Yii2 behavior configurations, which the system then instantiates, leading to arbitrary code execution on the server. The vulnerability affects Craft CMS versions from 4.0.0-RC1 up to 4.16.17 and 5.0.0-RC1 up to 5.8.21. It is an unpatched variant of a previously addressed behavior injection vulnerability (CVE-2025-68455) but exploits a different code path, indicating a recurring issue with input validation in the CMS. The CVSS 4.0 base score is 8.6, reflecting high severity due to network attack vector, low attack complexity, no user interaction, but requiring high privileges (authenticated administrator). The vulnerability impacts confidentiality, integrity, and availability by enabling attackers to execute arbitrary system commands, potentially leading to full system compromise. Although no known exploits are reported in the wild, the presence of this vulnerability in production environments poses a significant risk. The issue is resolved in Craft CMS version 5.8.22, and users are strongly advised to upgrade. The vulnerability underscores the importance of rigorous input validation and secure object instantiation practices in web applications.

Potential Impact

For European organizations, the impact of CVE-2026-25498 can be substantial, especially for those relying on Craft CMS for their digital platforms. Successful exploitation allows an authenticated administrator to execute arbitrary commands on the server, potentially leading to full system compromise, data breaches, service disruption, and lateral movement within the network. This can result in loss of sensitive customer data, intellectual property theft, defacement of websites, and operational downtime. Given that Craft CMS is used by various enterprises, media companies, and government agencies in Europe, the risk extends to critical infrastructure and services. The requirement for administrator authentication limits exposure but does not eliminate risk, as insider threats or compromised administrator credentials could be leveraged. The vulnerability could also be exploited in supply chain attacks if attackers gain access to CMS administrative accounts. The high severity and potential for widespread impact necessitate urgent remediation to protect confidentiality, integrity, and availability of affected systems.

Mitigation Recommendations

1. Immediate upgrade to Craft CMS version 5.8.22 or later, where the vulnerability is patched. 2. Restrict administrator access strictly on a need-to-use basis and enforce strong multi-factor authentication (MFA) to reduce risk of credential compromise. 3. Conduct thorough audits of administrator accounts and revoke any unnecessary privileges. 4. Monitor CMS logs for unusual behavior indicative of exploitation attempts, such as unexpected configuration changes or command executions. 5. Implement network segmentation to isolate CMS servers from critical backend systems to limit lateral movement. 6. Employ Web Application Firewalls (WAFs) with custom rules to detect and block suspicious payloads targeting the vulnerable endpoints. 7. Regularly review and sanitize all user-supplied inputs, especially those related to configuration or code instantiation. 8. Educate administrators on phishing and social engineering risks to prevent credential theft. 9. Maintain up-to-date backups and test restoration procedures to recover quickly from potential compromises. 10. Engage in proactive vulnerability scanning and penetration testing focused on CMS components to identify residual risks.

Need more detailed analysis?Upgrade to Pro Console

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-02-02T16:31:35.824Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 698a408f4b57a58fa16e1631

Added to database: 2/9/2026, 8:16:15 PM

Last enriched: 2/9/2026, 8:30:41 PM

Last updated: 2/9/2026, 10:57:58 PM

Views: 5

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats