All reports
Critical

PIDUsage Enables OS Command Injection

Affected versions

Affected versions
<= 1.1.4
Fixed version
1.1.5

Exploitation

CVE-2017-1000220

Probability of exploitation in the next 30 days: 5.06%

FIRST EPSS · 2026-11-21

Description

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
var pid = require('pidusage');
pid.stat('1 && /usr/local/bin/python');
Remediation

Update to version 1.1.5 or later.

Links

Credits

  • mattberry3