Rapid7

module

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

Disclosed
Apr 14, 2025
Created
May 1, 2025

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

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
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.