Investigating an in-the-wild campaign using RCE in CraftCMS
A threat actor exploited an unpatched remote code execution flaw in CraftCMS (CVE-2025-32432) to compromise a web server, then uploaded a PHP file manager and additional PHP files. The vulnerability stems from the Yii framework used by CraftCMS.
sensepost.com
Published on sensepost.com
In mid-February, Orange Cyberdefense’s CSIRT was tasked with investigating a server that had been hosting a now-unavailable website. The site had been built using CraftCMS running version 4.12.8.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a remote code execution vulnerability in the Yii framework used by CraftCMS, as indicated by the two CVEs discovered.
Impact
The attacker could execute arbitrary code on the server, leading to full compromise and the ability to upload further malicious files.
What the attacker needed
CraftCMS version 4.12.8; unpatched server
How it was found
- The threat actor exploited CVE-2025-32432 on a CraftCMS 4.12.8 server.
- They downloaded a PHP file manager onto the server.
- They used the file manager to upload other PHP files.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
This report describes how attackers broke into a website running CraftCMS, a content management system. They used a known security hole (CVE-2025-32432) to run their own code on the server, then installed a tool to upload more malicious files. The flaw was in the Yii framework that CraftCMS relies on.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.