Code Injection in Craft CMS - CVE-2025-32432
Published: April 28, 2025 / Updated: August 14, 2026
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to improper input validation when handling HTTP requests. A remote non-authenticated attacker can send a specially crafted HTTP POST request to the "/index.php?p=admin/actions/assets/generate-transform" URL and execute arbitrary PHP code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Note, the vulnerability is being actively exploited in the wild.
Affected software
How to mitigate CVE-2025-32432
Links to Public Exploits and PoC-codes
- Exploit #12900 - CVE-2025-32432 (Exploit, POC for CVE-2025-32432, CraftCMS2Shell) (August 14, 2026)
- Exploit #12682 - CVE-2025-32432_exploit.py () (April 30, 2026)
- Exploit #11987 - CVE-2025-32432 (September 24, 2025)
- Exploit #11671 - CVE-2025-32432-PoC (June 20, 2025)
- Exploit #11345 - Craft CMS Image Transform Preauth RCE (CVE-2025-32432) (May 1, 2025)
External References
- https://github.com/craftcms/cms/blob/3.x/CHANGELOG.md#3915---2025-04-10-critical
- https://github.com/craftcms/cms/blob/4.x/CHANGELOG.md#41415---2025-04-10-critical
- https://github.com/craftcms/cms/blob/5.x/CHANGELOG.md#5617---2025-04-10-critical
- https://github.com/craftcms/cms/commit/e1c85441fa47eeb7c688c2053f25419bc0547b47
- https://github.com/craftcms/cms/security/advisories/GHSA-f3gw-9ww9-jmc3
- https://sensepost.com/blog/2025/investigating-an-in-the-wild-campaign-using-rce-in-craftcms/
- https://craftcms.com/knowledge-base/craft-cms-cve-2025-32432