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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.9
- **CVSS:** 9.9 (v3.1, CNA) `CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:N`
- **CVSS metrics:** Attack complexity: Low; Attack vector: Network; Availability impact: High; Confidentiality impact: High; Integrity impact: High; Privileges required: Low; Scope: Changed (impact reaches other components); User interaction: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 9.01% (percentile 96, 2026-11-28)
- **CWE:** CWE-78, CWE-284
- **Aliases:** GHSA-5f4x-hwv2-w9w2
- **Published:** 2024-07-04T00:00:00.000Z
- **Modified:** 2026-06-17T07:43:04.153Z

## Who should check

- Projects that depend on npm package hfs (\< 0.52.10)
- Anyone running n/a (versions: see the vendor advisory)
- Anyone running rejetto http\_file\_server \< 0.52.10

## 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 and fixed versions

- npm `hfs`: affected \< 0.52.10; fixed 0.52.10 (osv)
- n/a: see vendor advisory (nvd)
- rejetto http\_file\_server: \< 0.52.10 (nvd)

## Mitigation

- Upgrade hfs to 0.52.10 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-39943. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-39943.md
Affected: hfs < 0.52.10
Fixed in: 0.52.10

Steps:
1. Search this machine and project for hfs (npm), n/a, rejetto http_file_server: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-39943 being exploited?

There is no confirmed exploitation: CVE-2024-39943 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 9.01% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2024-39943?

Critical: CVSS 9.9 (v3.1, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2024-39943?

hfs \< 0.52.10.

### Is there a fix for CVE-2024-39943?

Yes. Fixed in 0.52.10. Upgrade hfs to 0.52.10 or later.

### How do I check if I'm affected by CVE-2024-39943?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-39943>
- patch: <https://github.com/rejetto/hfs/commit/305381bd36eee074fb238b64302a252668daad1d>
- patch: <https://github.com/rejetto/hfs/compare/v0.52.9...v0.52.10>
- other: <https://www.rejetto.com/wiki/index.php/HFS:_Working_with_uploads>
- other: <https://github.com/rejetto/hfs>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-39943>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-5f4x-hwv2-w9w2> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-39943> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-39943>
