CVE catalog

CVE-2024-24577

libgit2: CVE-2024-24577

[CVE catalog]

Severity
Critical · CVSS 9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
Source
[NVD] · [CVE record]
EPSS
1.55% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianlibgit2sid1.9.7+ds-1fixed
Debianlibgit2forky1.9.7+ds-1fixed
Debianlibgit2trixie1.9.0+ds-2+deb13u1fixed
Debianlibgit2trixie-security1.9.0+ds-2+deb13u1fixed
Debianlibgit2bookworm1.5.1+ds-1+deb12u1fixed
Debianlibgit2bookworm-security1.5.1+ds-1+deb12u2fixed
Ubuntulibgit2pro0.25.1+really0.24.6-1vulnerable
Ubuntulibgit2pro0.26.0+dfsg.1-1.1vulnerable
Ubuntulibgit2pro0.26.0+dfsg.1-1.1build1vulnerable
Ubuntulibgit2pro0.26.0+dfsg.1-1.1ubuntu0.2vulnerable
Ubuntulibgit2pro0.26.0+dfsg.1-1.1ubuntu0.2+esm1fixed
Ubuntulibgit220.040.27.7+dfsg.1-0.2build1vulnerable
Ubuntulibgit220.040.28.3+dfsg.1-1vulnerable
Ubuntulibgit220.040.28.3+dfsg.1-1ubuntu1vulnerable
Ubuntulibgit220.040.28.4+dfsg.1-2vulnerable
Ubuntulibgit220.040.28.4+dfsg.1-2ubuntu0.1fixed
Ubuntulibgit222.041.1.0+dfsg.1-4vulnerable
Ubuntulibgit222.041.1.0+dfsg.1-4.1vulnerable
Ubuntulibgit222.041.1.0+dfsg.1-4.1build1vulnerable
Ubuntulibgit222.041.1.0+dfsg.1-4.1ubuntu0.1fixed
Susegitlinux micro 6.02.51.0-1.1fixed
Susegitlinux enterprise module for basesystem 15 sp62.43.0-150600.3.6.1fixed
Susegitlinux enterprise module for development tools 15 sp62.43.0-150600.3.6.1fixed
Opensusegitleap 15.62.43.0-150600.3.6.1fixed
Susegitlinux enterprise micro 5.52.35.3-150300.10.42.1fixed
Susegitlinux enterprise module for basesystem 15 sp52.35.3-150300.10.42.1fixed
Susegitlinux enterprise module for development tools 15 sp52.35.3-150300.10.42.1fixed
Susegitlinux enterprise high performance computing 15 sp3-ltss2.35.3-150300.10.42.1fixed
Susegitlinux enterprise high performance computing 15 sp4-espos2.35.3-150300.10.42.1fixed
Susegitlinux enterprise high performance computing 15 sp4-ltss2.35.3-150300.10.42.1fixed
Susegitlinux enterprise server 15 sp3-ltss2.35.3-150300.10.42.1fixed
Susegitlinux enterprise server 15 sp4-ltss2.35.3-150300.10.42.1fixed
Susegitlinux enterprise server for sap applications 15 sp32.35.3-150300.10.42.1fixed
Susegitlinux enterprise server for sap applications 15 sp42.35.3-150300.10.42.1fixed
Susegitmanager proxy 4.32.35.3-150300.10.42.1fixed
Susegitmanager server 4.32.35.3-150300.10.42.1fixed
Susegitenterprise storage 7.12.35.3-150300.10.42.1fixed
Opensusegitleap micro 5.52.35.3-150300.10.42.1fixed
Opensusegitleap 15.52.35.3-150300.10.42.1fixed
Suselibgit2linux enterprise high performance computing 15 sp2-ltss0.26.8-150000.3.21.1fixed
Suselibgit2linux enterprise server 15 sp2-ltss0.26.8-150000.3.21.1fixed
Suselibgit2linux enterprise server for sap applications 15 sp20.26.8-150000.3.21.1fixed
Suselibgit2manager server module 4.30.28.4-150200.3.9.1fixed
Suselibgit2linux enterprise high performance computing 15 sp2-ltss0.28.4-150200.3.9.1fixed
Suselibgit2linux enterprise high performance computing 15 sp3-ltss0.28.4-150200.3.9.1fixed
Suselibgit2linux enterprise server 15 sp2-ltss0.28.4-150200.3.9.1fixed
Suselibgit2linux enterprise server 15 sp3-ltss0.28.4-150200.3.9.1fixed
Suselibgit2linux enterprise server for sap applications 15 sp20.28.4-150200.3.9.1fixed
Suselibgit2linux enterprise server for sap applications 15 sp30.28.4-150200.3.9.1fixed
Suselibgit2enterprise storage 7.10.28.4-150200.3.9.1fixed
Suselibgit2linux enterprise software development kit 12 sp50.24.1-11.5.1fixed
Opensuselibgit2tumbleweed1.7.2-1.1fixed
Susegitlinux enterprise high performance computing 15 sp2-ltss2.26.2-150000.59.1fixed
Susegitlinux enterprise server 15 sp2-ltss2.26.2-150000.59.1fixed
Susegitlinux enterprise server for sap applications 15 sp22.26.2-150000.59.1fixed
Susegitlinux enterprise software development kit 12 sp52.26.2-27.75.1fixed
Susegitlinux enterprise server 12 sp52.26.2-27.75.1fixed
Susegitlinux enterprise server for sap applications 12 sp52.26.2-27.75.1fixed
Opensusegittumbleweed2.45.2-2.1fixed
Suselibgit2linux enterprise module for development tools 15 sp51.3.0-150400.3.9.1fixed
Suselibgit2linux enterprise high performance computing 15 sp4-espos1.3.0-150400.3.9.1fixed
Suselibgit2linux enterprise high performance computing 15 sp4-ltss1.3.0-150400.3.9.1fixed
Suselibgit2linux enterprise server 15 sp4-ltss1.3.0-150400.3.9.1fixed
Suselibgit2linux enterprise server for sap applications 15 sp41.3.0-150400.3.9.1fixed
Opensuselibgit2leap 15.51.3.0-150400.3.9.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibgit2sourcesid1.7.2+ds-1not yet assignedNot reported[1063416]
Debianlibgit2sourceforky1.7.2+ds-1not yet assignedNot reported[1063416]
Debianlibgit2sourcetrixie1.7.2+ds-1not yet assignedNot reported[1063416]
Debianlibgit2sourcebookworm1.5.1+ds-1+deb12u1not yet assignedNot reported[1063416]
Ubuntulibgit2debpro0.26.0+dfsg.1-1.1ubuntu0.2+esm1Not reportedUBUNTU-CVE-2024-24577Not reported
Ubuntulibgit2deb20.040.28.4+dfsg.1-2ubuntu0.1Not reportedUBUNTU-CVE-2024-24577Not reported
Ubuntulibgit2deb22.041.1.0+dfsg.1-4.1ubuntu0.1Not reportedUBUNTU-CVE-2024-24577Not reported
Susegitrpmlinux micro 6.02.51.0-1.1Not reportedSUSE-SU-2025:20721-1Not reported
Susegitrpmlinux enterprise module for basesystem 15 sp62.43.0-150600.3.6.1Not reportedSUSE-SU-2024:2579-1Not reported
Susegitrpmlinux enterprise module for development tools 15 sp62.43.0-150600.3.6.1Not reportedSUSE-SU-2024:2579-1Not reported
Opensusegitrpmleap 15.62.43.0-150600.3.6.1Not reportedSUSE-SU-2024:2579-1Not reported
Susegitrpmlinux enterprise micro 5.52.35.3-150300.10.42.1Not reportedSUSE-SU-2024:2656-1Not reported
Susegitrpmlinux enterprise module for basesystem 15 sp52.35.3-150300.10.42.1Not reportedSUSE-SU-2024:2656-1Not reported
Susegitrpmlinux enterprise module for development tools 15 sp52.35.3-150300.10.42.1Not reportedSUSE-SU-2024:2656-1Not reported
Susegitrpmlinux enterprise high performance computing 15 sp3-ltss2.35.3-150300.10.42.1Not reportedSUSE-SU-2024:2656-1Not reported
Susegitrpmlinux enterprise high performance computing 15 sp4-espos2.35.3-150300.10.42.1Not reportedSUSE-SU-2024:2656-1Not reported
Susegitrpmlinux enterprise high performance computing 15 sp4-ltss2.35.3-150300.10.42.1Not reportedSUSE-SU-2024:2656-1Not reported
Susegitrpmlinux enterprise server 15 sp3-ltss2.35.3-150300.10.42.1Not reportedSUSE-SU-2024:2656-1Not reported
Susegitrpmlinux enterprise server 15 sp4-ltss2.35.3-150300.10.42.1Not reportedSUSE-SU-2024:2656-1Not reported
Susegitrpmlinux enterprise server for sap applications 15 sp32.35.3-150300.10.42.1Not reportedSUSE-SU-2024:2656-1Not reported
Susegitrpmlinux enterprise server for sap applications 15 sp42.35.3-150300.10.42.1Not reportedSUSE-SU-2024:2656-1Not reported
Susegitrpmmanager proxy 4.32.35.3-150300.10.42.1Not reportedSUSE-SU-2024:2656-1Not reported
Susegitrpmmanager server 4.32.35.3-150300.10.42.1Not reportedSUSE-SU-2024:2656-1Not reported
Susegitrpmenterprise storage 7.12.35.3-150300.10.42.1Not reportedSUSE-SU-2024:2656-1Not reported
Opensusegitrpmleap micro 5.52.35.3-150300.10.42.1Not reportedSUSE-SU-2024:2656-1Not reported
Opensusegitrpmleap 15.52.35.3-150300.10.42.1Not reportedSUSE-SU-2024:2656-1Not reported
Suselibgit2rpmlinux enterprise high performance computing 15 sp2-ltss0.26.8-150000.3.21.1Not reportedSUSE-SU-2024:2598-1Not reported
Suselibgit2rpmlinux enterprise server 15 sp2-ltss0.26.8-150000.3.21.1Not reportedSUSE-SU-2024:2598-1Not reported
Suselibgit2rpmlinux enterprise server for sap applications 15 sp20.26.8-150000.3.21.1Not reportedSUSE-SU-2024:2598-1Not reported
Suselibgit2rpmmanager server module 4.30.28.4-150200.3.9.1Not reportedSUSE-SU-2024:2610-1Not reported
Suselibgit2rpmlinux enterprise high performance computing 15 sp2-ltss0.28.4-150200.3.9.1Not reportedSUSE-SU-2024:2610-1Not reported
Suselibgit2rpmlinux enterprise high performance computing 15 sp3-ltss0.28.4-150200.3.9.1Not reportedSUSE-SU-2024:2610-1Not reported
Suselibgit2rpmlinux enterprise server 15 sp2-ltss0.28.4-150200.3.9.1Not reportedSUSE-SU-2024:2610-1Not reported
Suselibgit2rpmlinux enterprise server 15 sp3-ltss0.28.4-150200.3.9.1Not reportedSUSE-SU-2024:2610-1Not reported
Suselibgit2rpmlinux enterprise server for sap applications 15 sp20.28.4-150200.3.9.1Not reportedSUSE-SU-2024:2610-1Not reported
Suselibgit2rpmlinux enterprise server for sap applications 15 sp30.28.4-150200.3.9.1Not reportedSUSE-SU-2024:2610-1Not reported
Suselibgit2rpmenterprise storage 7.10.28.4-150200.3.9.1Not reportedSUSE-SU-2024:2610-1Not reported
Suselibgit2rpmlinux enterprise software development kit 12 sp50.24.1-11.5.1Not reportedSUSE-SU-2024:2583-1Not reported
Opensuselibgit2rpmtumbleweed1.7.2-1.1Not reportedOPENSUSE-SU-2024:13661-1Not reported
Susegitrpmlinux enterprise high performance computing 15 sp2-ltss2.26.2-150000.59.1Not reportedSUSE-SU-2024:2599-1Not reported
Susegitrpmlinux enterprise server 15 sp2-ltss2.26.2-150000.59.1Not reportedSUSE-SU-2024:2599-1Not reported
Susegitrpmlinux enterprise server for sap applications 15 sp22.26.2-150000.59.1Not reportedSUSE-SU-2024:2599-1Not reported
Susegitrpmlinux enterprise software development kit 12 sp52.26.2-27.75.1Not reportedSUSE-SU-2024:2592-1Not reported
Susegitrpmlinux enterprise server 12 sp52.26.2-27.75.1Not reportedSUSE-SU-2024:2592-1Not reported
Susegitrpmlinux enterprise server for sap applications 12 sp52.26.2-27.75.1Not reportedSUSE-SU-2024:2592-1Not reported
Opensusegitrpmtumbleweed2.45.2-2.1Not reportedOPENSUSE-SU-2024:14212-1Not reported
Suselibgit2rpmlinux enterprise module for development tools 15 sp51.3.0-150400.3.9.1Not reportedSUSE-SU-2024:2619-1Not reported
Suselibgit2rpmlinux enterprise high performance computing 15 sp4-espos1.3.0-150400.3.9.1Not reportedSUSE-SU-2024:2619-1Not reported
Suselibgit2rpmlinux enterprise high performance computing 15 sp4-ltss1.3.0-150400.3.9.1Not reportedSUSE-SU-2024:2619-1Not reported
Suselibgit2rpmlinux enterprise server 15 sp4-ltss1.3.0-150400.3.9.1Not reportedSUSE-SU-2024:2619-1Not reported
Suselibgit2rpmlinux enterprise server for sap applications 15 sp41.3.0-150400.3.9.1Not reportedSUSE-SU-2024:2619-1Not reported
Opensuselibgit2rpmleap 15.51.3.0-150400.3.9.1Not reportedSUSE-SU-2024:2619-1Not reported

[Debian bug #1063416]

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

References