CVE-2024-21546 UniSharp Laravel Filemanager Code Injection vulnerability

Critical 9.3 Published Updated

Attackers can execute arbitrary code by uploading files with manipulated extensions in the Laravel file manager package.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-21546?

CVE-2024-21546 is a critical vulnerability in unisharp/laravel-filemanager, published on 18 Dec 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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 the . character after the php file extension. This allows the attacker to execute malicious code.

Weakness: CWE-94

Which versions are affected by CVE-2024-21546?

2 open source packages ship an affected version, including unisharp/laravel-filemanager.

PackageAffectedFixed in
unisharp/laravel-filemanager PackagistAll versions2.9.1
unisharp/laravel-filemanager PackagistAll versions2.9.1

How do I fix CVE-2024-21546?

Upgrade unisharp/laravel-filemanager to 2.9.1 or later.

Is CVE-2024-21546 being exploited?

There is no known exploitation of CVE-2024-21546 in the wild and no public exploit code.

Public exploit code: 2 proofs of concept on GitHub.

Sources

Also known as GHSA-6569-3785-r3v6.

Is CVE-2024-21546 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free