CVE-2024-21546CWE-94

Versions of the package unisharp/laravel-filemanager before 2.9.1 are vulnerable to Remote Code Execution (RCE) through using a valid mimetype and inserting…

Critical · published December 18, 2024

CVSS v4.0
9.3
EPSS
1%
Percentile
70.4
In the wild
Unconfirmed
What it is

🚨 A sneaky trick lets an attacker execute code on servers running unisharp/laravel-filemanager before version 2.9.1! 🦸‍♂️ Just inserting a dot after the PHP file extension is all it takes to unleash chaos! Picture this: a restaurant where anyone can just add a secret ingredient to the menu without the chef’s approval. That’s similar to how this vulnerability allows an attacker to slip in malicious code—once it’s in, they can serve whatever they like! With this vulnerability, an attacker can execute arbitrary code, potentially taking full control of the server! They could read sensitive files, change settings, or even take down your entire application. The consequences could be absolutely devastating, costing both time and trust! 🔥

Put simply

Picture this: a restaurant where anyone can just add a secret ingredient to the menu without the chef’s approval. That’s similar to how this vulnerability allows an attacker to slip in malicious code—once it’s in, they can serve whatever they like! This Remote Code Execution (RCE) flaw arises because the file manager accepts a valid mimetype and executes PHP files even with a trailing dot—betraying the server’s trust in what it allows to run.

What to do

With this vulnerability, an attacker can execute arbitrary code, potentially taking full control of the server! They could read sensitive files, change settings, or even take down your entire application. The consequences could be absolutely devastating, costing both time and trust! 🔥 To defend against this critical vulnerability, immediately update to version 2.9.1 or later. Additionally, review your file upload mechanisms to enforce strict validation of file types and extensions. Don’t delay—secure your application now! You've got this! With these steps, you'll fortify your defenses and keep your server secure. 🛡️

The record
Technical detail
CVSS v4.0
9.3 · CRITICAL
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P
EPSS
0.01311 · 70.4th percentile
Weakness
CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2024-12-18T06:06Z
EPSS history
Timeline
  • 18 DEC 06:06Z
    Versions of the package unisharp/laravel-filemanager before 2.9.1 are vulnerable to Remote Code Execution (RCE) through using a valid mimetype and inserting…
    cvelistv5