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.
CVE-2026-49970
Score 8.8 from GitHub Security Advisory (severity: HIGH) published 2026-07-13. a secondary CVSS source baseline 8.8; sources differ by 0.0.
- High severity, but no confirmed exploitation yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 8.8
- EG Score
- 8.8(high)
- EPSS
- 51.5%
- KEV
- Not listed
Published
July 13, 2026
Last Modified
July 14, 2026
Advisory Details (3)
Auto-updated Jul 13, 2026Laravel-Mediable < 7.0.0 Path Traversal via File::sanitizePath() | Advisories | VulnCheck
https://www.vulncheck.com/advisories/laravel-mediable-path-traversal-via-file-sanitizepath7.0.0
Patch available: plank/laravel-mediable 7.0.0
https://github.com/plank/laravel-mediable/releases/tag/7.0.0commit 6d1e7fb39922 (plank/laravel-mediable)
Patch available: plank/laravel-mediable 7.0.0 (contains commit 6d1e7fb39922)
https://github.com/plank/laravel-mediable/commit/6d1e7fb39922fdfb3b2d120e13f4eb2e653ae082Vendor Advisories for CVE-2026-49970(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 13× in last 7d / 13× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-15 16:57 UTCEPSS rescore
- 2026-07-15 16:57 UTCEPSS rescore
- 2026-07-15 16:07 UTCEG score recompute
- 2026-07-15 16:07 UTCGHSA enrichment
- 2026-07-15 04:44 UTCEG score recompute
- 2026-07-15 04:44 UTCGHSA enrichment
- 2026-07-15 02:00 UTCEPSS rescore
- 2026-07-14 17:17 UTCEG score recompute
- 2026-07-14 17:17 UTCGHSA enrichment
- 2026-07-14 05:51 UTCEG score recompute
- 2026-07-14 05:51 UTCGHSA enrichment
- 2026-07-13 18:28 UTCEG score recompute
- 2026-07-13 18:27 UTCMITRE cvelistV5first tracked
Frequently asked(5)
What is CVE-2026-49970?
When was CVE-2026-49970 disclosed?
Is CVE-2026-49970 actively exploited?
What is the CVSS score of CVE-2026-49970?
How do I remediate CVE-2026-49970?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-49970
Is Your Infrastructure Affected by CVE-2026-49970?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.