CVE-2017-16034 json
Command Injection in pidusage
published 2020-09-01 6 y ago modified 2023-11-08 3 y ago also GHSA-hfq9-rfpv-j8r8
- cvss
- —
- not scored
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- —
- no EPSS score yet
- public exploits
- 0
- none known
Summary
Affected versions of `pidusage` pass unsanitized input to `child_process.exec()`, resulting in arbitrary code execution in the `ps` method.
This package is vulnerable to this PoC on Darwin, SunOS, FreeBSD, and AIX.
Windows and Linux are not vulnerable.
## Proof of Concept ``` var pid = require('pidusage'); pid.stat('1 && /usr/local/bin/python'); ```
## Recommendation
Update to version 1.1.5 or later.
Patch / fix
- npm pidusage 1.1.5
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | pidusage | <1.1.5 |
1.1.5 |
Classification
- Weakness
-
- CWE-77 Improper Neutralization of Special Elements used in a Command
References
Sources
- GitHub Advisory GHSA-hfq9-rfpv-j8r8
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.