Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. p4
  4. ›
  5. CVE-2022-25171

CVE-2022-25171: p4 vulnerable to Command Injection due to improper input sanitization

December 20, 2022 (updated April 16, 2025)

The package p4 before 0.0.7 is vulnerable to Command Injection via the run() function due to improper input sanitization

References

  • github.com/advisories/GHSA-jfm8-hwhg-r6gg
  • github.com/natelong/p4
  • github.com/natelong/p4/blob/master/p4.js
  • github.com/natelong/p4/commit/ae42e251beabf67c00539ec0e1d7aa149ca445fb
  • nvd.nist.gov/vuln/detail/CVE-2022-25171
  • security.snyk.io/vuln/SNYK-JS-P4-3167330

Code Behaviors & Features

Detect and mitigate CVE-2022-25171 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.0.7

Fixed versions

  • 0.0.7

Solution

Upgrade to version 0.0.7 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

npm/p4/CVE-2022-25171.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:10 +0000.