CVE-2026-48557: spatie laravel-medialibrary · Incomplete List of Disallowed Inputs
Affects spatie laravel-medialibrarySource CVE Database V5
Not known to be exploited · CVSS 8.7 High : upgrade to 11.23.0 soon.
Data as of 26 Oct 2026, 14:05 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 37% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- CISA SSVC
- Exploitation
- No evidence of active exploitation and no public proof of concept
- Automatable
- Attackers cannot reliably automate steps 1–4 of the kill chain
- Technical impact
- Total control over the software or total information disclosure
CISA SSVC assessment, 2026-05-29.
- Patch
- Available – fixed in 11.23.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 29 May 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade spatie laravel-medialibrary to 11.23.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| spatielaravel-medialibrary | Affected
| Fixed in– |
Packagistlaravel-medialibrarypkg:composer/laravel-medialibraryOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- github.com/spatie/laravel-medialibrary/releases/tag/11.23.0 (opens in a new tab)
- github.com/spatie/laravel-medialibrary/pull/3939 (opens in a new tab)
- github.com/spatie/laravel-medialibrary/commit/608ea03703d3887c46434f5dda6af56de6346aba (opens in a new tab)
- vulncheck.com/advisories/spatie-laravel-media-library-file-upload-restriction-bypass-via-fileadder-php (opens in a new tab)