Command Injection Affecting find-exec package, versions <1.0.3


Severity

0.0
high
0
10

    Threat Intelligence

    Exploit Maturity
    Proof of concept
    EPSS
    0.07% (30th 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-FINDEXEC-5876637
  • published 31 Aug 2023
  • disclosed 30 Aug 2023
  • credit Miguel Monteiro

How to fix?

Upgrade find-exec to version 1.0.3 or higher.

Overview

find-exec is a Finds first available shell command from a list.

Affected versions of this package are vulnerable to Command Injection via the isExec function due to missing shell-quote, allowing attackers to run malicious commands.

PoC

const findexec = require('find-exec');
findexec("; touch hacked")

References

CVSS Scores

version 3.1
Expand this section

Snyk

8.1 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    High
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    High
  • Availability (A)
    High
Expand this section

NVD

9.8 critical