CVE Catalog

CVE-2026-49970

HighCVSS 8.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Elevated risk
0.77%

51th percentile - higher than 51% of all known CVEs

Summary

A path traversal vulnerability was discovered in the Laravel-Mediable library before version 7.0.0 in the File::sanitizePath() function. It allows attackers to write uploaded files to arbitrary locations by controlling the directory argument passed to MediaUploader::toDestination().

Risk Assessment

Attackers can exploit this vulnerability to place malicious files in sensitive locations such as the document root, environment configuration files, or application configuration directories, potentially leading to remote code execution and full server compromise.

Recommendation

Immediately upgrade the Laravel-Mediable library to version 7.0.0 or later, which includes a fix for the path traversal vulnerability.

Other vulnerabilities in Laravel-Mediable

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS