AploSec / Disclosures / CVE-2026-142303
Erugo 0.2.15 through 0.3.2 Path Traversal via NUL Bytes in sanitizePath
CVE-2026-142303 · published 2026-12-02
In plain words: this type of bug lets someone read or write files outside the folder they should be limited to (path traversal). No fixed release is listed yet.
Summary
CVE-2026-142303 affects Erugo (Server) >= 0.2.15, <= 0.3.2: Path Traversal via NUL Bytes in sanitizePath (CWE-22). No fixed release is listed. CVSS 4.0 base score 5.3 (Medium), assigned by VulnCheck. Published 2026-12-02 by VulnCheck. Credit: Zachariah Mithani (AploSec).
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.
Evidence
Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.
Remediation
No fixed release is listed in the advisory. Check the references for upstream status.
References
- VulnCheck advisoryhttps://www.vulncheck.com/advisories/erugo-0.2.15-through-0.3.2-path-traversal-via-nul-bytes-in-sanitizepath
- Vulnerable codehttps://github.com/ErugoOSS/Erugo/blob/v0.3.2/app/Http/Controllers/UploadsController.php#L767-L788
- Vulnerable codehttps://github.com/ErugoOSS/Erugo/blob/v0.3.2/app/Http/Controllers/UploadsController.php#L288-L308
- CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-142303
- Severity
- Medium 5.3CVSS 4.0, scored by VulnCheck in the CVE record
- Package
- Erugo
- Ecosystem
- Server
- Affected
- >= 0.2.15, <= 0.3.2
- Fixed
- None
- Weakness
- CWE-22
- CNA
- VulnCheck
- Credit
- Zachariah Mithani (AploSec)finder