Advisory

GHSA-hfq9-rfpv-j8r8

Also known as: CVE-2017-16034

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.

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2020-09-01 16:49 UTC
Modified
2023-11-08 03:59 UTC

Affected packages and fixes

pidusage

npm · All systems

Affected

  • introduced 0, fixed 1.1.5 (semver)

Fixed versions

1.1.5

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences