CVE-2026-49972: Unrestricted Upload of File with Dangerous Type in plank laravel-mediable
Laravel-Mediable versions prior to 7.0.0 contain a file upload vulnerability that allows unauthenticated attackers to upload files with double extensions (e.g., shell.php.jpg) that bypass validation checks. Due to the way the filename is processed, the inner .php extension is preserved, which can lead to remote code execution on misconfigured Apache or nginx servers that execute files containing .php in their names. This vulnerability has a high severity rating and a CVSS score of 7.7.
AI Analysis
Technical Summary
CVE-2026-49972 affects Laravel-Mediable before version 7.0.0. The vulnerability arises from improper handling of uploaded filenames with double extensions, where the inner .php extension remains in the base filename after PATHINFO_FILENAME extraction. This allows an attacker to upload a file such as shell.php.jpg that passes MIME type and extension validation due to the outer .jpg extension. On web servers configured to execute any file containing .php in its name as PHP code, the uploaded file can be executed, enabling remote code execution by unauthenticated attackers.
Potential Impact
Successful exploitation can lead to remote code execution on affected servers, allowing attackers to run arbitrary PHP code. This can compromise the confidentiality, integrity, and availability of the affected system. The vulnerability is exploitable without authentication and requires the server to be misconfigured to execute PHP code in files with .php anywhere in the filename.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, review and harden server configurations to ensure that files with double extensions containing .php are not executed as PHP code. Implement strict validation and sanitization of uploaded filenames and extensions. Consider disabling execution of PHP code in upload directories or using separate storage mechanisms that do not allow execution.
CVE-2026-49972: Unrestricted Upload of File with Dangerous Type in plank laravel-mediable
Description
Laravel-Mediable versions prior to 7.0.0 contain a file upload vulnerability that allows unauthenticated attackers to upload files with double extensions (e.g., shell.php.jpg) that bypass validation checks. Due to the way the filename is processed, the inner .php extension is preserved, which can lead to remote code execution on misconfigured Apache or nginx servers that execute files containing .php in their names. This vulnerability has a high severity rating and a CVSS score of 7.7.
CVSS v4.0
Score 7.7high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-49972 affects Laravel-Mediable before version 7.0.0. The vulnerability arises from improper handling of uploaded filenames with double extensions, where the inner .php extension remains in the base filename after PATHINFO_FILENAME extraction. This allows an attacker to upload a file such as shell.php.jpg that passes MIME type and extension validation due to the outer .jpg extension. On web servers configured to execute any file containing .php in its name as PHP code, the uploaded file can be executed, enabling remote code execution by unauthenticated attackers.
Potential Impact
Successful exploitation can lead to remote code execution on affected servers, allowing attackers to run arbitrary PHP code. This can compromise the confidentiality, integrity, and availability of the affected system. The vulnerability is exploitable without authentication and requires the server to be misconfigured to execute PHP code in files with .php anywhere in the filename.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, review and harden server configurations to ensure that files with double extensions containing .php are not executed as PHP code. Implement strict validation and sanitization of uploaded filenames and extensions. Consider disabling execution of PHP code in upload directories or using separate storage mechanisms that do not allow execution.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-06-02T16:30:15.234Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a552f7368715ace43a5ece3
Added to database: 07/13/2026, 18:33:23 UTC
Last enriched: 07/13/2026, 18:47:39 UTC
Last updated: 07/14/2026, 01:57:02 UTC
Views: 11
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.