{"id":"CVE-2022-25171","aliases":["CVE-2022-25171","GHSA-jfm8-hwhg-r6gg"],"related":[],"kind":"vulnerability","state":"published","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","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The package p4 before 0.0.7 are vulnerable to Command Injection via the run() function due to improper input sanitization","source":"cvelist"},{"lang":"en","text":"The package p4 before 0.0.7 is vulnerable to Command Injection via the run() function due to improper input sanitization","format":"markdown","source":"ghsa"},{"lang":"es","text":"El paquete p4 anterior a 0.0.7 es vulnerable a la inyección de comandos a través de la función run() debido a una sanitización de entrada inadecuada.","source":"nvd"}],"published":"2022-12-20T05:15:11.260Z","modified":"2026-06-17T04:33:08.740Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","score":7.4,"rating":"HIGH"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","score":7.4,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":7.4,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-78"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"0.0.7","status":"affected"}],"product":"p4","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.7"}],"ecosystem":"npm","package":"p4","purl":"pkg:npm/p4","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.0.7"}],"vendor":"p4_project","product":"p4","cpe":"cpe:2.3:a:p4_project:p4:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-P4-3167330","tags":["exploit","patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/natelong/p4/blob/master/p4.js%23L12","tags":["broken-link","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/natelong/p4/commit/ae42e251beabf67c00539ec0e1d7aa149ca445fb","tags":["patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25171","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/natelong/p4","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/natelong/p4/blob/master/p4.js#23L12","tags":["web"],"sources":["ghsa"]}],"credits":["JHU"],"assigner":"snyk","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2025-04-16T14:42:36.907Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-25171","url":"https://www.cve.org/CVERecord?id=CVE-2022-25171","licence":"CVE Terms of Use","modified":"2025-04-16T14:42:51.719Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jfm8-hwhg-r6gg","url":"https://github.com/advisories/GHSA-jfm8-hwhg-r6gg","licence":"CC-BY-4.0","modified":"2025-04-16T16:08:22.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-25171","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25171","licence":"Public domain","modified":"2026-06-17T04:33:08.740Z"}],"updatedAt":"2026-11-25T22:58:17.704Z","epss":{"score":0.02492,"percentile":0.85101,"date":"2026-12-01T12:00:22.000Z"}}