Advisory record · GHSA-3ggm-c5m7-hfv5

Spatie Laravel Media Library contains a file upload restriction bypass

CVSS 8.7 HighEPSS 0.0044 · 38th percentile

Published by the GitHub Advisory Database at 29 May 2026, 21:31 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
spatie/laravel-medialibraryPackagist<11.23.011.23.0
Identifiers
GHSA-3ggm-c5m7-hfv5 · CVE-2026-48557 · PKSA-mrgr-9pdf-y591
Weakness (CWE)
CWE-184
Published
29 May 2026
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Spatie Laravel Media Library versions before 11.23.0 have a file upload restriction bypass in FileAdder::defaultSanitizer(), whose blocklist checks only the final filename suffix and omits some executable extensions such as .php6, .shtml, and .htaccess. An attacker who can upload files could use a double-extension name like shell.php.jpg to get past the filter, and the source says this leads to PHP execution only where a legacy Apache AddHandler configuration is present. Upgrade to spatie/laravel-medialibrary 11.23.0 or later.

Written 31 Oct 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
8.7 High 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 CNA (VulnCheck)
  • CISA KEV Not listed.
  • EPSS 0.0044, the 38th percentile, on 8 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 29 May 2026, 19:49 UTC Confirmed by the CVE List
  2. 31 Oct 2026, 14:02 UTC First seen by agentprime
  3. 31 Oct 2026, 14:02 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.