Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. unisharp/laravel-filemanager
  4. ›
  5. CVE-2024-21546

CVE-2024-21546: UniSharp Laravel Filemanager Code Injection vulnerability

December 18, 2024

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.

References

  • gist.github.com/ImHades101/338a06816ef97262ba632af9c78b78ca
  • github.com/UniSharp/laravel-filemanager
  • github.com/UniSharp/laravel-filemanager/commit/8170760c0ae316d77b9363cd4c76ab68d3f63f0b
  • github.com/advisories/GHSA-6569-3785-r3v6
  • nvd.nist.gov/vuln/detail/CVE-2024-21546
  • security.snyk.io/vuln/SNYK-PHP-UNISHARPLARAVELFILEMANAGER-7210316

Code Behaviors & Features

Detect and mitigate CVE-2024-21546 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.9.1

Fixed versions

  • 2.9.1

Solution

Upgrade to version 2.9.1 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

packagist/unisharp/laravel-filemanager/CVE-2024-21546.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:31 +0000.