Critical, CVSS 9.8npmAmendedPublished
Command Injection Vulnerability in find-exec
CVE-2023-40582 · GHSA-95rp-6gqp-6622
- Affected
- npm find-exec < 1.0.3
- Fixed in
- 1.0.3· Vendor fix available
- Issue
- 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: 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.
Recommended action: Upgrade to 1.0.3 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.