


Perceptive Security
SOC/SIEM Consultancy

Spatie Laravel Media Library before version 11.23.0 contains a file upload restriction bypass in FileAdder::defaultSanitizer(). The sanitizer checks only the fi…
Published:
28 mei 2026 om 22:00:00
Alert date:
29 mei 2026 om 21:09:42
Source:
nvd.nist.gov
Web Technologies, Supply Chain & Dependencies
CVE-2026-48557 affects Spatie Laravel Media Library versions before 11.23.0, containing a file upload restriction bypass vulnerability in the FileAdder::defaultSanitizer() function. The vulnerability allows attackers to bypass security controls through two methods: using double-extension filenames like shell.php.jpg that exploit how pathinfo() processes filenames, and exploiting an incomplete blocklist that omits executable extensions such as .php6, .shtml, and .htaccess. The double-extension bypass requires legacy Apache AddHandler configuration for PHP execution, while the incomplete blocklist bypass works without additional server configuration. This vulnerability enables potential remote code execution through malicious file uploads.
Technical details
Mitigation steps:
Affected products:
Spatie Laravel Media Library
Related links:
https://nvd.nist.gov/vuln/detail/CVE-2026-48557
https://github.com/spatie/laravel-medialibrary/commit/608ea03703d3887c46434f5dda6af56de6346aba
https://github.com/spatie/laravel-medialibrary/pull/3939
https://github.com/spatie/laravel-medialibrary/releases/tag/11.23.0
https://www.vulncheck.com/advisories/spatie-laravel-media-library-file-upload-restriction-bypass-via-fileadder-php
Related CVE's:
Related threat actors:
IOC's:
This article was created with the assistance of AI technology by Perceptive.
