CVE-2017-16034
Command Injection in pidusage
Also known as GHSA-hfq9-rfpv-j8r8
Mitigation
- Upgrade pidusage to 1.1.5 or later.
Who should check
- Projects that depend on npm package pidusage (< 1.1.5)
Vulnerability facts
- Affected
- pidusage < 1.1.5
- Fixed in
- 1.1.5
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- CWE
- CWE-77
- Modified
Description
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| npm pidusage | < 1.1.5 | 1.1.5 | osv |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2017-16034. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2017-16034.md Affected: pidusage < 1.1.5 Fixed in: 1.1.5 Steps: 1. Search this machine and project for pidusage (npm): dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2017-16034 being exploited?
There is no confirmed exploitation: CVE-2017-16034 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.
How serious is CVE-2017-16034?
It has no CVSS score yet. Unknown.
Which versions are affected by CVE-2017-16034?
pidusage < 1.1.5.
Is there a fix for CVE-2017-16034?
Yes. Fixed in 1.1.5. Upgrade pidusage to 1.1.5 or later.
How do I check if I'm affected by CVE-2017-16034?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.