OS Command Injection Affecting hfs package, versions <0.52.10


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.06% (24th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-JS-HFS-7430254
  • published 8 Jul 2024
  • disclosed 4 Jul 2024
  • credit Daniele

How to fix?

Upgrade hfs to version 0.52.10 or higher.

Overview

hfs is a HTTP File Server

Affected versions of this package are vulnerable to OS Command Injection via the improper use of execSync instead of spawnSync for executing shell commands.

References

CVSS Scores

version 4.0
version 3.1
Expand this section

Snyk

Recommended
9.4 critical
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    None
  • Privileges Required (PR)
    Low
  • User Interaction (UI)
    None
  • Confidentiality (VC)
    High
  • Integrity (VI)
    High
  • Availability (VA)
    High
  • Confidentiality (SC)
    High
  • Integrity (SI)
    High
  • Availability (SA)
    High