Description
Erugo is a self-hosted file-sharing platform. In versions up to and including 0.2.14, an authenticated low-privileged user can upload arbitrary files to any specified location due to insufficient validation of user‑supplied paths when creating shares. By specifying a writable path within the public web root, an attacker can upload and execute arbitrary code on the server, resulting in remote code execution (RCE). This vulnerability allows a low-privileged user to fully compromise the affected Erugo instance. Version 0.2.15 fixes the issue.
Problem types
CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
CWE-94: Improper Control of Generation of Code ('Code Injection')
CWE-434: Unrestricted Upload of File with Dangerous Type
Product status
References
github.com/.../Erugo/security/advisories/GHSA-336w-hgpq-6369
github.com/.../Erugo/security/advisories/GHSA-336w-hgpq-6369
github.com/...ommit/256bc63831a0b5e9a94cb024a0724e0cd5fa5e38
github.com/ErugoOSS/Erugo/releases/tag/v0.2.15