Vulnerability · Published Jul 4, 2024 · Assigned by mitre
CVE-2024-39943
Critical 9.9
In plain English
A critical-severity improper access control in the hfs package (npm). Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 39.5% (higher than 99% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official 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).
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | hfs | 0.52.10 | GHSA-5f4x-hwv2-w9w2 |
Affected products (as reported)
Weakness: CWE-284 · Vector: CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:N