Vulnerability DatabaseGHSA-22q8-ghmq-63vf

GHSA-22q8-ghmq-63vf
Rust vulnerability analysis and mitigation

Overview

The vulnerability (GHSA-22q8-ghmq-63vf) affects the libgit2-sys Rust package, which was discovered and disclosed in February 2024. This high-severity vulnerability (CVSS score 8.6) impacts versions prior to 0.16.2 of libgit2-sys and involves multiple security issues including memory corruption, denial of service, and potential arbitrary code execution in the underlying libgit2 library (GitHub Advisory, RustSec Advisory).

Technical details

The vulnerability encompasses three distinct security issues in libgit2 version 1.7.2: 1) The git_revparse_single function can enter an infinite loop on crafted input, leading to Denial of Service, exposed via Repository::revparse_single method, 2) The git_index_add function may trigger heap corruption potentially leading to arbitrary code execution, exposed through the Index::add method, and 3) The smart transport negotiation can experience an out-of-bounds read when a remote server doesn't advertise capabilities. The vulnerability has a CVSS v3.1 base score of 8.6 (High) with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L (RustSec Advisory).

Impact

The vulnerability can lead to multiple severe impacts including denial of service through infinite loops, potential arbitrary code execution via heap corruption, and possible information disclosure through out-of-bounds reads. The CVSS metrics indicate high impact on confidentiality and low impact on both integrity and availability (GitHub Advisory).

Mitigation and workarounds

Users are strongly recommended to upgrade to libgit2-sys version 0.16.2 or later, which bundles the fixed version of libgit2 1.7.2. For systems using a system-provided libgit2 library, it must be version 1.7.2 or newer (RustSec Advisory).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-22257HIGH8.8
  • RustRust
  • salvo
NoYesJan 08, 2026
CVE-2026-22698HIGH8.7
  • RustRust
  • sm2
NoNoJan 10, 2026
CVE-2026-22699HIGH7.5
  • RustRust
  • sm2
NoNoJan 10, 2026
GHSA-g59m-gf8j-gjf5LOW3.7
  • RustRust
  • aws-sdk-neptunedata
NoYesJan 08, 2026
GHSA-585q-cm62-757jLOW2
  • RustRust
  • mnl
NoNoJan 09, 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