module

Craft CMS Image Transform Preauth RCE (CVE-2025-32432)

Disclosed
2025-04-14
Created
2025-05-01

Description

This module exploits an unauthenticated remote code execution vulnerability
in Craft CMS versions 3.x, 4.x, and 5.x It injects a PHP Meterpreter payload into the Craft session, then triggers its execution
by abusing the Yii behavior gadget chain (PhpManager) on the generate-transform endpoint.
Discovered in the wild by Orange Cyberdefense CSIRT and assigned CVE-2025-32432.

Authors

Nicolas Bourras (Orange Cyberdefense)
Valentin Lobstein

Platform

Linux,PHP,Unix

Architectures

php, cmd

Module Options

To display the available options, load the module within the Metasploit console and run the commands ‘show options’ or ‘show advanced’:


msf > use exploit/linux/http/craftcms_preauth_rce_cve_2025_32432
msf exploit(craftcms_preauth_rce_cve_2025_32432) > show targets
...targets...
msf exploit(craftcms_preauth_rce_cve_2025_32432) > set TARGET < target-id >
msf exploit(craftcms_preauth_rce_cve_2025_32432) > show options
...show and set options...
msf exploit(craftcms_preauth_rce_cve_2025_32432) > exploit

Title
NEW

Explore Exposure Command

Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.