GHSA-2548-q746-x5x6

Suggest an improvement
Source
https://github.com/advisories/GHSA-2548-q746-x5x6
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/04/GHSA-2548-q746-x5x6/GHSA-2548-q746-x5x6.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-2548-q746-x5x6
Aliases
  • CVE-2021-23359
Published
2021-04-13T15:20:49Z
Modified
2023-11-08T04:05:05.126786Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Code injection in port-killer
Details

This affects all versions of package port-killer. If (attacker-controlled) user input is given, it is possible for an attacker to execute arbitrary commands. This is due to use of the child_process exec function without input sanitization. Running this PoC will cause the command touch success to be executed, leading to the creation of a file called success.

Database specific
{
    "nvd_published_at": "2021-03-18T13:15:00Z",
    "github_reviewed_at": "2021-03-22T20:46:47Z",
    "severity": "HIGH",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-20",
        "CWE-77"
    ]
}
References

Affected packages

npm / port-killer

Package

Affected ranges

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