CVE-2024-21546:
UniSharp Laravel Filemanager Code Injection vulnerability
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.34626%
CWE
Published
12/18/2024
Updated
12/18/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
unisharp/laravel-filemanager | composer | < 2.9.1 | 2.9.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from two key gaps: 1) The explicit extension blocklist check (extensionIsNotExcutable
) didn't account for special-character suffixes that could alter server interpretation. 2) No validation
existed to reject extensions containing non-alphanumeric characters. The patch added both the InvalidExtensionException
and a regex check in extensionIsValid()
, confirming these were missing safeguards in vulnerable versions.