---
cve: "CVE-2026-5917"
severity: "HIGH"
cvss: 8.6
epss: "0.9%"
vendor: "libgit2"
kev: false
exploited: false
published: "2026-08-11 22:17:37"
tags: [cve, security, high]
source: tsecurity.de CVE-Dossier
exported: "2026-09-21T14:47:55+02:00"
---

# CVE-2026-5917

> 8.6 HIGH · 🧪 PoC

## Beschreibung

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 shell command injection vulnerability that allows remote attackers to execute arbitrary commands on an SSH server by supplying a repository path containing unescaped shell metacharacters such as single quotes, semicolons, or pipes. The gen_proto() function in ssh_libssh2.c inserts the repository path directly into a shell command string without escaping special characters before passing it to libssh2_channel_exec(), enabling an attacker to craft a malicious submodule URL in a .gitmodules file that, when processed during a recursive clone, causes the remote server's shell to interpret injected commands under the victim's SSH user account.

## CVSS-Vektor

```
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
```

| Metrik | Wert | Bewertung |
|---|---|---|
| AV Angriffsvektor | Netzwerk | bad |
| AC Komplexität | Gering | bad |
| PR Privilegien | Keine | bad |

## Patch verfügbar (OSV)

- fa864d0bc86ed672ff9444135ab33477e545f790 (Commit)
- 49e408b3208bc3093757a1c2db938d3590f3f412 (Commit)

## Referenzen

- <https://github.com/libgit2/libgit2/security/advisories/GHSA-xqj4-2j5v-rr75>
- <https://www.vulncheck.com/advisories/libgit2-shell-command-injection-via-ssh-libssh2-backend>

---
_Exportiert aus dem [tsecurity.de CVE-Dossier](https://tsecurity.de/cve?cve=CVE-2026-5917) · Datenquellen: EUVD (ENISA), NVD, OSV, CISA KEV, FIRST EPSS, Exploit-DB, BSI BITS_
