GitHub Advisoryadvisory · npm

GHSA-vm67-7vmg-66vm Arbitrary Command Injection in portprocesses

MEDIUM Published 2021-04-06 Modified 2021-03-31 Official page ↗
Aliases
CVE-2021-23348
Ecosystem
npm
Packages
portprocesses
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Weaknesses
CWE-77, CWE-78
Reviewed
2021-03-31

Affected packages

• npm portprocesses: < 1.0.5 → fixed in 1.0.5

Description

Impact An Arbitrary Command Injection vulnerability was reported in `portprocesses` impacting versions <= 1.0.4. Example (Proof of Concept) The following example demonstrates the vulnerability and will run `touch success` therefore creating a file named `success`. ```js const portprocesses = require("portprocesses"); portprocesses.killProcess("$(touch success)"); ```

Related

Alias · CVE (1)

  • CVE-2021-23348 This affects the package portprocesses before 1.0.5. vulnerability

Weakness · CWE (2)

  • CWE-77 Improper Neutralization of Special Elements used in a Command weakness
  • CWE-78 Improper Neutralization of Special Elements used in an OS Command weakness

References