CVSS 4.0
8.6 highCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NHigh (8.6) in libgit2 libgit2. EPSS 1.4% estimated probability of exploitation activity in the next 30 days.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HExplain CVE-2026-5917 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-5917?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-5917?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-5917 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| libgit2 | before 1.8.7 |
| libgit2 | from 1.9.0 before 1.9.7 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12 | libgit2 | 1.5.1+ds-1+deb12u2 | DEBIAN-CVE-2026-5917 DLA-4831-1 |
| Debian | 13 | libgit2 | 1.9.0+ds-2+deb13u1 | DEBIAN-CVE-2026-5917 DSA-6453-1 |
| Debian | 14 | libgit2 | 1.9.7+ds-1 | DEBIAN-CVE-2026-5917 |
| Ubuntu | 24.04:LTS | libgit2 | 1.7.2+ds-1ubuntu3.2 | UBUNTU-CVE-2026-5917 USN-8809-1 |
| Ubuntu | 26.04:LTS | libgit2 | 1.9.1+ds-1ubuntu1.2 | UBUNTU-CVE-2026-5917 USN-8809-1 |
| Ubuntu | Pro:16.04:LTS | libgit2 | 0.24.1-2ubuntu0.2+esm4 | UBUNTU-CVE-2026-5917 USN-8809-1 |
| Ubuntu | Pro:18.04:LTS | libgit2 | 0.26.0+dfsg.1-1.1ubuntu0.2+esm3 | UBUNTU-CVE-2026-5917 USN-8809-1 |
| Ubuntu | Pro:20.04:LTS | libgit2 | 0.28.4+dfsg.1-2ubuntu0.1+esm2 | UBUNTU-CVE-2026-5917 USN-8809-1 |
| Ubuntu | Pro:22.04:LTS | libgit2 | 1.1.0+dfsg.1-4.1ubuntu0.1+esm2 | UBUNTU-CVE-2026-5917 USN-8809-1 |
| openSUSE | Tumbleweed | libgit2 | 1.9.7-1.1 | openSUSE-SU-2026:11521-1 |
| Alpine | v3.23, v3.24 | libgit2 | 1.9.7-r0 | ALPINE-CVE-2026-5917 |
| Alpaquita | 25, stream | libgit2 | 1.9.7-r0 | BELL-CVE-2026-5917 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE · Alpine · Alpaquita.
Red Hat rates this Important.
This is an Important flaw. Red Hat products utilizing libgit2 with the libssh2 SSH backend are susceptible to remote arbitrary code execution. This occurs when processing a maliciously crafted repository path containing unescaped shell metacharacters during a recursive clone operation, allowing an attacker to inject and execute commands on the SSH server under the victim's user account.
To mitigate this issue, avoid cloning Git repositories from untrusted sources, especially those containing submodules. If possible, disable automatic recursive cloning of submodules when working with potentially untrusted repositories. Ensure that SSH user accounts used for cloning have minimal necessary privileges to limit the impact of successful exploitation.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 10 | rust | Not affected | |
| Red Hat Enterprise Linux 8 | libgit2 | Not affected | |
| Red Hat Enterprise Linux 9 | rust | Not affected | |
| Red Hat Enterprise Linux AI (RHEL AI) 3 | libgit2 | Affected | |
| Red Hat Enterprise Linux AI (RHEL AI) 3 | rust | Not affected | |
| Red Hat Hardened Images | libgit2 | Not affected |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-5917.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.