CVE-2026-48557spatie laravel-medialibrary
High 8.7
Follow: this CVE · spatie · spatie laravel-medialibrary We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 4.0
- 8.7
- EPSS
- —
- Auth required
- Yes
- Published
- May 29, 2026
- Updated
- Oct 8, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-184
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
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.
What to do
- Apply the vendor's security update for laravel-medialibrary.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | spatie/laravel-medialibrary |
< 11.23.0 |
11.23.0 |
composer require "spatie/laravel-medialibrary:^11.23.0" |
Per OSV / GitHub Advisories (GHSA-3ggm-c5m7-hfv5). Check the version in your lockfile before upgrading.
Affected products
- spatie · laravel-medialibrary
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.