CVE-2026-49970: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in plank laravel-mediable
Laravel-Mediable versions before 7.0.0 contain a path traversal vulnerability in the File::sanitizePath() function. This flaw allows attackers to manipulate the directory argument in MediaUploader::toDestination() to write uploaded files to arbitrary locations. The vulnerability arises from a permissive regex and ineffective sanitization, enabling uploads to sensitive directories such as the document root or configuration files, potentially leading to remote code execution.
AI Analysis
Technical Summary
CVE-2026-49970 is a path traversal vulnerability in the plank laravel-mediable package prior to version 7.0.0. The issue exists in the File::sanitizePath() function, which inadequately sanitizes the directory argument passed to MediaUploader::toDestination(). The sanitization uses a permissive character-class regex that allows dot and slash characters, combined with an ineffective trailing trim() call, permitting attackers to bypass restrictions and upload files outside intended directories. This can lead to arbitrary file writes in sensitive locations, including the document root and configuration directories, enabling remote code execution.
Potential Impact
Exploitation of this vulnerability allows an attacker with limited privileges to write files to arbitrary locations on the server. This can result in overwriting critical files such as environment configuration or application configuration files, potentially leading to remote code execution. The CVSS 4.0 base score is 8.7 (high severity), reflecting the network attack vector, low attack complexity, no privileges required, no user interaction, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid using vulnerable versions of laravel-mediable. Restrict file upload permissions and validate or sanitize input controlling upload destinations carefully to mitigate risk.
CVE-2026-49970: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in plank laravel-mediable
Description
Laravel-Mediable versions before 7.0.0 contain a path traversal vulnerability in the File::sanitizePath() function. This flaw allows attackers to manipulate the directory argument in MediaUploader::toDestination() to write uploaded files to arbitrary locations. The vulnerability arises from a permissive regex and ineffective sanitization, enabling uploads to sensitive directories such as the document root or configuration files, potentially leading to remote code execution.
CVSS v4.0
Score 8.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-49970 is a path traversal vulnerability in the plank laravel-mediable package prior to version 7.0.0. The issue exists in the File::sanitizePath() function, which inadequately sanitizes the directory argument passed to MediaUploader::toDestination(). The sanitization uses a permissive character-class regex that allows dot and slash characters, combined with an ineffective trailing trim() call, permitting attackers to bypass restrictions and upload files outside intended directories. This can lead to arbitrary file writes in sensitive locations, including the document root and configuration directories, enabling remote code execution.
Potential Impact
Exploitation of this vulnerability allows an attacker with limited privileges to write files to arbitrary locations on the server. This can result in overwriting critical files such as environment configuration or application configuration files, potentially leading to remote code execution. The CVSS 4.0 base score is 8.7 (high severity), reflecting the network attack vector, low attack complexity, no privileges required, no user interaction, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid using vulnerable versions of laravel-mediable. Restrict file upload permissions and validate or sanitize input controlling upload destinations carefully to mitigate risk.
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: 6a552f7368715ace43a5ecd9
Added to database: 07/13/2026, 18:33:23 UTC
Last enriched: 07/13/2026, 18:47:49 UTC
Last updated: 07/13/2026, 22:38:32 UTC
Views: 20
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.