# CVE-2024-39943: rejetto HFS vulnerable to OS Command Execution by remote authenticated users

- Severity: Critical 9.9 (CVSS:3.1, scored by mitre) `CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 37.5%, higher than 98% of CVEs (2026-12-01)
- Published: 2024-07-04T00:00:00.000Z
- Modified: 2026-06-17T07:43:04.153Z
- Also known as: GHSA-5f4x-hwv2-w9w2
- Weaknesses: CWE-78, CWE-284
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: mitre

## 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).

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- rejetto http_file_server: before 0.52.10
- hfs (npm): before 0.52.10

## Every score

- mitre: CVSS:3.1 9.9 Critical `CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:N`
- GitHub: CVSS:3.1 9.9 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://www.rejetto.com/wiki/index.php/HFS:_Working_with_uploads> (product, web)
- <https://github.com/rejetto/hfs/commit/305381bd36eee074fb238b64302a252668daad1d> (patch, web)
- <https://github.com/rejetto/hfs/compare/v0.52.9...v0.52.10> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-39943> (advisory)
- <https://github.com/rejetto/hfs> (package)

## Sources

- CVE List: [CVE-2024-39943](https://www.cve.org/CVERecord?id=CVE-2024-39943), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-5f4x-hwv2-w9w2](https://github.com/advisories/GHSA-5f4x-hwv2-w9w2), CC-BY-4.0, modified 2024-11-18
- NVD: [CVE-2024-39943](https://nvd.nist.gov/vuln/detail/CVE-2024-39943), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-39943 · Whole record: https://cve.day/CVE-2024-39943.json · Rebuilt by cve.day 2026-11-25T22:58:42.513Z
