CVE-2026-49970
HIGH 8.7CVSS 4.0Laravel-Mediable: path traversal vulnerability in the File::sanitizePath()
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.
- Published
- 13 Jul 2026
- Last modified
- 24 Oct 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Deferred
- Weakness
- CWE-22
- Also known as
- GHSA-xv8g-76mx-2rxc
- Sources
- NVDJSONOSV GHSA-xv8g-76mx-2rxcJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 4.0 | HIGH 8.7 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Packagist | plank/laravel-mediable | < 7.0.0 | 7.0.0 |
References
- https://github.com/plank/laravel-mediable/commit/6d1e7fb39922fdfb3b2d120e13f4eb2e653ae082 · WEB
- https://github.com/plank/laravel-mediable/releases/tag/7.0.0 · WEB
- https://www.vulncheck.com/advisories/laravel-mediable-path-traversal-via-file-sanitizepath · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-49970 · ADVISORY
- https://github.com/plank/laravel-mediable/pull/391 · WEB
- https://github.com/plank/laravel-mediable · PACKAGE
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 13 Jul 2026)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 13 Jul 2026)