GHSA-7qmm-q394-fmch

Suggest an improvement
Source
https://github.com/advisories/GHSA-7qmm-q394-fmch
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/03/GHSA-7qmm-q394-fmch/GHSA-7qmm-q394-fmch.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-7qmm-q394-fmch
Aliases
  • CVE-2021-23355
Published
2021-03-19T21:19:29Z
Modified
2023-11-08T04:05:04Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Command Injection in ps-kill
Details

This affects all versions of package ps-kill. If (attacker-controlled) user input is given to the kill function, it is possible for an attacker to execute arbitrary commands. This is due to use of the child_process exec function without input sanitization in the index.js file.

PoC (provided by reporter):

var ps_kill = require('ps-kill');
ps_kill.kill('$(touch success)', function() {});
Database specific
{
    "cwe_ids": [
        "CWE-77"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2021-03-16T22:05:22Z",
    "nvd_published_at": "2021-03-15T17:15:00Z",
    "severity": "CRITICAL"
}
References

Affected packages

npm / ps-kill

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Last Affected
1.0.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/03/GHSA-7qmm-q394-fmch/GHSA-7qmm-q394-fmch.json"