CVE-2025-23209

8.0 HIGH CISA KEV

📋 TL;DR

This is a remote code execution vulnerability in Craft CMS versions 4 and 5 that allows attackers to execute arbitrary code on affected systems. The vulnerability requires that the Craft security key has already been compromised through other means. All unpatched Craft 4 and 5 installations with compromised security keys are vulnerable.

💻 Affected Systems

Products:
  • Craft CMS
Versions: Craft 4.x before 4.13.8, Craft 5.x before 5.5.8
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Only vulnerable if the Craft security key has been previously compromised through other attack vectors.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete system compromise allowing attackers to execute arbitrary code, steal data, install malware, or pivot to other systems.

🟠

Likely Case

Unauthorized access to the CMS, data exfiltration, website defacement, or installation of backdoors.

🟢

If Mitigated

No impact if security keys are properly protected and systems are patched.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ✅ No
Complexity: MEDIUM

Exploitation requires prior compromise of the Craft security key, which adds a prerequisite step for attackers.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Craft 5.5.8 and Craft 4.13.8

Vendor Advisory: https://github.com/craftcms/cms/security/advisories/GHSA-x684-96hh-833x

Restart Required: No

Instructions:

1. Backup your database and files. 2. Update Craft CMS to version 5.5.8 (for Craft 5) or 4.13.8 (for Craft 4). 3. Verify the update was successful by checking the version in the control panel.

🔧 Temporary Workarounds

Rotate Security Keys

all

Generate new security keys to invalidate any previously compromised keys

php craft setup/security-key

🧯 If You Can't Patch

  • Immediately rotate all Craft security keys using the setup/security-key command
  • Implement strict access controls and monitoring for the Craft CMS installation

🔍 How to Verify

Check if Vulnerable:

Check Craft CMS version in the control panel or via command line: php craft --version

Check Version:

php craft --version

Verify Fix Applied:

Confirm version is 5.5.8 or higher (for Craft 5) or 4.13.8 or higher (for Craft 4)

📡 Detection & Monitoring

Log Indicators:

  • Unusual PHP file execution patterns
  • Unexpected process creation from web server
  • Suspicious POST requests to Craft endpoints

Network Indicators:

  • Unusual outbound connections from web server
  • Traffic to known malicious IPs

SIEM Query:

source="craft.log" AND ("security key" OR "unauthorized" OR "RCE")

🔗 References

📤 Share & Export