U.S. flag   An official website of the United States government
Dot gov

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Https

Secure .gov websites use HTTPS
A lock (Dot gov) or https:// means you've safely connected to the .gov website. Share sensitive information only on official, secure websites.

Vulnerability Change Records for CVE-2024-24577

Change History

New CVE Received by NIST 2/06/2024 5:16:15 PM

Action Type Old Value New Value
Added CVSS V3.1

								
							
							
						
GitHub, Inc. AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L
Added CWE

								
							
							
						
GitHub, Inc. CWE-122
Added 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.
Added Reference

								
							
							
						
GitHub, Inc. https://github.com/libgit2/libgit2/releases/tag/v1.6.5 [No types assigned]
Added Reference

								
							
							
						
GitHub, Inc. https://github.com/libgit2/libgit2/releases/tag/v1.7.2 [No types assigned]
Added Reference

								
							
							
						
GitHub, Inc. https://github.com/libgit2/libgit2/security/advisories/GHSA-j2v7-4f6v-gpg8 [No types assigned]