LiveActive security incident?Get immediate response
CVE Record

CVE-2026-48557: Spatie Laravel Media Library < 11.23.0 File Upload Restriction Bypass via FileAdder.php

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.

HighCVSS 8.8Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

Applications using Spatie Laravel Media Library before 11.23.0 may accept filenames intended to be blocked. If attackers can upload media, unsafe files could be stored and, under certain server configurations, executed. Successful exploitation could compromise application data, integrity, and availability.

Executive priority

Prioritize remediation for internet-facing applications with user uploads, especially where low-privileged accounts can submit files. Upgrade promptly and verify that upload storage cannot execute content. Applications without attacker-accessible uploads have lower immediate exposure, but should still update because the vulnerable sanitizer remains present.

Technical view

FileAdder::defaultSanitizer() checks only the final suffix, so double extensions can evade its blocklist while pathinfo() preserves an executable inner extension. The blocklist also omits .php6, .shtml, and .htaccess. Double-extension PHP execution requires legacy Apache AddHandler configuration; the omitted-extension bypass does not require that configuration.

Likely exposure

Exposure is most likely where versions before 11.23.0 process attacker-controlled uploads. Risk increases when upload capability is available to low-privileged accounts and stored files are served through execution-capable web-server paths. Actual impact depends on application upload controls and hosting configuration.

Exploitation context

The CVSS 3.1 score is 8.8, reflecting network access, low complexity, low privileges, no user interaction, and potentially severe impact. The supplied record is not in KEV, and the provided sources do not establish active exploitation. One execution path specifically depends on legacy Apache AddHandler behavior.

Researcher notes

This is CWE-184: an incomplete list of disallowed inputs. Assessment should distinguish the double-extension path from omitted blocklist extensions because their configuration dependencies differ. The supplied evidence supports the vulnerable behavior and patched release, but does not demonstrate exploitation in the wild or establish exposure for any specific deployment.

Mitigation direction

  • Upgrade Spatie Laravel Media Library to version 11.23.0 or later.
  • Restrict upload access to trusted users until the upgrade is verified.
  • Prevent uploaded media directories from executing server-side content.
  • Apply independent allowlists for permitted extensions, MIME types, and expected file content.
  • Review vendor release notes and patch details for application-specific deployment guidance.

Validation and detection

  • Identify the installed laravel-medialibrary version from application dependency records.
  • Map every endpoint that passes attacker-controlled files into the media library.
  • Verify authorization requirements for each upload path, including low-privileged roles.
  • Review Apache configuration for legacy AddHandler behavior affecting uploaded files.
  • Inspect historical uploads for double extensions and omitted executable extensions.
  • Confirm version 11.23.0 or later is deployed across every application instance.
Prepared
Confidence
high
Sources
6

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-184: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

File access behavior lookup

The CVE wording references file access or upload behavior, so file telemetry and web shell review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2026-48557 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
8.8 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

2CVSS vectors
3Timeline events
1ADP providers
5Source links

SSVC decision data

CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: total

CVSS vector scores

2 official scores

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
8.8CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H2.85.9VulnCheck
8.7CVSS 4.0HighCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NVulnCheck

Vulnerability scoring details

Base CVSS 4.0 score

8.7High
CVSS 4.0 vector shape for CVE-2026-48557Attack VectorAttack ComplexityAttack RequirementsPrivileges RequiredUser InteractionVS ConfidentialityVS IntegrityVS AvailabilitySS ConfidentialitySS IntegritySS Availability

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

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Attack Requirements
NonePresent
Privileges Required
NoneLowHigh
User Interaction
NonePassiveActive
VS Confidentiality
HighLowNone
VS Integrity
HighLowNone
VS Availability
HighLowNone
SS Confidentiality
HighLowNone
SS Integrity
HighLowNone
SS Availability
HighLowNone

Vulnerability timeline

Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.

  1. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  2. CVE publishedCVE Program

    The CVE record was published.

  3. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

ADP provider summaries

CISA-ADPCISA ADP Vulnrichment
other:ssvc
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
spatielaravel-medialibrary0affected
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-184 · source CWE mapping

Incomplete List of Disallowed Inputs

Incomplete List of Disallowed Inputs represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.