CVE-2022-25171
CRITICAL 9.8CVSS 3.1p4 vulnerable to Command Injection due to improper input sanitization
The package p4 before 0.0.7 are vulnerable to Command Injection via the run() function due to improper input sanitization
- Published
- 20 Dec 2022
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-78
- Also known as
- GHSA-jfm8-hwhg-r6gg
- Sources
- NVDJSONOSV GHSA-jfm8-hwhg-r6ggJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 7.4 | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.4 | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | p4_project | p4cpe:2.3:a:p4_project:p4:*:*:*:*:*:node.js:*:* |
< 0.0.7 | 0.0.7 |
| OSV | npm | p4 | < 0.0.7 | 0.0.7 |
References
- 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://security.snyk.io/vuln/SNYK-JS-P4-3167330 · Exploit, 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
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 20 Dec 2022)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 20 Dec 2022)