Critical, CVSS 9.8npmAmendedPublished
Command injection in git-interface
CVE-2022-1440 · GHSA-qffw-8wg7-h665
- Affected
- npm git-interface < 2.1.2
- Fixed in
- 2.1.2· Vendor fix available
- Issue
- A command injection vulnerability exists in git-interface in the GitHub repository yarkeev/git-interface prior to 2.1.2. If both the git remote and destination directory are provided by user input, then the use of an --upload-pack command-line argument feature of git is also supported for git clone, which would then allow for any operating system command to be spawned by the attacker.
Recommended action: Upgrade to 2.1.2 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.