{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-24577 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2024-24577 is a high-severity memory corruption vulnerability in libgit2, published on 6 Feb 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-24577 and fix it if it is affected.\n\nWhat it is: CVE-2024-24577 is a high-severity memory corruption vulnerability in libgit2, published on 6 Feb 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-24577 in the wild and no public exploit code.\n\nAffected product: libgit2. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-24577/ (Markdown: https://insights.sbomify.com/CVE-2024-24577/index.md)","id":"CVE-2024-24577","markdown":"https://insights.sbomify.com/CVE-2024-24577/index.md","name":"CVE-2024-24577","record":{"aliases":["AZL-34274","BELL-CVE-2024-24577","CLEANSTART-2024-DS47827","DEBIAN-CVE-2024-24577","DLA-3742-1","DSA-5619-1","GHSA-j2v7-4f6v-gpg8","JLSEC-2025-186","OESA-2024-1188","OESA-2024-1201","OESA-2024-1204","OESA-2024-1205","OESA-2024-1206","SUSE-SU-2024:2579-1","SUSE-SU-2024:2583-1","SUSE-SU-2024:2592-1","SUSE-SU-2024:2598-1","SUSE-SU-2024:2599-1","SUSE-SU-2024:2610-1","SUSE-SU-2024:2619-1","SUSE-SU-2024:2656-1","UBUNTU-CVE-2024-24577","openSUSE-SU-2024:14212-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Git core library","requires_auth":"none","summary":"Attackers can achieve arbitrary code execution via heap corruption in libgit2's git_index_add function using crafted inputs.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"libgit2","vendor":"libgit2"}],"cvss":{"score":8.6,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer"},{"id":"CWE-122","name":"Heap-based Buffer Overflow"}],"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.","ecosystems":["SUSE:Enterprise Storage 7.1","SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS","SUSE:Linux Enterprise Micro 5.5","SUSE:Linux Enterprise Module for Basesystem 15 SP5","SUSE:Linux Enterprise Module for Basesystem 15 SP6","SUSE:Linux Enterprise Module for Development Tools 15 SP5","SUSE:Linux Enterprise Module for Development Tools 15 SP6","SUSE:Linux Enterprise Server 12 SP5","SUSE:Linux Enterprise Server 15 SP2-LTSS","SUSE:Linux Enterprise Server 15 SP3-LTSS","SUSE:Linux Enterprise Server 15 SP4-LTSS","SUSE:Linux Enterprise Server for SAP Applications 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 15 SP2","SUSE:Linux Enterprise Server for SAP Applications 15 SP3","SUSE:Linux Enterprise Server for SAP Applications 15 SP4","SUSE:Linux Enterprise Software Development Kit 12 SP5","SUSE:Manager Proxy 4.3","SUSE:Manager Server 4.3","SUSE:Manager Server Module 4.3","openSUSE:Leap 15.5","openSUSE:Leap 15.6","openSUSE:Leap Micro 5.5","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"libgit2 is vulnerable to arbitrary code execution due to heap corruption in `git_index_add`","id":"CVE-2024-24577","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"memory_corruption","year":"2024"},"n_packages":43,"n_references":9,"next":{"headline":"RaspberryMatic Unauthenticated Remote Code Execution vulnerability through HMServer File Upload","id":"CVE-2024-24578"},"packages":[{"ecosystem":"SUSE:Enterprise Storage 7.1","fixed":["2.35.3-150300.10.42.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Enterprise%20Storage%207.1","source":"SUSE-SU-2024:2656-1"},{"ecosystem":"SUSE:Enterprise Storage 7.1","fixed":["0.28.4-150200.3.9.1"],"introduced":["0"],"last_affected":[],"package":"libgit2","purl":"pkg:rpm/suse/libgit2\u0026distro=SUSE%20Enterprise%20Storage%207.1","source":"SUSE-SU-2024:2610-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","fixed":["2.26.2-150000.59.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSS","source":"SUSE-SU-2024:2599-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","fixed":["0.26.8-150000.3.21.1"],"introduced":["0"],"last_affected":[],"package":"libgit2","purl":"pkg:rpm/suse/libgit2\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSS","source":"SUSE-SU-2024:2598-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","fixed":["0.28.4-150200.3.9.1"],"introduced":["0"],"last_affected":[],"package":"libgit2","purl":"pkg:rpm/suse/libgit2\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSS","source":"SUSE-SU-2024:2610-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","fixed":["2.35.3-150300.10.42.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSS","source":"SUSE-SU-2024:2656-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","fixed":["0.28.4-150200.3.9.1"],"introduced":["0"],"last_affected":[],"package":"libgit2","purl":"pkg:rpm/suse/libgit2\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSS","source":"SUSE-SU-2024:2610-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS","fixed":["2.35.3-150300.10.42.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-ESPOS","source":"SUSE-SU-2024:2656-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS","fixed":["1.3.0-150400.3.9.1"],"introduced":["0"],"last_affected":[],"package":"libgit2","purl":"pkg:rpm/suse/libgit2\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-ESPOS","source":"SUSE-SU-2024:2619-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS","fixed":["2.35.3-150300.10.42.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-LTSS","source":"SUSE-SU-2024:2656-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS","fixed":["1.3.0-150400.3.9.1"],"introduced":["0"],"last_affected":[],"package":"libgit2","purl":"pkg:rpm/suse/libgit2\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-LTSS","source":"SUSE-SU-2024:2619-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.5","fixed":["2.35.3-150300.10.42.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.5","source":"SUSE-SU-2024:2656-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP5","fixed":["2.35.3-150300.10.42.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP5","source":"SUSE-SU-2024:2656-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP6","fixed":["2.43.0-150600.3.6.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP6","source":"SUSE-SU-2024:2579-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Development Tools 15 SP5","fixed":["2.35.3-150300.10.42.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP5","source":"SUSE-SU-2024:2656-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Development Tools 15 SP5","fixed":["1.3.0-150400.3.9.1"],"introduced":["0"],"last_affected":[],"package":"libgit2","purl":"pkg:rpm/suse/libgit2\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP5","source":"SUSE-SU-2024:2619-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Development Tools 15 SP6","fixed":["2.43.0-150600.3.6.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP6","source":"SUSE-SU-2024:2579-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP5","fixed":["2.26.2-27.75.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5","source":"SUSE-SU-2024:2592-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP2-LTSS","fixed":["2.26.2-150000.59.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-LTSS","source":"SUSE-SU-2024:2599-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP2-LTSS","fixed":["0.26.8-150000.3.21.1"],"introduced":["0"],"last_affected":[],"package":"libgit2","purl":"pkg:rpm/suse/libgit2\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-LTSS","source":"SUSE-SU-2024:2598-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP2-LTSS","fixed":["0.28.4-150200.3.9.1"],"introduced":["0"],"last_affected":[],"package":"libgit2","purl":"pkg:rpm/suse/libgit2\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-LTSS","source":"SUSE-SU-2024:2610-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP3-LTSS","fixed":["2.35.3-150300.10.42.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP3-LTSS","source":"SUSE-SU-2024:2656-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP3-LTSS","fixed":["0.28.4-150200.3.9.1"],"introduced":["0"],"last_affected":[],"package":"libgit2","purl":"pkg:rpm/suse/libgit2\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP3-LTSS","source":"SUSE-SU-2024:2610-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP4-LTSS","fixed":["2.35.3-150300.10.42.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP4-LTSS","source":"SUSE-SU-2024:2656-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP4-LTSS","fixed":["1.3.0-150400.3.9.1"],"introduced":["0"],"last_affected":[],"package":"libgit2","purl":"pkg:rpm/suse/libgit2\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP4-LTSS","source":"SUSE-SU-2024:2619-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP5","fixed":["2.26.2-27.75.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5","source":"SUSE-SU-2024:2592-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP2","fixed":["2.26.2-150000.59.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP2","source":"SUSE-SU-2024:2599-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP2","fixed":["0.26.8-150000.3.21.1"],"introduced":["0"],"last_affected":[],"package":"libgit2","purl":"pkg:rpm/suse/libgit2\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP2","source":"SUSE-SU-2024:2598-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP2","fixed":["0.28.4-150200.3.9.1"],"introduced":["0"],"last_affected":[],"package":"libgit2","purl":"pkg:rpm/suse/libgit2\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP2","source":"SUSE-SU-2024:2610-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP3","fixed":["2.35.3-150300.10.42.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP3","source":"SUSE-SU-2024:2656-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP3","fixed":["0.28.4-150200.3.9.1"],"introduced":["0"],"last_affected":[],"package":"libgit2","purl":"pkg:rpm/suse/libgit2\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP3","source":"SUSE-SU-2024:2610-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP4","fixed":["2.35.3-150300.10.42.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP4","source":"SUSE-SU-2024:2656-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP4","fixed":["1.3.0-150400.3.9.1"],"introduced":["0"],"last_affected":[],"package":"libgit2","purl":"pkg:rpm/suse/libgit2\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP4","source":"SUSE-SU-2024:2619-1"},{"ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP5","fixed":["2.26.2-27.75.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5","source":"SUSE-SU-2024:2592-1"},{"ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP5","fixed":["0.24.1-11.5.1"],"introduced":["0"],"last_affected":[],"package":"libgit2","purl":"pkg:rpm/suse/libgit2\u0026distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5","source":"SUSE-SU-2024:2583-1"},{"ecosystem":"SUSE:Manager Proxy 4.3","fixed":["2.35.3-150300.10.42.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Manager%20Proxy%204.3","source":"SUSE-SU-2024:2656-1"},{"ecosystem":"SUSE:Manager Server 4.3","fixed":["2.35.3-150300.10.42.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Manager%20Server%204.3","source":"SUSE-SU-2024:2656-1"},{"ecosystem":"SUSE:Manager Server Module 4.3","fixed":["0.28.4-150200.3.9.1"],"introduced":["0"],"last_affected":[],"package":"libgit2","purl":"pkg:rpm/suse/libgit2\u0026distro=SUSE%20Manager%20Server%20Module%204.3","source":"SUSE-SU-2024:2610-1"},{"ecosystem":"openSUSE:Leap 15.5","fixed":["2.35.3-150300.10.42.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/opensuse/git\u0026distro=openSUSE%20Leap%2015.5","source":"SUSE-SU-2024:2656-1"},{"ecosystem":"openSUSE:Leap 15.5","fixed":["1.3.0-150400.3.9.1"],"introduced":["0"],"last_affected":[],"package":"libgit2","purl":"pkg:rpm/opensuse/libgit2\u0026distro=openSUSE%20Leap%2015.5","source":"SUSE-SU-2024:2619-1"}],"prev":{"headline":"Rusts's `std::process::Command` did not properly escape arguments of batch files on Windows","id":"CVE-2024-24576"},"products":["libgit2"],"published":"2024-02-06","related":[{"cvss_score":7.5,"headline":"libgit2 is vulnerable to a denial of service attack in `git_revparse_single`","id":"CVE-2024-24575","kev_date_added":null,"published":"2024-02-06"},{"cvss_score":5.3,"headline":"libgit2 fails to verify SSH keys by default","id":"CVE-2023-22742","kev_date_added":null,"published":"2023-01-20"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-05-15","vendors":["libgit2"]},"summary":"Attackers can achieve arbitrary code execution via heap corruption in libgit2's git_index_add function using crafted inputs.","url":"https://insights.sbomify.com/CVE-2024-24577/"}