CVE-2026-48557

8.8

Spatie · Laravel Media Library

The Spatie Laravel Media Library package contains an incomplete list of disallowed inputs, leading to a file upload restriction bypass via the FileAdder component.

Executive summary

An incomplete input validation flaw in Spatie Laravel Media Library allows attackers to bypass file upload restrictions, potentially enabling arbitrary file uploads.

Vulnerability

This is an incomplete list of disallowed inputs (CWE-184) vulnerability, which allows an authenticated attacker to bypass file extension or type restrictions during the upload process.

Business impact

By bypassing upload restrictions, an attacker could potentially upload malicious files, such as web shells, to the server. This could lead to Remote Code Execution (RCE), full system compromise, and significant data loss. The high CVSS score of 8.8 reflects the critical nature of this vulnerability, as it directly impacts the server's security posture.

Remediation

Immediate Action: Update the spatie/laravel-medialibrary package to version 11.23.0 or later via Composer.

Proactive Monitoring: Audit uploaded files and media directories for unauthorized or unexpected file types, and review server logs for suspicious upload activity or execution attempts.

Compensating Controls: Configure the web server to prevent the execution of scripts in the media upload directory and implement strict server-side validation for all file uploads.

Exploitation status

Public Exploit Available: No (exploit_available: false)

Analyst recommendation

Given the potential for arbitrary file uploads and subsequent remote code execution, this update is critical for any application utilizing the Spatie Laravel Media Library. Developers should verify their dependency versions and apply the update to version 11.23.0 without delay to neutralize this attack vector.