CVE-2024-24575
NixOS vulnerability analysis and mitigation

Overview

A security vulnerability identified as CVE-2024-24575 was discovered in libgit2, a portable C implementation of the Git core methods. The vulnerability was found in versions >= 1.4.0 and < 1.7.2, with patches released in versions 1.6.5 and 1.7.2. The issue was introduced in commit add2dabb3c16aa49b33904dcdc07cd915efc12fa and was discovered by researchers at Amazon AWS (GitHub Advisory).

Technical details

The vulnerability exists in the revparse function within src/libgit2/revparse.c, where a loop is used to parse user-provided spec strings. An edge case during parsing allows potential access to arbitrary memory, which can be exploited to create an infinite loop in the revparse function. The issue specifically affects the git_revparse_single function (GitHub Advisory).

Impact

When exploited, this vulnerability can cause the git_revparse_single function to enter an infinite loop, potentially resulting in a Denial of Service (DoS) attack in applications using libgit2. Additionally, there is a possibility of memory leaks if the extracted rev spec is reflected back to the attacker (GitHub Advisory, Ubuntu Notice).

Mitigation and workarounds

Users are advised to upgrade to libgit2 version 1.6.5 or 1.7.2, which contain patches for this vulnerability. Various distributions have released security updates, including Ubuntu and Fedora, which provide fixed versions through their package management systems (GitHub Release, Ubuntu Notice).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-69264CRITICAL9.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69263HIGH8.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69262HIGH7.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-20807MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2026-21885MEDIUM6.5
  • NixOSNixOS
  • miniflux
NoYesJan 08, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management