GHSA-h2p3-h48h-9jj7

    Dashboard / Vulnerabilities / GHSA-h2p3-h48h-9jj7

    GHSA-h2p3-h48h-9jj7

    Published: 13 May 2022Last Modified: 16 Oct 2024

    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 ```js var pid = require('pidusage'); pid.stat('1 && /usr/local/bin/python'); ``` ### Remediation Update to version 1.1.5 or later.

    Affected packages

    Package

    Name: pidusage

    Purl: pkg:npm/pidusage

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -1.1.5

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-h2p3-h48h-9jj7 | CVE-DB