{"id":"GHSA-hfq9-rfpv-j8r8","summary":"Command Injection in pidusage","details":"Affected versions of `pidusage` pass unsanitized input to `child_process.exec()`, resulting in arbitrary code execution in the `ps` method.\n \nThis package is vulnerable to this PoC on Darwin, SunOS, FreeBSD, and AIX.\n\nWindows and Linux are not vulnerable. \n\n## Proof of Concept\n```\nvar pid = require('pidusage');\npid.stat('1 && /usr/local/bin/python');\n```\n\n\n## Recommendation\n\nUpdate to version 1.1.5 or later.","aliases":["CVE-2017-16034"],"modified":"2023-11-08T03:59:00.742866Z","published":"2020-09-01T16:49:19Z","database_specific":{"cwe_ids":["CWE-77"],"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2020-08-31T18:20:25Z","nvd_published_at":null},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2017-16034"},{"type":"WEB","url":"https://www.npmjs.com/advisories/356"}],"affected":[{"package":{"name":"pidusage","ecosystem":"npm","purl":"pkg:npm/pidusage"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.1.5"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 1.1.4","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-hfq9-rfpv-j8r8/GHSA-hfq9-rfpv-j8r8.json"}}],"schema_version":"1.9.0"}