CVE-2026-49972: Laravel-Mediable < 7.0.0 File Upload RCE via Extension Bypass

Published Jul 13, 2026
·
Updated

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

1 affected component
Laravel Laravel-Mediable<7.0.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Laravel-Mediable to a version that resolves this vulnerability.

    Fixed in 7.0.0
  2. 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

Jul 13, 2026
CVE Published
via MITRE·06:16 PM
Data Sourced
via MITRE·06:16 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:17 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-49972?

The severity of CVE-2026-49972 is high with a score of 8.8.

2

How do I fix CVE-2026-49972?

To fix CVE-2026-49972, upgrade Laravel-Mediable to version 7.0.0 or later.

3

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.

4

Who is affected by CVE-2026-49972?

Any application using Laravel-Mediable versions prior to 7.0.0 is affected by CVE-2026-49972.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203