OS command injection in ggit
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- Low · Low · Low
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-78.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | ggit | all versions | — | No fix listed | CNA |
| — | ggit (npm) | up to 2.4.12 | — | No fix listed | GHSA-62cx-5xj4-wfm4 |
- ggit Vendor— Affected all versions Fixed in — No fix listed CNA
- ggit (npm) Vendor— Affected up to 2.4.12 Fixed in — No fix listed GHSA-62cx-5xj4-wfm4
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2024-21532
- 2026-10-03 Alias added: GHSA-62cx-5xj4-wfm4
References
Sources
- CVE-2024-21532 · CVE Program
- CVE-2024-21532 · NVD
- FIRST EPSS
- GHSA-62cx-5xj4-wfm4 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences