{"api_version":"1","generated_at":"2026-07-23T15:31:03+00:00","cve":"CVE-2022-25171","urls":{"html":"https://cve.report/CVE-2022-25171","api":"https://cve.report/api/cve/CVE-2022-25171.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-25171","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-25171"},"summary":{"title":"CVE-2022-25171","description":"The package p4 before 0.0.7 are vulnerable to Command Injection via the run() function due to improper input sanitization","state":"PUBLIC","assigner":"report@snyk.io","published_at":"2022-12-20 05:15:00","updated_at":"2023-08-08 14:21:00"},"problem_types":["CWE-78"],"metrics":[],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-P4-3167330","name":"N/A","refsource":"CONFIRM","tags":[],"title":"Command Injection in p4 | CVE-2022-25171 | Snyk","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/natelong/p4/commit/ae42e251beabf67c00539ec0e1d7aa149ca445fb","name":"N/A","refsource":"CONFIRM","tags":[],"title":"address security vulnerability · natelong/p4@ae42e25 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/natelong/p4/blob/master/p4.js%23L12","name":"N/A","refsource":"CONFIRM","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":""},{"url":"https://github.com/natelong/p4/blob/master/p4.js#L12","name":"MISC:https://github.com/natelong/p4/blob/master/p4.js%23L12","refsource":"MITRE","tags":[],"title":"p4/p4.js at master · natelong/p4 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-25171","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25171","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"LEGACY","value":"JHU","lang":""}],"nvd_cpes":[{"cve_year":"2022","cve_id":"25171","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"p4_project","cpe5":"p4","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ASSIGNER":"report@snyk.io","DATE_PUBLIC":"2022-12-20T05:00:01.391309Z","ID":"CVE-2022-25171","STATE":"PUBLIC","TITLE":"Command Injection"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"p4","version":{"version_data":[{"version_affected":"<","version_value":"0.0.7"}]}}]},"vendor_name":"n/a"}]}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Command Injection"}]}]},"references":{"reference_data":[{"refsource":"MISC","url":"https://security.snyk.io/vuln/SNYK-JS-P4-3167330","name":"https://security.snyk.io/vuln/SNYK-JS-P4-3167330"},{"refsource":"MISC","url":"https://github.com/natelong/p4/blob/master/p4.js%23L12","name":"https://github.com/natelong/p4/blob/master/p4.js%23L12"},{"refsource":"MISC","url":"https://github.com/natelong/p4/commit/ae42e251beabf67c00539ec0e1d7aa149ca445fb","name":"https://github.com/natelong/p4/commit/ae42e251beabf67c00539ec0e1d7aa149ca445fb"}]},"description":{"description_data":[{"lang":"eng","value":"The package p4 before 0.0.7 are vulnerable to Command Injection via the run() function due to improper input sanitization"}]},"impact":{"cvss":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","baseScore":7.4,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},"credit":[{"lang":"eng","value":"JHU"}]},"nvd":{"publishedDate":"2022-12-20 05:15:00","lastModifiedDate":"2023-08-08 14:21:00","problem_types":["CWE-78"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.9}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:p4_project:p4:*:*:*:*:*:node.js:*:*","versionEndExcluding":"0.0.7","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}