CVE-2026-48557 json
Spatie Laravel Media Library < 11.23.0 File Upload Restriction Bypass via FileAdder.php
published 2026-05-29 5 mo ago modified 2026-11-08 22 h ago also EUVD-2026-33439 , GHSA-3ggm-c5m7-hfv5
- cvss
- 8.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 38%
- public exploits
- 0
- none known
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.
Patch / fix
- packagist spatie/laravel-medialibrary 11.23.0
- spatie laravel-medialibrary 11.23.0
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 5 mo ago
Exploit prediction
0.44% chance of exploitation in the next 30 days, higher than 38% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 8.7 | 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 |
| CNA | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CNA | 4.0 | 8.7 | 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 |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | spatie/laravel-medialibrary | <11.23.0 |
11.23.0 |
Affected products
- spatie laravel-medialibrary
Classification
- Weakness
-
- CWE-184 Incomplete List of Disallowed Inputs
References
-
github.com
/spatie/laravel-medialibrary/pull/3939
issue-tracking, patch, web
-
github.com
/spatie/laravel-medialibrary/commit/608ea03703d3887c46434f5dda6af56de6346aba
patch, web
-
github.com
/spatie/laravel-medialibrary/releases/tag/11.23.0
release-notes, web
-
vulncheck.com
/advisories/spatie-laravel-media-library-file-upload-restriction-bypass-via-fileadder-php
third-party-advisory, web
-
nvd.nist.gov
/vuln/detail/CVE-2026-48557
advisory
-
github.com
/spatie/laravel-medialibrary
package
Sources
- CVE List CVE-2026-48557
- GitHub Advisory GHSA-3ggm-c5m7-hfv5
- NVD CVE-2026-48557
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.