CVE-2024-24577
Description
libgit2 is a portable C implementation of the Git core methods provided as a linkable library with a solid API, allowing to build Git functionality into your application. Using well-crafted inputs to git_index_add can cause heap corruption that could be leveraged for arbitrary code execution. There is an issue in the has_dir_name function in src/libgit2/index.c, which frees an entry that should not be freed. The freed entry is later used and overwritten with potentially bad actor-controlled data leading to controlled heap corruption. Depending on the application that uses libgit2, this could lead to arbitrary code execution. This issue has been patched in version 1.6.5 and 1.7.2.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
54- Range: before 1.6.5 and before 1.7.2
- osv-coords52 versionspkg:apk/chainguard/libgit2pkg:apk/chainguard/libgit2-1.5pkg:apk/chainguard/libgit2-devpkg:apk/chainguard/libgit2-dev-1.5pkg:apk/chainguard/libgit2-staticpkg:apk/wolfi/libgit2pkg:apk/wolfi/libgit2-devpkg:apk/wolfi/libgit2-staticpkg:rpm/opensuse/git&distro=openSUSE%20Leap%2015.5pkg:rpm/opensuse/git&distro=openSUSE%20Leap%2015.6pkg:rpm/opensuse/git&distro=openSUSE%20Leap%20Micro%205.5pkg:rpm/opensuse/git&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/libgit2&distro=openSUSE%20Leap%2015.5pkg:rpm/opensuse/libgit2&distro=openSUSE%20Leap%2015.6pkg:rpm/opensuse/libgit2&distro=openSUSE%20Tumbleweedpkg:rpm/suse/git&distro=SUSE%20Enterprise%20Storage%207.1pkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSSpkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSSpkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-ESPOSpkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-LTSSpkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Micro%205.5pkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP5pkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP6pkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP5pkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP6pkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5pkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-LTSSpkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP3-LTSSpkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP4-LTSSpkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5pkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP2pkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP3pkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP4pkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5pkg:rpm/suse/git&distro=SUSE%20Linux%20Micro%206.0pkg:rpm/suse/git&distro=SUSE%20Manager%20Proxy%204.3pkg:rpm/suse/git&distro=SUSE%20Manager%20Server%204.3pkg:rpm/suse/libgit2&distro=SUSE%20Enterprise%20Storage%207.1pkg:rpm/suse/libgit2&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSSpkg:rpm/suse/libgit2&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSSpkg:rpm/suse/libgit2&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-ESPOSpkg:rpm/suse/libgit2&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-LTSSpkg:rpm/suse/libgit2&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP5pkg:rpm/suse/libgit2&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP6pkg:rpm/suse/libgit2&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-LTSSpkg:rpm/suse/libgit2&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP3-LTSSpkg:rpm/suse/libgit2&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP4-LTSSpkg:rpm/suse/libgit2&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP2pkg:rpm/suse/libgit2&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP3pkg:rpm/suse/libgit2&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP4pkg:rpm/suse/libgit2&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5pkg:rpm/suse/libgit2&distro=SUSE%20Manager%20Server%20Module%204.3
< 1.7.2-r0+ 51 more
- (no CPE)range: < 1.7.2-r0
- (no CPE)range: < 1.7.2-r0
- (no CPE)range: < 1.7.2-r0
- (no CPE)range: < 1.7.2-r0
- (no CPE)range: < 1.7.2-r0
- (no CPE)range: < 1.7.2-r0
- (no CPE)range: < 1.7.2-r0
- (no CPE)range: < 1.7.2-r0
- (no CPE)range: < 2.35.3-150300.10.42.1
- (no CPE)range: < 2.43.0-150600.3.6.1
- (no CPE)range: < 2.35.3-150300.10.42.1
- (no CPE)range: < 2.45.2-2.1
- (no CPE)range: < 1.3.0-150400.3.9.1
- (no CPE)range: < 1.7.2-150600.3.3.1
- (no CPE)range: < 1.7.2-1.1
- (no CPE)range: < 2.35.3-150300.10.42.1
- (no CPE)range: < 2.26.2-150000.59.1
- (no CPE)range: < 2.35.3-150300.10.42.1
- (no CPE)range: < 2.35.3-150300.10.42.1
- (no CPE)range: < 2.35.3-150300.10.42.1
- (no CPE)range: < 2.35.3-150300.10.42.1
- (no CPE)range: < 2.35.3-150300.10.42.1
- (no CPE)range: < 2.43.0-150600.3.6.1
- (no CPE)range: < 2.35.3-150300.10.42.1
- (no CPE)range: < 2.43.0-150600.3.6.1
- (no CPE)range: < 2.26.2-27.75.1
- (no CPE)range: < 2.26.2-150000.59.1
- (no CPE)range: < 2.35.3-150300.10.42.1
- (no CPE)range: < 2.35.3-150300.10.42.1
- (no CPE)range: < 2.26.2-27.75.1
- (no CPE)range: < 2.26.2-150000.59.1
- (no CPE)range: < 2.35.3-150300.10.42.1
- (no CPE)range: < 2.35.3-150300.10.42.1
- (no CPE)range: < 2.26.2-27.75.1
- (no CPE)range: < 2.51.0-1.1
- (no CPE)range: < 2.35.3-150300.10.42.1
- (no CPE)range: < 2.35.3-150300.10.42.1
- (no CPE)range: < 0.28.4-150200.3.9.1
- (no CPE)range: < 0.26.8-150000.3.21.1
- (no CPE)range: < 0.28.4-150200.3.9.1
- (no CPE)range: < 1.3.0-150400.3.9.1
- (no CPE)range: < 1.3.0-150400.3.9.1
- (no CPE)range: < 1.3.0-150400.3.9.1
- (no CPE)range: < 1.7.2-150600.3.3.1
- (no CPE)range: < 0.26.8-150000.3.21.1
- (no CPE)range: < 0.28.4-150200.3.9.1
- (no CPE)range: < 1.3.0-150400.3.9.1
- (no CPE)range: < 0.26.8-150000.3.21.1
- (no CPE)range: < 0.28.4-150200.3.9.1
- (no CPE)range: < 1.3.0-150400.3.9.1
- (no CPE)range: < 0.24.1-11.5.1
- (no CPE)range: < 0.28.4-150200.3.9.1
- libgit2/libgit2v5Range: < 1.6.5
Patches
Vulnerability mechanics
References
9- github.com/libgit2/libgit2/security/advisories/GHSA-j2v7-4f6v-gpg8nvdThird Party Advisory
- github.com/libgit2/libgit2/releases/tag/v1.6.5nvdRelease Notes
- github.com/libgit2/libgit2/releases/tag/v1.7.2nvdRelease Notes
- lists.debian.org/debian-lts-announce/2024/02/msg00012.htmlnvd
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4M3P7WIEPXNRLBINQRJFXUSTNKBCHYC7/nvd
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7CNDW3PF6NHO7OXNM5GN6WSSGAMA7MZE/nvd
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/S635BGHHZUMRPI7QOXOJ45QHDD5FFZ3S/nvd
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/Z6MXOX7I43OWNN7R6M54XLG6U5RXY244/nvd
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZGNHOEE2RBLH7KCJUPUNYG4CDTW4HTBT/nvd
News mentions
0No linked articles in our index yet.