CVE-2022-25171
Command Injection
The package p4 before 0.0.7 are vulnerable to Command Injection via the run() function due to improper input sanitization
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- High
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
7.4
Command Injection
The package p4 before 0.0.7 are vulnerable to Command Injection via the run() function due to improper input sanitization
- Record
CVE-2022-25171- 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 - Weakness
- CWE-78
- Updated
- 2026-11-02
EUVDEUVD-2022-7664
7.4
The package p4 before 0.0.7 are vulnerable to Command Injection via the run() function due to improper input sanitization
- Record
EUVD-2022-7664- 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 - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-jfm8-hwhg-r6gg
7.4
p4 vulnerable to Command Injection due to improper input sanitization
The package p4 before 0.0.7 is vulnerable to Command Injection via the run() function due to improper input sanitization
- Record
GHSA-jfm8-hwhg-r6gg- 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 - Weakness
- CWE-78
- Updated
- 2026-11-02
NVD
7.4
The package p4 before 0.0.7 are vulnerable to Command Injection via the run() function due to improper input sanitization
- Record
CVE-2022-25171- 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 - 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 - Weakness
- CWE-78
- Updated
- 2026-11-02
OSV
7.4
Command Injection
The package p4 before 0.0.7 are vulnerable to Command Injection via the run() function due to improper input sanitization
- Record
CVE-2022-25171- 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 - Updated
- 2026-11-02
OSVGHSA-jfm8-hwhg-r6gg
7.4
p4 vulnerable to Command Injection due to improper input sanitization
The package p4 before 0.0.7 is vulnerable to Command Injection via the run() function due to improper input sanitization
- Record
GHSA-jfm8-hwhg-r6gg- 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 - Weakness
- CWE-78
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
p4npm |
before 0.0.7 | 0.0.7 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-25171 is a high vulnerability (CVSS 7.4) in P4 Project P4, published December 20, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.47%, the 84th percentile. Fixed in p4 0.0.7.
References
security.snyk.io/vuln/SNYK-JS-P4-3167330
github.com/natelong/p4/blob/master/p4.js%23L12
github.com/natelong/p4/commit/ae42e251beabf67c00539ec0e1d7aa149ca445fb
nvd.nist.gov/vuln/detail/CVE-2022-25171
github.com/natelong/p4/blob/master/p4.js
github.com/advisories/GHSA-jfm8-hwhg-r6gg
github.com/CVEProject/cvelistV5/tree/main/cves/2022/25xxx/CVE-2022-25171.json
github.com/natelong/p4