Command Injection Affecting find-exec package, versions <1.0.3
Threat Intelligence
Exploit Maturity
Proof of concept
EPSS
0.14% (51st
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
Introduced: 30 Aug 2023
CVE-2023-40582 Open this link in a new tabHow 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