Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. ggit
  4. ›
  5. CVE-2024-21532

CVE-2024-21532: ggit is vulnerable to Command Injection via the fetchTags(branch) API

October 8, 2024

All versions of the package ggit are vulnerable to Command Injection via the fetchTags(branch) API, which allows user input to specify the branch to be fetched and then concatenates this string along with a git command which is then passed to the unsafe exec() Node.js child process API.

References

  • gist.github.com/lirantal/d8f87b366d2078e6118ab7bf2b005f02
  • github.com/advisories/GHSA-62cx-5xj4-wfm4
  • github.com/bahmutov/ggit
  • nvd.nist.gov/vuln/detail/CVE-2024-21532
  • security.snyk.io/vuln/SNYK-JS-GGIT-5731320

Code Behaviors & Features

Detect and mitigate CVE-2024-21532 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 up to 2.4.12

Solution

Unfortunately, there is no solution available yet.

Impact 7.3 HIGH

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

Learn more about CVSS

Weakness

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

Source file

npm/ggit/CVE-2024-21532.yml

Spotted a mistake? Edit the file on GitLab.

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

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