CVE-2026-48557
JSON

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 packageVersionsReported by
spatie laravel-medialibrarybefore 11.23.0CVE List
spatie/laravel-medialibrary (Packagist)before 11.23.0GitHub Advisory Database

All scores

VulnCheck8.7high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
VulnCheck8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
GitHub8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
GitHubhigh CVSS:4.0CVSS: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

CWE-184

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

SourceRecordLicence
CVE ListCVE-2026-48557 changed 2026-11-08CVE Terms of Use
GitHub Advisory DatabaseGHSA-3ggm-c5m7-hfv5 changed 2026-09-10CC-BY-4.0
NVDCVE-2026-48557 changed 2026-10-08Public domain