# CVE-2026-48557: Spatie Laravel Media Library < 11.23.0 File Upload Restriction Bypass via FileAdder.php

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.75%, higher than 51% of CVEs (2026-11-30)
- Published: 2026-05-29T19:49:15.604Z
- Modified: 2026-11-08T14:04:39.200Z
- Also known as: GHSA-3ggm-c5m7-hfv5
- Weaknesses: CWE-184
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: VulnCheck

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

(As written by CVE List.)

## Affected

- spatie laravel-medialibrary: before 11.23.0
- spatie/laravel-medialibrary (Packagist): before 11.23.0

## Every score

- VulnCheck: CVSS:4.0 8.7 High `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`
- VulnCheck: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `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`

## References

- <https://github.com/spatie/laravel-medialibrary/releases/tag/11.23.0> (release-notes, web)
- <https://github.com/spatie/laravel-medialibrary/pull/3939> (issue-tracking, patch, web)
- <https://github.com/spatie/laravel-medialibrary/commit/608ea03703d3887c46434f5dda6af56de6346aba> (patch, web)
- <https://www.vulncheck.com/advisories/spatie-laravel-media-library-file-upload-restriction-bypass-via-fileadder-php> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-48557> (advisory)
- <https://github.com/spatie/laravel-medialibrary> (package)

## Sources

- CVE List: [CVE-2026-48557](https://www.cve.org/CVERecord?id=CVE-2026-48557), CVE Terms of Use, modified 2026-11-08
- GitHub Advisory Database: [GHSA-3ggm-c5m7-hfv5](https://github.com/advisories/GHSA-3ggm-c5m7-hfv5), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-48557](https://nvd.nist.gov/vuln/detail/CVE-2026-48557), Public domain, modified 2026-10-08

---

Page: https://cve.day/CVE-2026-48557 · Whole record: https://cve.day/CVE-2026-48557.json · Rebuilt by cve.day 2026-11-25T22:59:23.373Z
