Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. hfs
  4. ›
  5. CVE-2024-39943

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

July 5, 2024 (updated November 18, 2024)

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

References

  • github.com/advisories/GHSA-5f4x-hwv2-w9w2
  • github.com/rejetto/hfs
  • github.com/rejetto/hfs/commit/305381bd36eee074fb238b64302a252668daad1d
  • github.com/rejetto/hfs/compare/v0.52.9...v0.52.10
  • nvd.nist.gov/vuln/detail/CVE-2024-39943
  • www.rejetto.com/wiki/index.php/HFS:_Working_with_uploads

Code Behaviors & Features

Detect and mitigate CVE-2024-39943 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.52.10

Fixed versions

  • 0.52.10

Solution

Upgrade to version 0.52.10 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-284: Improper Access Control
  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

npm/hfs/CVE-2024-39943.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Mon, 12 May 2025 12:14:21 +0000.