Advisory record · GHSA-m4ch-rfv5-x5g3

git2-rs fails to verify SSH keys by default

CVSS 5.3 MediumEPSS 0.0061 · 49th percentile

Published by the GitHub Advisory Database at 20 Jan 2023, 23:36 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
libgit2-syscrates.io>=0.14.0, <0.14.2 || <0.13.50.14.2, 0.13.5
git2crates.io<0.16.10.16.1
Identifiers
GHSA-m4ch-rfv5-x5g3 · CVE-2023-22742 · GHSA-8643-3wh5-rmjq · RUSTSEC-2023-0003
Weakness (CWE)
CWE-347
Published
20 Jan 2023
Updated
14 Oct 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

The git2 and libgit2-sys Rust crates, which wrap the libgit2 C library, are affected: libgit2-sys versions before 0.13.5 and from 0.14.0 before 0.14.2, and git2 before 0.16.1. libgit2 1.5.0 and earlier did not verify SSH host keys, so an attacker positioned on the network path could carry out a man-in-the-middle attack on SSH connections. Upgrade libgit2-sys to 0.13.5 or 0.14.2 and git2 to 0.16.1.

Written 3 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
5.3 Medium 3.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0061, the 49th percentile, on 16 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:24 UTC First seen by agentprime
  2. 31 Oct 2026, 14:24 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.