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.

Severity (CVSS 3.1)9.9Critical
Exploit odds (30 days)39.5%top 1.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Public PoC

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

EcosystemPackageFixed inAdvisory
npmhfs0.52.10GHSA-5f4x-hwv2-w9w2

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

Weakness: CWE-284 · Vector: CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:N

References