Spatie Laravel Media Library < 11.23.0 File Upload Restriction Bypass via FileAdder.php
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| spatie | laravel-medialibrary | before 11.23.0 | 11.23.0 | Patch available | CNA |
| — | spatie/laravel-medialibrary (Packagist) | before 11.23.0 | 11.23.0 | Patch available | GHSA-3ggm-c5m7-hfv5 |
- laravel-medialibrary Vendorspatie Affected before 11.23.0 Fixed in 11.23.0 Patch available CNA
- spatie/laravel-medialibrary (Packagist) Vendor— Affected before 11.23.0 Fixed in 11.23.0 Patch available GHSA-3ggm-c5m7-hfv5
Remediation
- Fix · CNA laravel-medialibrary (spatie) Fixed in 11.23.0
- Fix · GHSA-3ggm-c5m7-hfv5 spatie/laravel-medialibrary (Packagist) Fixed in 11.23.0 Advisory →
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
spatie laravel-medialibrary 11.23.0
2 records Highest priority Priority MEDIUM 1 MEDIUM, 1 LOW
Other records, highest priority first
- TI-2026-35914 Spatie Laravel Media Library < 11.23.0 SSRF via addMediaFromUrl()Priority LOW 24
Timeline
- 2026-10-02 Threatist record created from CVE-2026-48557
- 2026-10-03 Alias added: GHSA-3ggm-c5m7-hfv5
- 2026-10-25 EPSS moved to the below the 50th percentile
References
Patch 2
More spatie vulnerabilities
- TI-2022-21618 Browsershot 3.57.3 - Server Side XSS to LFR via HTML CVSS 3.1HIGH 8.2
- TI-2022-21617 Browsershot 3.57.2 - Server Side XSS to LFR via HTML CVSS 3.1HIGH 8.2
- TI-2022-20098 Browsershot 3.57.2 - Server Side XSS to LFR via URL CVSS 3.1HIGH 8.2
- TI-2026-63016 spatie Scotty Self Update SelfUpdater.php update code download CVSS 4.0MEDIUM 5.3
- TI-2026-63015 spatie Scotty Doctor DoctorCommand.php checkRemoteTools os command injection CVSS 4.0MEDIUM 5.3
- TI-2021-20389 The Spatie media-library-pro library through 1.17.10 and 2.x through 2.1.6 for Laravel… CVSS 3.1CRITICAL 9.8
Sources
- CVE-2026-48557 · CVE Program
- CVE-2026-48557 · NVD
- FIRST EPSS
- GHSA-3ggm-c5m7-hfv5 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences