CVE-2024-39943
JSON

9.9critical

rejetto HFS vulnerable to OS Command Execution by remote authenticated users

Severity
9.9critical CVSS:3.1 by mitre
Exploit likelihood
37.5% (higher than 98% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-5f4x-hwv2-w9w2

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

Product or packageVersionsReported by
Unspecified productn/aCVE List
rejetto http_file_serverbefore 0.52.10CVE List, NVD
hfs (npm)before 0.52.10GitHub Advisory Database

All scores

mitre9.9critical CVSS:3.1CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:N
GitHub9.9high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
NVD8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-78CWE-284

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total.

What each source says

CVE List

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

NVD (es)

rejetto HFS (también conocido como servidor de archivos HTTP) 3 anterior a 0.52.10 en Linux, UNIX y macOS permite la ejecución de comandos del sistema operativo por parte de usuarios remotos autenticados (si tienen permisos de carga). Esto ocurre porque se usa un shell para ejecutar df (es decir, con execSync en lugar de spawnSync en child_process en Node.js).

References

Sources

SourceRecordLicence
CVE ListCVE-2024-39943 changed 2024-08-02CVE Terms of Use
GitHub Advisory DatabaseGHSA-5f4x-hwv2-w9w2 changed 2024-11-18CC-BY-4.0
NVDCVE-2024-39943 changed 2026-06-17Public domain