{"answers":{"affected":"2 open source packages ship an affected version, including unisharp/laravel-filemanager.","exploited":"There is no known exploitation of CVE-2024-21546 in the wild and no public exploit code.","fix":"Upgrade unisharp/laravel-filemanager to 2.9.1 or later.","what":"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."},"fix_prompt":"Check this codebase for CVE-2024-21546 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: There is no known exploitation of CVE-2024-21546 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- unisharp/laravel-filemanager (Packagist): affected all versions; fixed in 2.9.1\n- unisharp/laravel-filemanager (Packagist): affected all versions; fixed in 2.9.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-21546/ (Markdown: https://insights.sbomify.com/CVE-2024-21546/index.md)","id":"CVE-2024-21546","markdown":"https://insights.sbomify.com/CVE-2024-21546/index.md","name":"CVE-2024-21546","record":{"aliases":["GHSA-6569-3785-r3v6"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Laravel file manager","requires_auth":"none","summary":"Attackers can execute arbitrary code by uploading files with manipulated extensions in the Laravel file manager package.","user_interaction":"not_required","vuln_class":"file_upload"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"snyk","cpe":[],"cvss":{"score":9.3,"severity":"critical","source":"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","version":"4.0"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"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.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":"2025-05-05","github_poc":2,"max_poc_stars":5,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-05-05T06:52:42Z","kind":"github_poc","ref":"https://github.com/ajdumanhug/CVE-2024-21546","stars":5,"title":"This Python exploit script targets a vulnerable Laravel Filemanager created by UniSharp, which allows authenticated users to bypass file restrictions and upload malicious files. This can lead to Remote Code Execution (RCE) when the uploaded payload is triggered."},{"date":"2026-09-03T10:59:42Z","kind":"github_poc","ref":"https://github.com/digitalsurgn/CVE-2024-21546","stars":0,"title":"This repository contains security assessment tooling, detection templates, and an automated exploit toolkit for identifying and exploiting Unauthenticated Remote Code Execution (RCE) in applications utilizing the `UniSharp/laravel-filemanager` package (Versions `\u003c 2.9.1`)."}],"tier":"poc_unverified"},"has_fix":true,"headline":"UniSharp Laravel Filemanager Code Injection vulnerability","id":"CVE-2024-21546","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"file_upload","year":"2024"},"n_packages":2,"n_references":3,"next":{"headline":"Spatie Browsershot Directory Traversal vulnerability","id":"CVE-2024-21547"},"packages":[{"ecosystem":"Packagist","fixed":["2.9.1"],"introduced":["0"],"last_affected":[],"package":"unisharp/laravel-filemanager","purl":null,"source":"GHSA-6569-3785-r3v6"},{"ecosystem":"Packagist","fixed":["2.9.1"],"introduced":["0"],"last_affected":[],"package":"unisharp/laravel-filemanager","purl":"pkg:composer/unisharp/laravel-filemanager","source":"GHSA-6569-3785-r3v6"}],"prev":{"headline":"Path traversal in libpve-common-perl (Promox Mail Gateway 8)","id":"CVE-2024-21545"},"products":["unisharp/laravel-filemanager"],"published":"2024-12-18","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-08-28","vendors":["n/a"]},"summary":"Attackers can execute arbitrary code by uploading files with manipulated extensions in the Laravel file manager package.","url":"https://insights.sbomify.com/CVE-2024-21546/"}