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-2025-23209: CWE-94: Improper Control of Generation of Code ('Code Injection') in craftcms cms

0
High
VulnerabilityCVE-2025-23209cvecve-2025-23209cwe-94
Published: Sat Jan 18 2025 (01/18/2025, 00:32:54 UTC)
Source: CVE Database V5
Vendor/Project: craftcms
Product: cms

Description

Craft is a flexible, user-friendly CMS for creating custom digital experiences on the web and beyond. This is an remote code execution (RCE) vulnerability that affects Craft 4 and 5 installs where your security key has already been compromised. Anyone running an unpatched version of Craft with a compromised security key is affected. This vulnerability has been patched in Craft 5.5.8 and 4.13.8. Users who cannot update to a patched version, should rotate their security keys and ensure their privacy to help migitgate the issue.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/26/2026, 23:49:04 UTC

Technical Analysis

CVE-2025-23209 is a remote code execution vulnerability classified under CWE-94 (Improper Control of Generation of Code) affecting Craft CMS, a popular content management system used for building custom digital experiences. The vulnerability exists in Craft CMS versions 4.0.0-RC1 up to but not including 4.13.8, and 5.0.0-RC1 up to but not including 5.5.5. The root cause is improper sanitization or control over dynamically generated code, which allows an attacker to inject and execute arbitrary code remotely. However, exploitation requires that the attacker already has access to a compromised security key, which is a critical prerequisite. The security key in Craft CMS is used for cryptographic operations and securing sensitive data, so its compromise significantly lowers the barrier for exploitation. The vulnerability has a CVSS 3.1 base score of 8.1, indicating high severity, with attack vector being network-based (AV:N), requiring low privileges (PR:L), user interaction (UI:R), and high complexity (AC:H). The scope is changed (S:C), meaning the vulnerability can affect resources beyond the initially vulnerable component. The impact on confidentiality, integrity, and availability is high (C:H/I:H/A:H), meaning successful exploitation can lead to full system compromise, data theft, or service disruption. The vendor has patched this vulnerability in Craft CMS versions 4.13.8 and 5.5.8. For users unable to upgrade immediately, rotating security keys and ensuring privacy controls are recommended to mitigate risk. No public exploits or active exploitation have been reported yet, but the vulnerability's nature and impact make it a critical concern for affected users.

Potential Impact

The potential impact of CVE-2025-23209 is severe for organizations running vulnerable versions of Craft CMS with compromised security keys. Successful exploitation allows remote attackers to execute arbitrary code on the server, leading to full system compromise. This can result in unauthorized data access, data modification or deletion, defacement of websites, deployment of malware or ransomware, and disruption of services. The confidentiality, integrity, and availability of affected systems are all at high risk. Organizations relying on Craft CMS for critical web infrastructure or digital services could face significant operational and reputational damage. Additionally, attackers could leverage compromised systems as footholds for lateral movement within networks, escalating the threat beyond the CMS itself. The requirement of a compromised security key limits the attack surface but also highlights the importance of key management and security hygiene. The absence of known exploits in the wild currently reduces immediate risk but does not eliminate the threat, especially as threat actors may develop exploits rapidly once details are public.

Mitigation Recommendations

1. Immediate patching: Upgrade Craft CMS installations to versions 4.13.8 or 5.5.8 or later where the vulnerability is fixed. 2. Security key rotation: For systems where patching is delayed, rotate the security keys to invalidate any compromised keys and reduce the risk of exploitation. 3. Access controls: Restrict access to the Craft CMS administrative interfaces and configuration files to trusted personnel only. 4. Monitor logs: Implement enhanced logging and monitoring to detect suspicious activities related to code injection or unauthorized access attempts. 5. Network segmentation: Isolate CMS servers from critical internal networks to limit lateral movement in case of compromise. 6. User training: Educate administrators on the importance of securing security keys and recognizing phishing or social engineering attempts that could lead to key compromise. 7. Backup and recovery: Maintain regular, secure backups of CMS data and configurations to enable rapid recovery in case of compromise. 8. Review third-party plugins and integrations for additional vulnerabilities or insecure practices that could facilitate key compromise or exploitation. 9. Employ Web Application Firewalls (WAFs) with rules tuned to detect and block code injection attempts targeting Craft CMS. 10. Conduct regular security audits and penetration testing focused on CMS security posture and key management practices.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.1
Assigner Short Name
GitHub_M
Date Reserved
2025-01-13T17:15:41.051Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 68881727ad5a09ad0088bc50

Added to database: 7/29/2025, 12:34:47 AM

Last enriched: 2/26/2026, 11:49:04 PM

Last updated: 3/27/2026, 8:47:11 AM

Views: 59

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 for AI refresh and higher limits.

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

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses