{"id":"CVE-2026-48557","aliases":["CVE-2026-48557","GHSA-3ggm-c5m7-hfv5"],"related":[],"kind":"vulnerability","state":"published","title":"Spatie Laravel Media Library < 11.23.0 File Upload Restriction Bypass via FileAdder.php","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-05-29T19:49:15.604Z","modified":"2026-11-08T14:04:39.200Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":8.7,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"HIGH"}],"cwes":["CWE-184"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"11.23.0","status":"affected"}],"vendor":"spatie","product":"laravel-medialibrary","repo":"https://github.com/spatie/laravel-medialibrary","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"11.23.0"}],"ecosystem":"Packagist","package":"spatie/laravel-medialibrary","purl":"pkg:composer/spatie/laravel-medialibrary","source":"ghsa"}],"references":[{"url":"https://github.com/spatie/laravel-medialibrary/releases/tag/11.23.0","tags":["release-notes","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/spatie/laravel-medialibrary/pull/3939","tags":["issue-tracking","patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/spatie/laravel-medialibrary/commit/608ea03703d3887c46434f5dda6af56de6346aba","tags":["patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.vulncheck.com/advisories/spatie-laravel-media-library-file-upload-restriction-bypass-via-fileadder-php","tags":["third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-48557","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/spatie/laravel-medialibrary","tags":["package"],"sources":["ghsa"]}],"credits":["Xurshidbek Sobirjonov","VulnCheck"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-05-29T20:19:41.731Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-48557","url":"https://www.cve.org/CVERecord?id=CVE-2026-48557","licence":"CVE Terms of Use","modified":"2026-11-08T14:04:39.200Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3ggm-c5m7-hfv5","url":"https://github.com/advisories/GHSA-3ggm-c5m7-hfv5","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:45.335Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-48557","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-48557","licence":"Public domain","modified":"2026-10-08T16:17:18.343Z"}],"updatedAt":"2026-11-25T22:59:23.373Z","epss":{"score":0.00753,"percentile":0.51306,"date":"2026-11-30T12:00:22.000Z"}}