CVE-2022-25171 json
Command Injection
published 2022-12-20 3 y ago modified 2026-06-17 4 mo ago also GHSA-jfm8-hwhg-r6gg , EUVD-2022-7664
- cvss
- 7.4
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.5%
- EPSS 2.5% chance of exploitation in 30 days, percentile 84%
- public exploits
- 0
- none known
Summary
The package p4 before 0.0.7 are vulnerable to Command Injection via the run() function due to improper input sanitization
Patch / fix
- npm p4 0.0.7
- n/a p4 0.0.7
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 18 mo ago
Exploit prediction
2.47% chance of exploitation in the next 30 days, higher than 84% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- security.snyk.io https://security.snyk.io/vuln/SNYK-JS-P4-3167330 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.4 | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P |
| CNA | 3.1 | 7.4 | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 7.4 | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | p4 | <0.0.7 |
0.0.7 |
Affected products
- n/a p4
Classification
- Weakness
-
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
References
-
github.com
/natelong/p4/commit/ae42e251beabf67c00539ec0e1d7aa149ca445fb
web, patch, third-party-advisory
-
security.snyk.io
/vuln/SNYK-JS-P4-3167330
web, exploit, patch, third-party-advisory
-
github.com
/natelong/p4/blob/master/p4.js%23L12
broken-link, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-25171
advisory
-
github.com
/natelong/p4
package
-
github.com
/natelong/p4/blob/master/p4.js#23L12
web
Sources
- CVE List CVE-2022-25171
- GitHub Advisory GHSA-jfm8-hwhg-r6gg
- NVD CVE-2022-25171
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.