{"answers":{"affected":"2 open source packages ship an affected version, including spatie/laravel-medialibrary.","exploited":"There is no known exploitation of CVE-2026-48557 in the wild and no public exploit code.","fix":"Upgrade spatie/laravel-medialibrary to 11.23.0 or later.","what":"CVE-2026-48557 is a high-severity vulnerability in spatie laravel-medialibrary, published on 29 May 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-48557 and fix it if it is affected.\n\nWhat it is: CVE-2026-48557 is a high-severity vulnerability in spatie laravel-medialibrary, published on 29 May 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-48557 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- spatie/laravel-medialibrary (Packagist): affected all versions; fixed in 11.23.0\n- spatie/laravel-medialibrary (Packagist): affected all versions; fixed in 11.23.0\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-2026-48557/ (Markdown: https://insights.sbomify.com/CVE-2026-48557/index.md)","id":"CVE-2026-48557","markdown":"https://insights.sbomify.com/CVE-2026-48557/index.md","name":"CVE-2026-48557","record":{"aliases":["GHSA-3ggm-c5m7-hfv5"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Laravel media library","requires_auth":"low_privilege","summary":"Attackers can bypass file upload restrictions to upload malicious files, potentially achieving code execution if server configurations allow it.","user_interaction":"not_required","vuln_class":"file_upload"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulnCheck","cpe":[],"cvss":{"score":8.7,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-184","name":"Incomplete List of Disallowed Inputs"}],"description":"Spatie Laravel Media Library before version 11.23.0 contains a file upload restriction bypass in FileAdder::defaultSanitizer(). The sanitizer checks only the final filename suffix, allowing double-extension filenames such as shell.php.jpg to bypass the blocklist, with pathinfo() preserving inner .php stems in saved filenames. The blocklist also omits executable extensions including .php6, .shtml, and .htaccess. The double-extension bypass requires a legacy Apache AddHandler configuration to achieve PHP execution; the incomplete blocklist bypass does not.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Spatie Laravel Media Library \u003c 11.23.0 File Upload Restriction Bypass via FileAdder.php","id":"CVE-2026-48557","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"file_upload","year":"2026"},"n_packages":2,"n_references":4,"next":{"headline":"SimpleHelp Authentication Bypass","id":"CVE-2026-48558"},"packages":[{"ecosystem":"Packagist","fixed":["11.23.0"],"introduced":["0"],"last_affected":[],"package":"spatie/laravel-medialibrary","purl":null,"source":"GHSA-3ggm-c5m7-hfv5"},{"ecosystem":"Packagist","fixed":["11.23.0"],"introduced":["0"],"last_affected":[],"package":"spatie/laravel-medialibrary","purl":"pkg:composer/spatie/laravel-medialibrary","source":"GHSA-3ggm-c5m7-hfv5"}],"prev":{"headline":"This CVE ID has been rejected or withdrawn by its CVE Numbering Authority.","id":"CVE-2026-48556"},"products":["laravel-medialibrary"],"published":"2026-05-29","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)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-10-08","vendors":["spatie"]},"summary":"Attackers can bypass file upload restrictions to upload malicious files, potentially achieving code execution if server configurations allow it.","url":"https://insights.sbomify.com/CVE-2026-48557/"}