Skip to main content

Uncontrolled Resource Consumption

CVE-2024-24575

Severity High
Score 7.5/10

Summary

The libgit2 is a portable C implementation of the Git core methods provided as a linkable library with a solid API, allowing you to build Git functionality into your application. Using well-crafted inputs to `git_revparse_single` can cause the function to enter an infinite loop, potentially causing a Denial of Service (DoS) attack in the calling application. The "revparse" function in `src/libgit2/revparse.c` uses a loop to parse the user-provided spec string. There is an edge case during parsing that allows a bad actor to force the loop conditions to access arbitrary memory. Potentially, this could also leak memory if the extracted rev spec is reflected back to the attacker. This issue affects libgit2 versions 1.4.0 through 1.6.4, and 1.7.0 through 1.7.1.

  • LOW
  • NETWORK
  • NONE
  • UNCHANGED
  • NONE
  • NONE
  • NONE
  • HIGH

CWE-400 - Uncontrolled resource consumption

An uncontrolled resource allocation attack (also known as resource exhaustion attack) triggers unauthorized overconsumption of the limited resources in an application, such as memory, file system storage, database connection pool entries, and CPU. This may lead to denial of service for valid users and degradation of the application's functionality as well as that of the host operating system.

Advisory Timeline

  • Published