CVE-2023-40582 – find-exec
Package
Manager: npm
Name: find-exec
Vulnerable Version: >=0 <1.0.3
Severity
Level: Critical
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
EPSS: 0.05344 pctl0.89696
Details
Command Injection Vulnerability in find-exec 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.
Metadata
Created: 2023-08-30T20:08:58Z
Modified: 2023-08-30T20:08:58Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/08/GHSA-95rp-6gqp-6622/GHSA-95rp-6gqp-6622.json
CWE IDs: ["CWE-78"]
Alternative ID: GHSA-95rp-6gqp-6622
Finding: F404
Auto approve: 1