CVE-2024-21532
All versions of the package ggit are vulnerable to Command …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- gist.github.com/lirantal/d8f87b366d2078e6118ab7bf2b005f02
- security.snyk.io/vuln/SNYK-JS-GGIT-5731320
- nvd.nist.gov/vuln/detail/CVE-2024-21532
- github.com/advisories/GHSA-62cx-5xj4-wfm4
- github.com/bahmutov/ggit/blob/2e85b0316d9c272e067dca5679d39e302f4cb9cd/README.md?plain=1#L
- nvd.nist.gov/vuln/detail/CVE-2024-21532
- cve.org/CVERecord?id=CVE-2024-21532
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.