CVE-2024-47051CWE-23CWE-94

Remote Code Execution & File Deletion in Asset Uploads

Critical · published February 26, 2025

CVSS v3.1
9.1
EPSS
2%
Percentile
78.3
In the wild
Unconfirmed
What it is

🚨 Two critical vulnerabilities in Mautic before version 5.2.3 allow authenticated users to wreak havoc — think of a caterer serving gourmet meals with an unexpected twist! It's like a restaurant where the chef can swap out the ingredients without anyone checking the order — imagine a rogue chef sneaking in harmful items instead of your favorite dishes. In this case, attackers can upload malicious files and delete important ones, leaving your system in a mess! An attacker could not only execute arbitrary code by uploading a PHP script disguised as an innocent image, but they could also wipe out essential files from your server. The consequences? A complete data loss and a potential system takeover, making this vulnerability absolutely devastating!

Put simply

It's like a restaurant where the chef can swap out the ingredients without anyone checking the order — imagine a rogue chef sneaking in harmful items instead of your favorite dishes. In this case, attackers can upload malicious files and delete important ones, leaving your system in a mess! This vulnerability allows authenticated users to exploit the asset upload feature in Mautic to execute arbitrary code, and a path traversal flaw enables them to delete files anywhere on the server due to improper validation of upload paths.

What to do

An attacker could not only execute arbitrary code by uploading a PHP script disguised as an innocent image, but they could also wipe out essential files from your server. The consequences? A complete data loss and a potential system takeover, making this vulnerability absolutely devastating! Immediate action is crucial: Update Mautic to version 5.2.3 or later to patch these vulnerabilities. Also, review your file upload policies and implement strict validation to prevent unauthorized file types. Don't forget to audit your server for any suspicious files! You've got this! With these updates, your Mautic setup will be much safer in no time! 🛡️

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L
CVSS v4.0
Not supplied
EPSS
0.01799 · 78.3th percentile
Weaknesses
CWE-23 · Relative Path Traversal; CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2025-02-26T12:01Z
EPSS history
Timeline
  • 26 FEB 12:01Z
    Remote Code Execution & File Deletion in Asset Uploads
    cvelistv5