{"id":"CVE-2017-16034","aliases":["GHSA-hfq9-rfpv-j8r8"],"status":"published","title":"Command Injection in pidusage","description":"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 \u0026\u0026 /usr/local/bin/python');\n```\n\n\n## Recommendation\n\nUpdate to version 1.1.5 or later.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-77"],"published":"2020-09-01T16:49:19Z","modified":"2023-11-08T03:59:00Z","fixes":[{"ecosystem":"npm","package":"pidusage","fixed_in":["1.1.5"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"pidusage","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"1.1.4"},{"fixed":"1.1.5"}]}]},{"source":"osv","ecosystem":"npm","package":"pidusage","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.1.5"}]}]}],"references":[{"url":"https://www.npmjs.com/advisories/356","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-16034","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-hfq9-rfpv-j8r8"}],"sources":{"ghsa":[{"id":"GHSA-hfq9-rfpv-j8r8","title":"Command Injection in pidusage","description":"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 \u0026\u0026 /usr/local/bin/python');\n```\n\n\n## Recommendation\n\nUpdate to version 1.1.5 or later.","status":"published","published":"2020-09-01T16:49:19Z","modified":"2023-01-09T05:04:01Z","cwes":["CWE-77"],"updated_at":"2026-11-02T14:36:08.267721Z"}],"osv":[{"id":"GHSA-hfq9-rfpv-j8r8","title":"Command Injection in pidusage","description":"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 \u0026\u0026 /usr/local/bin/python');\n```\n\n\n## Recommendation\n\nUpdate to version 1.1.5 or later.","status":"published","published":"2020-09-01T16:49:19Z","modified":"2023-11-08T03:59:00.742866Z","cwes":["CWE-77"],"updated_at":"2026-11-02T15:46:48.920784Z"}]}}
