spatie laravel-medialibrary up to 11.22.x Configuration defaultSanitizer incomplete blacklist
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 7.4 | $0-$5k | 0.00 |
Summary
A vulnerability classified as critical was found in spatie laravel-medialibrary up to 11.22.x. Affected is the function FileAdder::defaultSanitizer of the component Configuration Handler. Such manipulation leads to incomplete blacklist.
This vulnerability is listed as CVE-2026-48557. The attack may be performed from remote. There is no available exploit.
Upgrading the affected component is advised.
Details
A vulnerability was found in spatie laravel-medialibrary up to 11.22.x. It has been rated as critical. Affected by this issue is the function FileAdder::defaultSanitizer of the component Configuration Handler. The manipulation with an unknown input leads to a incomplete blacklist vulnerability. Using CWE to declare the problem leads to CWE-184. The product implements a protection mechanism that relies on a list of inputs (or properties of inputs) that are not allowed by policy or otherwise require other action to neutralize before additional processing takes place, but the list is incomplete, leading to resultant weaknesses. Impacted is confidentiality, integrity, and availability. CVE summarizes:
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.
The weakness was presented by Xurshidbek Sobirjonov. The advisory is shared for download at github.com. This vulnerability is handled as CVE-2026-48557 since 05/21/2026. The exploitation is known to be easy. The attack may be launched remotely. There are known technical details, but no exploit is available. The MITRE ATT&CK project declares the attack technique as T1562.006.
Upgrading to version 11.23.0 eliminates this vulnerability. The upgrade is hosted for download at github.com. Applying the patch 608ea03703d3887c46434f5dda6af56de6346aba is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.
The vulnerability is also documented in the vulnerability database at EUVD (EUVD-2026-33439). Once again VulDB remains the best source for vulnerability data.
Product
Type
Vendor
Name
Version
- 11.0
- 11.1
- 11.2
- 11.3
- 11.4
- 11.5
- 11.6
- 11.7
- 11.8
- 11.9
- 11.10
- 11.11
- 11.12
- 11.13
- 11.14
- 11.15
- 11.16
- 11.17
- 11.18
- 11.19
- 11.20
- 11.21
- 11.22
License
Website
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔒VulDB Reliability: 🔍
CNA CVSS-B Score: 🔒
CNA CVSS-BT Score: 🔒
CNA Vector: 🔒
CVSSv3
VulDB Meta Base Score: 7.6VulDB Meta Temp Score: 7.4
VulDB Base Score: 6.3
VulDB Temp Score: 6.0
VulDB Vector: 🔒
VulDB Reliability: 🔍
CNA Base Score: 8.8
CNA Vector (VulnCheck): 🔒
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍
Exploiting
Class: Incomplete blacklistCWE: CWE-184 / CWE-183 / CWE-20
CAPEC: 🔒
ATT&CK: 🔒
Physical: No
Local: No
Remote: Yes
Availability: 🔒
Status: Not defined
EPSS Score: 🔒
EPSS Percentile: 🔒
Price Prediction: 🔍
Current Price Estimation: 🔒
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔒
Upgrade: laravel-medialibrary 11.23.0
Patch: 608ea03703d3887c46434f5dda6af56de6346aba
Timeline
05/21/2026 CVE reserved05/30/2026 Advisory disclosed
05/30/2026 VulDB entry created
05/30/2026 VulDB entry last update
Sources
Product: github.comAdvisory: github.com
Researcher: Xurshidbek Sobirjonov
Status: Confirmed
CVE: CVE-2026-48557 (🔒)
GCVE (CVE): GCVE-0-2026-48557
GCVE (VulDB): GCVE-100-367388
EUVD: 🔒
Entry
Created: 05/30/2026 07:38Updated: 05/30/2026 08:28
Changes: 05/30/2026 07:38 (82), 05/30/2026 08:28 (1)
Complete: 🔍
Cache ID: 216::103
Once again VulDB remains the best source for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.