CVE-2023-40582
published 2023-08-30CVE-2023-40582: find-exec is a utility to discover available shell commands. Versions prior to 1.0.3 did not properly escape user input and are vulnerable to Command Injection…
PriorityP259critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
1.49%
70.9th percentile
find-exec is a utility to discover available shell commands. Versions prior to 1.0.3 did not properly escape user input and are vulnerable to Command Injection via an attacker controlled parameter. As a result, attackers may run malicious shell commands in the context of the running process. This issue has been addressed in version 1.0.3. users are advised to upgrade. Users unable to upgrade should ensure that all input passed to find-exec comes from a trusted source.
Affected
3 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| find-exec_project | find-exec | < 1.0.3 | 1.0.3 |
| find-exec_project | find-exec | >= 0 < 1.0.3 | 1.0.3 |
| shime | find-exec | < 1.0.3 | 1.0.3 |
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
Command Injection Vulnerability in find-exec
ghsa·2023-08-30
CVE-2023-40582 [CRITICAL] CWE-78 Command Injection Vulnerability in find-exec
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.
OSV
Command Injection Vulnerability in find-exec
osv·2023-08-30
CVE-2023-40582 [CRITICAL] Command Injection Vulnerability in find-exec
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.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/shime/find-exec/commit/74fb108097c229b03d6dba4cce81e36aa364b51chttps://github.com/shime/find-exec/security/advisories/GHSA-95rp-6gqp-6622https://github.com/shime/find-exec/commit/74fb108097c229b03d6dba4cce81e36aa364b51chttps://github.com/shime/find-exec/security/advisories/GHSA-95rp-6gqp-6622
2023-08-30
Published