CVE-2026-48557

Spatie Laravel Media Library < 11.23.0 File Upload Restriction Bypass via FileAdder.php

Published May 29, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-3ggm-c5m7-hfv5 Spatie Laravel Media Library contains a file upload restriction bypass
History
Type Values Removed Values Added
CPEs cpe:2.3:a:spatie:laravel_media_library:*:*:*:*:pro:*:*:*
Type Values Removed Values Added
First Time appeared Spatie
Spatie laravel Media Library
Vendors & Products Spatie
Spatie laravel Media Library
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

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

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.7, '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 8, 2026, 2:04 PM
Reserved
May 21, 2026, 6:34 PM
Status
Deferred
Published
May 29, 2026, 8:16 PM
Modified
Oct 8, 2026, 4:17 PM