# CVE-2022-25171: Command Injection

- Severity: High 7.4 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/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): 2.49%, higher than 85% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-12-20T05:15:11.260Z
- Modified: 2026-06-17T04:33:08.740Z
- Also known as: GHSA-jfm8-hwhg-r6gg
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: snyk

## Description

The package p4 before 0.0.7 are vulnerable to Command Injection via the run() function due to improper input sanitization

(As written by CVE List.)

## Affected

- p4: from unspecified before 0.0.7
- p4 (npm): before 0.0.7
- p4_project p4: before 0.0.7

## Every score

- snyk: CVSS:3.1 7.4 High `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P`
- GitHub: CVSS:3.1 7.4 High `CVSS:3.1/AV:L/AC:H/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`

## References

- <https://security.snyk.io/vuln/SNYK-JS-P4-3167330> (exploit, patch, third-party-advisory, web)
- <https://github.com/natelong/p4/blob/master/p4.js%23L12> (broken-link, third-party-advisory)
- <https://github.com/natelong/p4/commit/ae42e251beabf67c00539ec0e1d7aa149ca445fb> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-25171> (advisory)
- <https://github.com/natelong/p4> (package)
- <https://github.com/natelong/p4/blob/master/p4.js#23L12> (web)

## Sources

- CVE List: [CVE-2022-25171](https://www.cve.org/CVERecord?id=CVE-2022-25171), CVE Terms of Use, modified 2025-04-16
- GitHub Advisory Database: [GHSA-jfm8-hwhg-r6gg](https://github.com/advisories/GHSA-jfm8-hwhg-r6gg), CC-BY-4.0, modified 2025-04-16
- NVD: [CVE-2022-25171](https://nvd.nist.gov/vuln/detail/CVE-2022-25171), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-25171 · Whole record: https://cve.day/CVE-2022-25171.json · Rebuilt by cve.day 2026-11-25T22:58:17.704Z
