
CVE catalog
CVE-2024-24577
libgit2: CVE-2024-24577
- Severity
- Critical · CVSS 9.8
CVSS: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.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | libgit2 | sid | 1.9.7+ds-1 | fixed |
| Debian | libgit2 | forky | 1.9.7+ds-1 | fixed |
| Debian | libgit2 | trixie | 1.9.0+ds-2+deb13u1 | fixed |
| Debian | libgit2 | trixie-security | 1.9.0+ds-2+deb13u1 | fixed |
| Debian | libgit2 | bookworm | 1.5.1+ds-1+deb12u1 | fixed |
| Debian | libgit2 | bookworm-security | 1.5.1+ds-1+deb12u2 | fixed |
| Ubuntu | libgit2 | pro | 0.25.1+really0.24.6-1 | vulnerable |
| Ubuntu | libgit2 | pro | 0.26.0+dfsg.1-1.1 | vulnerable |
| Ubuntu | libgit2 | pro | 0.26.0+dfsg.1-1.1build1 | vulnerable |
| Ubuntu | libgit2 | pro | 0.26.0+dfsg.1-1.1ubuntu0.2 | vulnerable |
| Ubuntu | libgit2 | pro | 0.26.0+dfsg.1-1.1ubuntu0.2+esm1 | fixed |
| Ubuntu | libgit2 | 20.04 | 0.27.7+dfsg.1-0.2build1 | vulnerable |
| Ubuntu | libgit2 | 20.04 | 0.28.3+dfsg.1-1 | vulnerable |
| Ubuntu | libgit2 | 20.04 | 0.28.3+dfsg.1-1ubuntu1 | vulnerable |
| Ubuntu | libgit2 | 20.04 | 0.28.4+dfsg.1-2 | vulnerable |
| Ubuntu | libgit2 | 20.04 | 0.28.4+dfsg.1-2ubuntu0.1 | fixed |
| Ubuntu | libgit2 | 22.04 | 1.1.0+dfsg.1-4 | vulnerable |
| Ubuntu | libgit2 | 22.04 | 1.1.0+dfsg.1-4.1 | vulnerable |
| Ubuntu | libgit2 | 22.04 | 1.1.0+dfsg.1-4.1build1 | vulnerable |
| Ubuntu | libgit2 | 22.04 | 1.1.0+dfsg.1-4.1ubuntu0.1 | fixed |
| Suse | git | linux micro 6.0 | 2.51.0-1.1 | fixed |
| Suse | git | linux enterprise module for basesystem 15 sp6 | 2.43.0-150600.3.6.1 | fixed |
| Suse | git | linux enterprise module for development tools 15 sp6 | 2.43.0-150600.3.6.1 | fixed |
| Opensuse | git | leap 15.6 | 2.43.0-150600.3.6.1 | fixed |
| Suse | git | linux enterprise micro 5.5 | 2.35.3-150300.10.42.1 | fixed |
| Suse | git | linux enterprise module for basesystem 15 sp5 | 2.35.3-150300.10.42.1 | fixed |
| Suse | git | linux enterprise module for development tools 15 sp5 | 2.35.3-150300.10.42.1 | fixed |
| Suse | git | linux enterprise high performance computing 15 sp3-ltss | 2.35.3-150300.10.42.1 | fixed |
| Suse | git | linux enterprise high performance computing 15 sp4-espos | 2.35.3-150300.10.42.1 | fixed |
| Suse | git | linux enterprise high performance computing 15 sp4-ltss | 2.35.3-150300.10.42.1 | fixed |
| Suse | git | linux enterprise server 15 sp3-ltss | 2.35.3-150300.10.42.1 | fixed |
| Suse | git | linux enterprise server 15 sp4-ltss | 2.35.3-150300.10.42.1 | fixed |
| Suse | git | linux enterprise server for sap applications 15 sp3 | 2.35.3-150300.10.42.1 | fixed |
| Suse | git | linux enterprise server for sap applications 15 sp4 | 2.35.3-150300.10.42.1 | fixed |
| Suse | git | manager proxy 4.3 | 2.35.3-150300.10.42.1 | fixed |
| Suse | git | manager server 4.3 | 2.35.3-150300.10.42.1 | fixed |
| Suse | git | enterprise storage 7.1 | 2.35.3-150300.10.42.1 | fixed |
| Opensuse | git | leap micro 5.5 | 2.35.3-150300.10.42.1 | fixed |
| Opensuse | git | leap 15.5 | 2.35.3-150300.10.42.1 | fixed |
| Suse | libgit2 | linux enterprise high performance computing 15 sp2-ltss | 0.26.8-150000.3.21.1 | fixed |
| Suse | libgit2 | linux enterprise server 15 sp2-ltss | 0.26.8-150000.3.21.1 | fixed |
| Suse | libgit2 | linux enterprise server for sap applications 15 sp2 | 0.26.8-150000.3.21.1 | fixed |
| Suse | libgit2 | manager server module 4.3 | 0.28.4-150200.3.9.1 | fixed |
| Suse | libgit2 | linux enterprise high performance computing 15 sp2-ltss | 0.28.4-150200.3.9.1 | fixed |
| Suse | libgit2 | linux enterprise high performance computing 15 sp3-ltss | 0.28.4-150200.3.9.1 | fixed |
| Suse | libgit2 | linux enterprise server 15 sp2-ltss | 0.28.4-150200.3.9.1 | fixed |
| Suse | libgit2 | linux enterprise server 15 sp3-ltss | 0.28.4-150200.3.9.1 | fixed |
| Suse | libgit2 | linux enterprise server for sap applications 15 sp2 | 0.28.4-150200.3.9.1 | fixed |
| Suse | libgit2 | linux enterprise server for sap applications 15 sp3 | 0.28.4-150200.3.9.1 | fixed |
| Suse | libgit2 | enterprise storage 7.1 | 0.28.4-150200.3.9.1 | fixed |
| Suse | libgit2 | linux enterprise software development kit 12 sp5 | 0.24.1-11.5.1 | fixed |
| Opensuse | libgit2 | tumbleweed | 1.7.2-1.1 | fixed |
| Suse | git | linux enterprise high performance computing 15 sp2-ltss | 2.26.2-150000.59.1 | fixed |
| Suse | git | linux enterprise server 15 sp2-ltss | 2.26.2-150000.59.1 | fixed |
| Suse | git | linux enterprise server for sap applications 15 sp2 | 2.26.2-150000.59.1 | fixed |
| Suse | git | linux enterprise software development kit 12 sp5 | 2.26.2-27.75.1 | fixed |
| Suse | git | linux enterprise server 12 sp5 | 2.26.2-27.75.1 | fixed |
| Suse | git | linux enterprise server for sap applications 12 sp5 | 2.26.2-27.75.1 | fixed |
| Opensuse | git | tumbleweed | 2.45.2-2.1 | fixed |
| Suse | libgit2 | linux enterprise module for development tools 15 sp5 | 1.3.0-150400.3.9.1 | fixed |
| Suse | libgit2 | linux enterprise high performance computing 15 sp4-espos | 1.3.0-150400.3.9.1 | fixed |
| Suse | libgit2 | linux enterprise high performance computing 15 sp4-ltss | 1.3.0-150400.3.9.1 | fixed |
| Suse | libgit2 | linux enterprise server 15 sp4-ltss | 1.3.0-150400.3.9.1 | fixed |
| Suse | libgit2 | linux enterprise server for sap applications 15 sp4 | 1.3.0-150400.3.9.1 | fixed |
| Opensuse | libgit2 | leap 15.5 | 1.3.0-150400.3.9.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | libgit2 | source | sid | 1.7.2+ds-1 | not yet assigned | Not reported | [1063416] |
| Debian | libgit2 | source | forky | 1.7.2+ds-1 | not yet assigned | Not reported | [1063416] |
| Debian | libgit2 | source | trixie | 1.7.2+ds-1 | not yet assigned | Not reported | [1063416] |
| Debian | libgit2 | source | bookworm | 1.5.1+ds-1+deb12u1 | not yet assigned | Not reported | [1063416] |
| Ubuntu | libgit2 | deb | pro | 0.26.0+dfsg.1-1.1ubuntu0.2+esm1 | Not reported | UBUNTU-CVE-2024-24577 | Not reported |
| Ubuntu | libgit2 | deb | 20.04 | 0.28.4+dfsg.1-2ubuntu0.1 | Not reported | UBUNTU-CVE-2024-24577 | Not reported |
| Ubuntu | libgit2 | deb | 22.04 | 1.1.0+dfsg.1-4.1ubuntu0.1 | Not reported | UBUNTU-CVE-2024-24577 | Not reported |
| Suse | git | rpm | linux micro 6.0 | 2.51.0-1.1 | Not reported | SUSE-SU-2025:20721-1 | Not reported |
| Suse | git | rpm | linux enterprise module for basesystem 15 sp6 | 2.43.0-150600.3.6.1 | Not reported | SUSE-SU-2024:2579-1 | Not reported |
| Suse | git | rpm | linux enterprise module for development tools 15 sp6 | 2.43.0-150600.3.6.1 | Not reported | SUSE-SU-2024:2579-1 | Not reported |
| Opensuse | git | rpm | leap 15.6 | 2.43.0-150600.3.6.1 | Not reported | SUSE-SU-2024:2579-1 | Not reported |
| Suse | git | rpm | linux enterprise micro 5.5 | 2.35.3-150300.10.42.1 | Not reported | SUSE-SU-2024:2656-1 | Not reported |
| Suse | git | rpm | linux enterprise module for basesystem 15 sp5 | 2.35.3-150300.10.42.1 | Not reported | SUSE-SU-2024:2656-1 | Not reported |
| Suse | git | rpm | linux enterprise module for development tools 15 sp5 | 2.35.3-150300.10.42.1 | Not reported | SUSE-SU-2024:2656-1 | Not reported |
| Suse | git | rpm | linux enterprise high performance computing 15 sp3-ltss | 2.35.3-150300.10.42.1 | Not reported | SUSE-SU-2024:2656-1 | Not reported |
| Suse | git | rpm | linux enterprise high performance computing 15 sp4-espos | 2.35.3-150300.10.42.1 | Not reported | SUSE-SU-2024:2656-1 | Not reported |
| Suse | git | rpm | linux enterprise high performance computing 15 sp4-ltss | 2.35.3-150300.10.42.1 | Not reported | SUSE-SU-2024:2656-1 | Not reported |
| Suse | git | rpm | linux enterprise server 15 sp3-ltss | 2.35.3-150300.10.42.1 | Not reported | SUSE-SU-2024:2656-1 | Not reported |
| Suse | git | rpm | linux enterprise server 15 sp4-ltss | 2.35.3-150300.10.42.1 | Not reported | SUSE-SU-2024:2656-1 | Not reported |
| Suse | git | rpm | linux enterprise server for sap applications 15 sp3 | 2.35.3-150300.10.42.1 | Not reported | SUSE-SU-2024:2656-1 | Not reported |
| Suse | git | rpm | linux enterprise server for sap applications 15 sp4 | 2.35.3-150300.10.42.1 | Not reported | SUSE-SU-2024:2656-1 | Not reported |
| Suse | git | rpm | manager proxy 4.3 | 2.35.3-150300.10.42.1 | Not reported | SUSE-SU-2024:2656-1 | Not reported |
| Suse | git | rpm | manager server 4.3 | 2.35.3-150300.10.42.1 | Not reported | SUSE-SU-2024:2656-1 | Not reported |
| Suse | git | rpm | enterprise storage 7.1 | 2.35.3-150300.10.42.1 | Not reported | SUSE-SU-2024:2656-1 | Not reported |
| Opensuse | git | rpm | leap micro 5.5 | 2.35.3-150300.10.42.1 | Not reported | SUSE-SU-2024:2656-1 | Not reported |
| Opensuse | git | rpm | leap 15.5 | 2.35.3-150300.10.42.1 | Not reported | SUSE-SU-2024:2656-1 | Not reported |
| Suse | libgit2 | rpm | linux enterprise high performance computing 15 sp2-ltss | 0.26.8-150000.3.21.1 | Not reported | SUSE-SU-2024:2598-1 | Not reported |
| Suse | libgit2 | rpm | linux enterprise server 15 sp2-ltss | 0.26.8-150000.3.21.1 | Not reported | SUSE-SU-2024:2598-1 | Not reported |
| Suse | libgit2 | rpm | linux enterprise server for sap applications 15 sp2 | 0.26.8-150000.3.21.1 | Not reported | SUSE-SU-2024:2598-1 | Not reported |
| Suse | libgit2 | rpm | manager server module 4.3 | 0.28.4-150200.3.9.1 | Not reported | SUSE-SU-2024:2610-1 | Not reported |
| Suse | libgit2 | rpm | linux enterprise high performance computing 15 sp2-ltss | 0.28.4-150200.3.9.1 | Not reported | SUSE-SU-2024:2610-1 | Not reported |
| Suse | libgit2 | rpm | linux enterprise high performance computing 15 sp3-ltss | 0.28.4-150200.3.9.1 | Not reported | SUSE-SU-2024:2610-1 | Not reported |
| Suse | libgit2 | rpm | linux enterprise server 15 sp2-ltss | 0.28.4-150200.3.9.1 | Not reported | SUSE-SU-2024:2610-1 | Not reported |
| Suse | libgit2 | rpm | linux enterprise server 15 sp3-ltss | 0.28.4-150200.3.9.1 | Not reported | SUSE-SU-2024:2610-1 | Not reported |
| Suse | libgit2 | rpm | linux enterprise server for sap applications 15 sp2 | 0.28.4-150200.3.9.1 | Not reported | SUSE-SU-2024:2610-1 | Not reported |
| Suse | libgit2 | rpm | linux enterprise server for sap applications 15 sp3 | 0.28.4-150200.3.9.1 | Not reported | SUSE-SU-2024:2610-1 | Not reported |
| Suse | libgit2 | rpm | enterprise storage 7.1 | 0.28.4-150200.3.9.1 | Not reported | SUSE-SU-2024:2610-1 | Not reported |
| Suse | libgit2 | rpm | linux enterprise software development kit 12 sp5 | 0.24.1-11.5.1 | Not reported | SUSE-SU-2024:2583-1 | Not reported |
| Opensuse | libgit2 | rpm | tumbleweed | 1.7.2-1.1 | Not reported | OPENSUSE-SU-2024:13661-1 | Not reported |
| Suse | git | rpm | linux enterprise high performance computing 15 sp2-ltss | 2.26.2-150000.59.1 | Not reported | SUSE-SU-2024:2599-1 | Not reported |
| Suse | git | rpm | linux enterprise server 15 sp2-ltss | 2.26.2-150000.59.1 | Not reported | SUSE-SU-2024:2599-1 | Not reported |
| Suse | git | rpm | linux enterprise server for sap applications 15 sp2 | 2.26.2-150000.59.1 | Not reported | SUSE-SU-2024:2599-1 | Not reported |
| Suse | git | rpm | linux enterprise software development kit 12 sp5 | 2.26.2-27.75.1 | Not reported | SUSE-SU-2024:2592-1 | Not reported |
| Suse | git | rpm | linux enterprise server 12 sp5 | 2.26.2-27.75.1 | Not reported | SUSE-SU-2024:2592-1 | Not reported |
| Suse | git | rpm | linux enterprise server for sap applications 12 sp5 | 2.26.2-27.75.1 | Not reported | SUSE-SU-2024:2592-1 | Not reported |
| Opensuse | git | rpm | tumbleweed | 2.45.2-2.1 | Not reported | OPENSUSE-SU-2024:14212-1 | Not reported |
| Suse | libgit2 | rpm | linux enterprise module for development tools 15 sp5 | 1.3.0-150400.3.9.1 | Not reported | SUSE-SU-2024:2619-1 | Not reported |
| Suse | libgit2 | rpm | linux enterprise high performance computing 15 sp4-espos | 1.3.0-150400.3.9.1 | Not reported | SUSE-SU-2024:2619-1 | Not reported |
| Suse | libgit2 | rpm | linux enterprise high performance computing 15 sp4-ltss | 1.3.0-150400.3.9.1 | Not reported | SUSE-SU-2024:2619-1 | Not reported |
| Suse | libgit2 | rpm | linux enterprise server 15 sp4-ltss | 1.3.0-150400.3.9.1 | Not reported | SUSE-SU-2024:2619-1 | Not reported |
| Suse | libgit2 | rpm | linux enterprise server for sap applications 15 sp4 | 1.3.0-150400.3.9.1 | Not reported | SUSE-SU-2024:2619-1 | Not reported |
| Opensuse | libgit2 | rpm | leap 15.5 | 1.3.0-150400.3.9.1 | Not reported | SUSE-SU-2024:2619-1 | Not reported |
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
References
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2024_2579-1.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2024-24577]
- [https://osv.dev/vulnerability/DLA-3742-1]
- [https://osv.dev/vulnerability/DSA-5619-1]
- [https://osv.dev/vulnerability/SUSE-SU-2024:2579-1]
- [https://osv.dev/vulnerability/SUSE-SU-2024:2583-1]
- [https://osv.dev/vulnerability/SUSE-SU-2024:2592-1]
- [https://osv.dev/vulnerability/SUSE-SU-2024:2598-1]
- [https://osv.dev/vulnerability/SUSE-SU-2024:2599-1]
- [https://osv.dev/vulnerability/SUSE-SU-2024:2610-1]
- [https://osv.dev/vulnerability/SUSE-SU-2024:2619-1]
- [https://osv.dev/vulnerability/SUSE-SU-2024:2656-1]
- [https://osv.dev/vulnerability/SUSE-SU-2025:20721-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2024-24577]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:13661-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:14212-1]
- [https://security-tracker.debian.org/tracker/CVE-2024-24577]
- [https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-24577.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2025/wid-sec-w-2025-0225.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]