CVE-2024-21546 — Vulnerability in unisharp/laravel-filemanager
UniSharp Laravel Filemanager Code Injection vulnerability
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (2.03%). Schedule for your next planned update.
Does your project use an affected unisharp/laravel-filemanager version?
Paste your composer.lock to check it for CVE-2024-21546 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published December 18, 2024 (708 days ago).
- Last revised December 18, 2024 — 0 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "unisharp/laravel-filemanager:^2.9.1"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: Packagist (1).
| Package | Fixed In |
|---|---|
| unisharp/laravel-filemanager Packagist · Affected: 0.1.0, 0.2.0, 0.3.0, 0.3.1 (+67 more) | 2.9.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-94Code InjectionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-21546ADVISORY
- https://github.com/UniSharp/laravel-filemanager/commit/8170760c0ae316d77b9363cd4c76ab68d3f63f0bWEB
- https://gist.github.com/ImHades101/338a06816ef97262ba632af9c78b78caWEB
- https://github.com/UniSharp/laravel-filemanagerPACKAGE
- https://security.snyk.io/vuln/SNYK-PHP-UNISHARPLARAVELFILEMANAGER-7210316WEB
Frequently Asked Questions
- What is CVE-2024-21546?
- UniSharp Laravel Filemanager Code Injection vulnerability. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2024-21546?
- CVE-2024-21546 affects unisharp/laravel-filemanager. It has a 2.0% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-21546 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This places it in the top quartile of EPSS-scored vulnerabilities — 81.7% of tracked vulnerabilities score at or below it, so it is more likely to be exploited than most of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-103035HIGH
TeamPass folder re-parenting authorization bypass
- CVE-2026-110782HIGH
SAML2: Incomplete fix of CVE-2026-49283: unsigned embedded Response bypasses HTTP-Artifact signature verification (no embedded-Issuer binding)