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
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
- 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:HExploitation evidence
Disclosed: evidence found.
CVE published 11 Aug 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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
| Product | Affected | Fixed in |
|---|---|---|
GitHublibgit2/libgit2pkg:github/libgit2/libgit2Other threats | Affected
| Fixed in– |
Ubuntu Pro 16.04 LTSlibgit2pkg:deb/ubuntu/libgit2?arch=source&distro=esm-apps-legacy/xenialOther threats | Affected
| Fixed in– |
Ubuntu Pro 18.04 LTSlibgit2pkg:deb/ubuntu/libgit2?arch=source&distro=esm-apps/bionicOther threats | Affected
| Fixed in– |
Ubuntu Pro 20.04 LTSlibgit2pkg:deb/ubuntu/libgit2?arch=source&distro=esm-apps/focalOther threats | Affected
| Fixed in– |
Ubuntu Pro 22.04 LTSlibgit2pkg:deb/ubuntu/libgit2?arch=source&distro=esm-apps/jammyOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSlibgit2pkg:deb/ubuntu/libgit2?arch=source&distro=nobleOther threats | Affected
| 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
- nvd.nist.gov/vuln/detail/CVE-2026-5917 (opens in a new tab)
- github.com/libgit2/libgit2 (opens in a new tab)
- vulncheck.com/advisories/libgit2-shell-command-injection-via-ssh-libssh2-backend (opens in a new tab)
- suse.com/support/security/rating/ (opens in a new tab)
- ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_11521-1.json (opens in a new tab)
- suse.com/security/cve/CVE-2026-5917/ (opens in a new tab)
- ubuntu.com/security/CVE-2026-5917 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-5917 (opens in a new tab)