Skip to main content
CVE-2026-5917VulnerabilityPublished Updated

libgit2 versions before 1.8.7 and 1.9.0 before 1.9.7 built with the libssh2 SSH backend (USE_SSH=libssh2) contain a

Affects libgit2Source GCVE Database

0
Compare

Not known to be exploited · CVSS 8.8 High · fixed in 1.8.7 : patch libgit2 soon.

Data as of 9 Nov 2026, 23:24 UTC

CVSS 3.1 base score
8.8High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
1.4% chance of exploitation in 30 days – higher than 73% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 1.8.7
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 11 Aug 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 9 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
GitHublibgit2/libgit2pkg:github/libgit2/libgit2Other threatsAffected
  • >=0.27.0 <=1.9.0
Fixed in–
Ubuntu Pro 16.04 LTSlibgit2pkg:deb/ubuntu/libgit2?arch=source&distro=esm-apps-legacy/xenialOther threatsAffected
  • 0.22.2-2 – 0.24.1-2ubuntu0.2+esm4
8 affected builds
Fixed in–
Ubuntu Pro 18.04 LTSlibgit2pkg:deb/ubuntu/libgit2?arch=source&distro=esm-apps/bionicOther threatsAffected
  • 0.25.1+really0.24.6-1 – 0.26.0+dfsg.1-1.1ubuntu0.2+esm3
7 affected builds
Fixed in–
Ubuntu Pro 20.04 LTSlibgit2pkg:deb/ubuntu/libgit2?arch=source&distro=esm-apps/focalOther threatsAffected
  • 0.27.7+dfsg.1-0.2build1 – 0.28.4+dfsg.1-2ubuntu0.1+esm2
7 affected builds
Fixed in–
Ubuntu Pro 22.04 LTSlibgit2pkg:deb/ubuntu/libgit2?arch=source&distro=esm-apps/jammyOther threatsAffected
  • 1.1.0+dfsg.1-4 – 1.1.0+dfsg.1-4.1ubuntu0.1+esm2
6 affected builds
Fixed in–
Ubuntu 24.04 LTSlibgit2pkg:deb/ubuntu/libgit2?arch=source&distro=nobleOther threatsAffected
  • 1.5.1+ds-1ubuntu1 – 1.7.2+ds-1ubuntu3.2
7 affected builds
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A fix is available in libgit2 versions 1.8.7 and 1.9.7 and later. Users should upgrade to these or newer versions to remediate this vulnerability. Until patched, avoid using vulnerable versions built with the libssh2 SSH backend or do not process untrusted repository paths containing shell metacharacters. No vendor advisory content was provided to indicate alternative mitigations or that the issue is already mitigated.

Description

libgit2 versions before 1.8.7 and 1.9.0 before 1.9.7 built with the libssh2 SSH backend contain a shell command injection vulnerability. This flaw allows remote attackers to execute arbitrary commands on an SSH server by supplying a repository path with unescaped shell metacharacters. The vulnerability arises because the repository path is inserted directly into a shell command without proper escaping, enabling command injection during recursive clone operations involving malicious submodule URLs.

References

Community reviews

Loading reviews…