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.
Metrics
Affected Vendors & Products
References
History
Fri, 29 May 2026 21:30:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
Fri, 29 May 2026 20:15:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | Spatie Laravel Media Library < 11.23.0 File Upload Restriction Bypass via FileAdder.php | |
| Weaknesses | CWE-184 | |
| References |
|
|
| Metrics |
cvssV3_1
|
Status: PUBLISHED
Assigner: VulnCheck
Published:
Updated: 2026-05-29T20:19:50.229Z
Reserved: 2026-05-21T18:34:46.418Z
Link: CVE-2026-48557
Updated: 2026-05-29T20:19:47.104Z
Status : Deferred
Published: 2026-05-29T20:16:28.957
Modified: 2026-05-29T20:21:38.773
Link: CVE-2026-48557
No data.
OpenCVE Enrichment
Updated: 2026-05-29T21:30:06Z