CVE-2026-49970
HIGHLaravel-Mediable < 7.0.0 Path Traversal via File::sanitizePath()
Title source: cnaDescription
Laravel-Mediable before 7.0.0 contains a path traversal vulnerability in the File::sanitizePath() function that allows attackers to write uploaded files to arbitrary locations by controlling the directory argument passed to MediaUploader::toDestination(). Attackers can exploit the permissive character-class regex that allows both dot and slash characters combined with an ineffective trailing trim() call to bypass sanitization and upload files to sensitive locations such as the document root, environment configuration files, or application configuration directories, enabling remote code execution.
References (3)
Core 3
Core References
Release Notes release-notes
patch
Release Notes
https://github.com/plank/laravel-mediable/releases/tag/7.0.0
Patch patch
Patch Commit
https://github.com/plank/laravel-mediable/commit/6d1e7fb39922fdfb3b2d120e13f4eb2e653ae082
Third Party Advisory third-party-advisory
https://www.vulncheck.com/advisories/laravel-mediable-path-traversal-via-file-sanitizepath
Scores
CVSS v3
8.8
EPSS
0.0077
EPSS Percentile
52.1%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
total
Details
CWE
CWE-22
Status
published
Products (1)
plank/laravel-mediable
< 7.0.0
Published
Jul 13, 2026
Tracked Since
Jul 14, 2026