High
Command Injection
Type: advisorySources: OSV
The package p4 before 0.0.7 are vulnerable to Command Injection via the run() function due to improper input sanitization
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2022-25171
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 17:51 UTC · Revision 1
Source evidence
The package p4 before 0.0.7 are vulnerable to Command Injection via the run() function due to improper input sanitization
osv:CVE-2022-25171
Complete source record
{
"id": "12072c6d115898d63689ebd1bdf6a4db34b92ab9d9d48e8eeb9565ac2777d77c",
"url": "https://osv.dev/vulnerability/CVE-2022-25171",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Command Injection",
"summary": "The package p4 before 0.0.7 are vulnerable to Command Injection via the run() function due to improper input sanitization",
"evidence": "osv:CVE-2022-25171",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2022-25171",
"aliases": [
"CVE-2022-25171",
"GHSA-jfm8-hwhg-r6gg"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/natelong/p4",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "ae42e251beabf67c00539ec0e1d7aa149ca445fb"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"fixed": "ae42e251beabf67c00539ec0e1d7aa149ca445fb"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-25171.json"
}
}
],
"modified": "2026-10-28T02:30:30.999692030Z",
"provider": "osv",
"references": [
"https://github.com/natelong/p4/blob/master/p4.js%23L12",
"https://security.snyk.io/vuln/SNYK-JS-P4-3167330",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/25xxx/CVE-2022-25171.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-25171",
"https://github.com/natelong/p4/commit/ae42e251beabf67c00539ec0e1d7aa149ca445fb"
],
"provider_metadata": {
"cna_assigner": "snyk",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"fixed": "0.0.7"
}
],
"source": "AFFECTED_FIELD",
"strategy": "SplitRange"
}
]
},
{
"extracted_events": [
{
"range": [
{
"introduced": "4"
},
{
"fixed": "0.0.7"
}
],
"source": "DESCRIPTION"
}
]
}
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/25xxx/CVE-2022-25171.json"
}
},
"related_cves": [
{
"value": "CVE-2022-25171",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 498015,
"published_at": "2022-12-20T05:15:11.26+00:00"
}