{"id":"CVE-2026-49970","published":"2026-07-13T18:11:36Z","modified":"2026-10-08T15:23:03Z","title":"Laravel-Mediable < 7.0.0 Path Traversal via File::sanitizePath()","vendor":"plank","product":"laravel-mediable","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01026,"percentile":0.64402,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/plank/laravel-mediable/releases/tag/7.0.0","tags":["release-notes","patch"]},{"url":"https://github.com/plank/laravel-mediable/commit/6d1e7fb39922fdfb3b2d120e13f4eb2e653ae082","tags":["patch"]},{"url":"https://www.vulncheck.com/advisories/laravel-mediable-path-traversal-via-file-sanitizepath","tags":["third-party-advisory"]}],"priority":{"score":19.0,"factors":[{"name":"EPSS percentile","points":12.88},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"plank","affectedVersions":[{"vendor":"plank","product":"laravel-mediable","versions":["< 7.0.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-07-14T13:19:43.970735Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"plank/laravel-mediable","vulnerableRanges":["<7.0.0"],"patched":["7.0.0"],"from":["GHSA-xv8g-76mx-2rxc"],"provenance":"source"}],"summary":{"text":"The flaw is a path traversal bug in the File::sanitizePath() function of plank's laravel-mediable package, affecting versions before 7.0.0. Its permissive character-class regex and ineffective trailing trim() call let the directory argument passed to MediaUploader::toDestination() escape its intended location. An attacker with low-privilege authenticated access over the network can exploit this without user interaction to write uploaded files to arbitrary locations, such as the document root or application and environment configuration directories, which can lead to remote code execution.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:17:04Z"},"euvd":{"id":"EUVD-2026-43517","exploited":false,"provenance":"source"}}