CVE-2020-7619: Command Injection in get-git-data

get-git-data Updated 02 Oct 2025

Summary

10/05/2021
No i
Critical
9.8

CVE-2020-7619: Command injection in get-git-data. Affects get-git-data versions < 1.3.1. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

get-git-data is an npm package that allows users to retrieve data from a Git repository. It provides a convenient way to access information such as commit history, branches, and tags. However, versions up to 1.3.1 are vulnerable to Command Injection, which allows an attacker to execute arbitrary commands by manipulating the arguments passed to get-git-data.

Vulnerability Detail

The Command Injection vulnerability in get-git-data arises from insufficient input validation. Attackers can exploit this vulnerability by injecting malicious commands as part of the arguments provided to get-git-data. This can lead to unauthorized access, data leakage, or even remote code execution on the host system. The severity of this vulnerability is rated as CRITICAL with a CVSS score of 9.8.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, users can sanitize and validate the input arguments before passing them to get-git-data. This can be done by implementing strict input validation and using techniques like whitelisting or blacklisting to filter out any potentially malicious commands. Here's an example of how to sanitize the arguments in Node.js:

const { exec } = require('child_process');

function sanitizeArguments(args) {
  // Implement your input validation logic here
  // ... 
  return args;
}

const sanitizedArgs = sanitizeArguments(userProvidedArgs);
exec(`get-git-data ${sanitizedArgs}`, (error, stdout, stderr) => {
  // Handle the command execution result
});

Conclusion

The Command Injection vulnerability in get-git-data can have severe consequences, including unauthorized access and remote code execution. It is crucial to promptly update to a patched version of get-git-data (1.3.2 or higher) to mitigate this vulnerability. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for get-git-data →

Share this vulnerability

FAQ

get-git-data is an npm package that allows users to retrieve data from a Git repository. It provides a convenient way to access information such as commit history, branches, and tags.

The Command Injection vulnerability in get-git-data is caused by inadequate input validation. Attackers can exploit this by injecting malicious commands as part of the arguments passed to get-git-data.

This vulnerability can lead to unauthorized access, data leakage, or remote code execution on the host system. Attackers can execute arbitrary commands with the privileges of the user running get-git-data.

The severity of this vulnerability is rated as CRITICAL with a CVSS score of 9.8.

To fix this vulnerability, it is recommended to upgrade to a patched version of get-git-data. Developers should update their package.json file to specify a version greater than or equal to 1.3.2 and run the package manager's update command.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback