CVE-2026-49972: Laravel-Mediable < 7.0.0 File Upload RCE via Extension Bypass
Laravel-Mediable before 7.0.0 contains a file upload vulnerability that allows unauthenticated attackers to achieve remote code execution by uploading a file with an embedded PHP extension disguised within a double extension such as shell.php.jpg. The PATHINFOFILENAME extraction preserves the inner .php extension in the base name, and on misconfigured Apache or nginx servers that execute any filename containing .php as PHP, the stored file is interpreted as executable code while all MIME type, extension, and aggregate type validation checks pass due to the outer .jpg extension.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Laravel-Mediableto a version that resolves this vulnerability.Fixed in 7.0.0 - Configuration
Ensure Apache/nginx are configured so that uploaded files are never interpreted/executed as PHP solely because the filename contains an inner '.php' sequence (e.g., block/disable PHP execution for paths like shell.php.jpg even when outer extension is .jpg).
Apache or nginx (file upload execution behavior) server-side handling of uploaded filenames containing .php = Disable execution for files whose names only contain .php as part of a double/outer extension (e.g., *.php.jpg)
Event History
Frequently Asked Questions
What is the severity of CVE-2026-49972?
The severity of CVE-2026-49972 is high with a score of 8.8.
How do I fix CVE-2026-49972?
To fix CVE-2026-49972, upgrade Laravel-Mediable to version 7.0.0 or later.
What type of vulnerability is associated with CVE-2026-49972?
CVE-2026-49972 is classified as a malicious file upload vulnerability leading to remote code execution.
Who is affected by CVE-2026-49972?
Any application using Laravel-Mediable versions prior to 7.0.0 is affected by CVE-2026-49972.
What can attackers achieve with CVE-2026-49972?
Attackers can achieve remote code execution by uploading files with embedded PHP extensions disguised as other file types.