CVE-2024-39943: rejetto HFS OS command execution in upload handling

CVE-2024-39943 · Severity: low · CVSS 3.1 · Published 2024-07-05

rejetto HFS is a web-based file server application that allows users to share folders and files over HTTP. The vulnerability allows authenticated users with upload permissions to execute arbitrary operating system commands on the server by exploiting improper shell command execution. An attacker could gain full control of the server and access sensitive data or disrupt service availability.

Technologies: Rejetto HFS. Vendors: Rejetto.

Quick answers

Is CVE-2024-39943 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2024-39943 being exploited in the wild.
How severe is CVE-2024-39943?
Low severity, with a CVSS score of 3.1, published 5 July 2024.
Which products and versions are affected?
Rejetto HFS before 0.52.10.
Is there a fix for CVE-2024-39943?
A patch was published on 2024-07-03: Fix committed and version 0.52.10 released Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2024-39943 attacked?
It is attacked over the network, in a web application.
Am I affected by CVE-2024-39943?
Check whether you run Rejetto HFS at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

rejetto HFS contains an OS command injection vulnerability in its upload handling functionality on POSIX systems (Linux, UNIX, macOS). The root cause is the use of execSync instead of spawnSync in Node.js when executing the df command to check disk space. The execSync function invokes a shell to execute the command, which is vulnerable to shell metacharacter injection. An authenticated attacker with upload permissions can craft a malicious filename or file metadata containing shell metacharacters (e.g., backticks, command substitution) to inject and execute arbitrary commands with the privileges of the HFS process. The vulnerability requires prior authentication and upload permissions, limiting the attack surface to authenticated users. The fix, released in version 0.52.10, replaces execSync with spawnSync to avoid shell interpretation. Affected versions: all releases before 0.52.10.

Affected products

  • rejetto HFS before 0.52.10

Identifiers

  • CVE-2024-39943
  • GHSA-5f4x-hwv2-w9w2

Timeline

  • 2024-07-04: disclosed: CVE-2024-39943 published on NVD
  • 2024-07-03: patched: Fix committed and version 0.52.10 released

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.