Heap-based buffer overflow in libgit2 - #VU138486
Published: July 20, 2026
libgit2
Detailed vulnerability description
The vulnerability allows a remote attacker to cause a denial of service.
The vulnerability exists due to a heap-based buffer overflow in the bundled PCRE 8.45 regex compiler when parsing attacker-controlled revspec patterns through git_revparse_single. A remote attacker can supply a specially crafted revspec pattern to cause a denial of service.
The issue is reachable through revspecs of the form :/<pattern> in configurations using the built-in regex backend.