CVE-2026-142303: Erugo 0.2.15 through 0.3.2 Path Traversal via NUL Bytes in sanitizePath
Erugo 0.2.15 through 0.3.2 contains a path traversal vulnerability in UploadsController::sanitizePath that allows authenticated users to create directories outside the share root via NUL byte segments. Attackers can supply filePaths containing '.', NUL, '.' segments that become '..' after sanitization, causing recursive mkdir to create empty directory trees in web-server-writable locations.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
An attacker must be authenticated and able to submit file paths to the affected upload handling. The vulnerable behavior can create directories in locations writable by the web server outside the intended share root.
What is the practical impact of exploitation?
The issue enables creation of empty directory trees outside the share root through path traversal. The provided information does not indicate that it permits writing file contents outside the share root or reading existing files.
What input pattern is required?
The attacker supplies filePaths containing segments consisting of a dot, a NUL byte, and a dot. After sanitization, these segments become '..', which can cause recursive directory creation to traverse outside the share root.
Which releases are affected?
Erugo versions 0.2.15 through 0.3.2 are identified as affected.