Advisory

GHSA-h2p3-h48h-9jj7

Also known as: CVE-2017-1000220

Summary

PIDUsage Enables OS Command Injection

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2022-05-13 01:41 UTC
Modified
2024-10-16 16:50 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