Skip to main content
CVE-2024-21533VulnerabilityPublished Updated

CVE-2024-21533: ggit · Arbitrary Argument Injection

Affects ggitSource CVE Database V5

0

Not known to be exploited · CVSS 6.5 Medium.

Data as of 26 Oct 2026, 07:57 UTC

CVSS 3.1 base score
6.5Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.5% chance of exploitation in 30 days – higher than 48% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L/E:P

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 8 Oct 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.

What to do

Affected software

ProductAffectedFixed in
npmggitpkg:npm/ggitOther threatsAffected
  • =0
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Until an official patch is released, organizations should avoid using ggit's clone() API with untrusted input. Input validation should be implemented to strictly allow only safe URL schemes and sanitize all user-supplied parameters. Employing application-level whitelisting of repository URLs can reduce risk. Consider using alternative git libraries or command wrappers that correctly handle argument termination and input sanitization. Monitoring and restricting access to systems running ggit to trusted users and networks can limit exploitation opportunities. Once patches become available, prioritize immediate updates. Additionally, review CI/CD and automation scripts to ensure they do not pass unsanitized input to ggit functions. Implement runtime monitoring for unusual git command executions that could indicate exploitation attempts.

Description

All versions of the package ggit are vulnerable to Arbitrary Argument Injection via the clone() API, which allows specifying the remote URL to clone and the file on disk to clone to. The library does not sanitize for user input or validate a given URL scheme, nor does it properly pass command-line flags to the git binary using the double-dash POSIX characters (--) to communicate the end of options.

References

Community reviews

Loading reviews…