# CVE-2021-23374: Arbitrary Command Injection

- Severity: High 7.3 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.34%, higher than 72% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-04-18T18:40:37.318Z
- Modified: 2026-06-17T03:38:38.747Z
- Also known as: GHSA-v2jv-33gh-xx29
- Weaknesses: CWE-77, CWE-78
- Assigned by: snyk

## Description

This affects all versions 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.

(As written by CVE List.)

## Affected

- ps-visitor: before unspecified
- ps-visitor (npm): up to 0.0.2
- ps-visitor_project ps-visitor: no versions given

## Every score

- snyk: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://snyk.io/vuln/SNYK-JS-PSVISITOR-1078544> (exploit, third-party-advisory, web)
- <https://github.com/WisdomKwan/ps-visitor/blob/cdfc934a8e4af95aa0473f4b2a4bd091d09faf2f/index.js%23L404> (broken-link)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-23374> (advisory)
- <https://github.com/WisdomKwan/ps-visitor> (package)
- <https://github.com/WisdomKwan/ps-visitor/blob/cdfc934a8e4af95aa0473f4b2a4bd091d09faf2f/index.js#23L404> (web)

## Sources

- CVE List: [CVE-2021-23374](https://www.cve.org/CVERecord?id=CVE-2021-23374), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-v2jv-33gh-xx29](https://github.com/advisories/GHSA-v2jv-33gh-xx29), CC-BY-4.0, modified 2026-03-13
- NVD: [CVE-2021-23374](https://nvd.nist.gov/vuln/detail/CVE-2021-23374), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-23374 · Whole record: https://cve.day/CVE-2021-23374.json · Rebuilt by cve.day 2026-11-25T22:58:00.849Z
