GHSA-h2p3-h48h-9jj7
Dashboard / Vulnerabilities / GHSA-h2p3-h48h-9jj7
Summary: PIDUsage Enables OS Command Injection
Details: ### Overview 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 ```js var pid = require('pidusage'); pid.stat('1 && /usr/local/bin/python'); ``` ### Remediation Update to version 1.1.5 or later.
References: https://nvd.nist.gov/vuln/detail/CVE-2017-1000220, https://github.com/soyuka/pidusage/commit/b70eca15f7ca7f1b82a15f8a5d4bb48737f5a89d, https://github.com/soyuka/pidusage, https://web.archive.org/web/20201208183910/https://www.npmjs.com/advisories/356
Affected packages
Package
Name: pidusage
Purl: pkg:npm/pidusage
Affected ranges
Type: SEMVER
Events:
