rejetto/hfs · Security
rejetto HFS vulnerable to OS Command Execution by remote authenticated users
- GHSA ID
- GHSA-5f4x-hwv2-w9w2
- CVE ID
- CVE-2024-39943
- Severity
- high
- Published
- Updated
- CVSS
- 9.9 · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- CVSS v3
- 9.9 · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- CVSS v4
- 8.7 · CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Description
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).
CWEs
- CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
- CWE-284 · Improper Access Control
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-39943 ↗
- https://github.com/rejetto/hfs/commit/305381bd36eee074fb238b64302a252668daad1d ↗
- https://github.com/rejetto/hfs/compare/v0.52.9...v0.52.10 ↗
- https://www.rejetto.com/wiki/index.php/HFS:_Working_with_uploads ↗
- https://github.com/advisories/GHSA-5f4x-hwv2-w9w2 ↗