8.7high
Spatie Laravel Media Library < 11.23.0 File Upload Restriction Bypass via FileAdder.php
- Severity
- 8.7high CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.75% (higher than 51% of CVEs)
- Published
- Last changed
- Assigned by
- VulnCheck
- Also known as
- GHSA-3ggm-c5m7-hfv5
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| spatie laravel-medialibrary | before 11.23.0 | CVE List |
| spatie/laravel-medialibrary (Packagist) | before 11.23.0 | GitHub Advisory Database |
All scores
| VulnCheck | 8.7high CVSS:4.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:N |
| VulnCheck | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | high CVSS:4.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:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
Spatie Laravel Media Library antes de la versión 11.23.0 contiene una elusión de restricción de carga de archivos en FileAdder::defaultSanitizer(). El saneador verifica solo el sufijo final del nombre de archivo, permitiendo que nombres de archivo con doble extensión como shell.php.jpg eludan la lista de bloqueo, con pathinfo() preservando los tallos internos .php en los nombres de archivo guardados. La lista de bloqueo también omite extensiones ejecutables, incluyendo .php6, .shtml y .htaccess. La elusión de doble extensión requiere una configuración heredada de Apache AddHandler para lograr la ejecución de PHP; la elusión incompleta de la lista de bloqueo no la requiere.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-48557 changed 2026-11-08 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-3ggm-c5m7-hfv5 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-48557 changed 2026-10-08 | Public domain |