Skip to main content
← All vulnerabilities
CVE-2026-49970GHSA-XV8G-76MX-2RXC

Laravel-Mediable < 7.0.0 Path Traversal via File::sanitizePath()

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 7.0.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • plank laravel-mediable

    fixed in 7.0.0

  • plank/laravel-mediablePackagist

    fixed in 7.0.0

References 3

GitHub · plank/laravel-mediable

vulncheck.com