GHSA-95rp-6gqp-6622CriticalCVSS 9.8

Command Injection Vulnerability in find-exec

Published
August 30, 2023
Last Modified
November 7, 2023

🔗 CVE IDs covered (1)

📋 Description

Older versions of the package are vulnerable to Command Injection as an attacker controlled parameter. As a result, attackers may run malicious commands.

For example:

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

This creates a file named "hacked" on the filesystem.

You should never allow users to control commands to find, since this package attempts to run every command provided.

Thanks to @miguelafmonteiro for reporting.

🎯 Affected products1

  • npm/find-exec:< 1.0.3

🔗 References (4)