Skip to content

Command Injection in ps-visitor

Critical severity GitHub Reviewed Published May 7, 2021 to the GitHub Advisory Database • Updated Jan 27, 2023

Package

npm ps-visitor (npm)

Affected versions

<= 0.0.2

Patched versions

None

Description

This affects all versions up to and including version 0.0.2 of package ps-visitor. 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.

References

Published by the National Vulnerability Database Apr 18, 2021
Reviewed May 6, 2021
Published to the GitHub Advisory Database May 7, 2021
Last updated Jan 27, 2023

Severity

Critical
9.8
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Weaknesses

CVE ID

CVE-2021-23374

GHSA ID

GHSA-v2jv-33gh-xx29

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.