VYPR
Critical severityNVD Advisory· Published Sep 1, 2020· Updated Sep 23, 2021

Command Injection in pidusage

CVE-2017-16034

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 packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
pidusagenpm
< 1.1.51.1.5

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

3

News mentions

0

No linked articles in our index yet.