GitHub Advisory Database
GHSA-5f4x-hwv2-w9w2
rejetto HFS vulnerable to OS Command Execution by remote authenticated users
Details
rejetto HFS (aka HTTP File Server) 3 before 0.52.10 on Linux, UNIX, and macOS allows OS command execution by remote authenticated users (if they have Upload permissions). This occurs because a shell is used to execute df (i.e., with execSync instead of spawnSync in child_process in Node.js).
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| npm | hfs | All versions before 0.52.10 (fixed in 0.52.10) |