Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. git-interface
  4. ›
  5. CVE-2022-1440

CVE-2022-1440: Command injection in git-interface

April 22, 2022 (updated May 4, 2022)

Command Injection vulnerability in git-interface@2.1.1 in GitHub repository yarkeev/git-interface prior to 2.1.2. If both are provided by user input, then the use of a --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.

References

  • github.com/advisories/GHSA-qffw-8wg7-h665
  • github.com/yarkeev/git-interface/commit/f828aa790016fee3aa667f7b44cf94bf0aa8c60d
  • huntr.dev/bounties/cdc25408-d3c1-4a9d-bb45-33b12a715ca1
  • nvd.nist.gov/vuln/detail/CVE-2022-1440

Code Behaviors & Features

Detect and mitigate CVE-2022-1440 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 2.1.2

Fixed versions

  • 2.1.2

Solution

Upgrade to version 2.1.2 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/git-interface/CVE-2022-1440.yml

Spotted a mistake? Edit the file on GitLab.

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

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