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.
CVE-2026-5917
Score 9.6 from GitHub Security Advisory (severity: CRITICAL) published 2026-08-12. The CNA's CVSS baseline 8.8; sources differ by 0.8.
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 8.8
- EG Score
- 9.6CRITICALmedium confidence
- EG Risk
- 44EG Risk 44/100CISA SSVC
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity96% × 45%Exploitation1% × 40%Automatability0% × 15%CISA SSVC: Track at low or medium mission impact; Track* at high (mission-essential systems).Action: A fix is available. Apply it within your standard update timelines. - EPSS PROB
- 1.4%
- EPSS %ILE
- 72nd
- KEV
- Not listed
CISA SSVCTrack at low or medium mission impact; Track* at high (mission-essential systems).
A fix is available. Apply it within your standard update timelines.
Exploitation none (CISA Vulnrichment) · Automatable no (CISA Vulnrichment) · Technical impact total (CISA Vulnrichment). Mission impact is CISA's Mission & Well-being decision point, and only you can judge it: high means the affected system is essential to your organisation's mission, or its compromise could cause irreversible harm to people. CISA's decision table
Published
August 11, 2026
Last Modified
October 1, 2026
Advisory Details (2)
Auto-updated Aug 23, 2026libgit2 v0.27.0-v1.9.0 Shell Command Injection via ssh_libssh2 Backend | Advisories | VulnCheck
https://www.vulncheck.com/advisories/libgit2-shell-command-injection-via-ssh-libssh2-backendGitHub - libgit2/libgit2: A cross-platform, linkable library implementation of Git that you can use in your application. · GitHub
https://github.com/libgit2/libgit2Vendor Advisories for CVE-2026-5917(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Patch Availability(1)
| Vendor / Ecosystem | Fix (by version range) / Patch | Released | Source |
|---|---|---|---|
| ubuntu | libgit2-dev (0.26.0+dfsg.1-1.1ubuntu0.2+esm3) @ bionic | 2026-10-05 | ubuntu |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(3 across 3 ecosystems)
Debian:12(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| libgit2 | 1.5.1+ds-1 ... 1.9.7+ds-1 (32 versions) |
| — |
Debian:13(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| libgit2 | 1.9.0+ds-2 |
| — |
Debian:14(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| libgit2 | 1.9.0+ds-2 ... 1.9.6+ds-1 (14 versions) |
| — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
All Vendor Advisories
(1)
Every vendor that published an advisory referencing this CVE — pulled from our cve_vendor_advisories aggregation. Click any row for the vendor's original advisory page.
Data Freshness Timeline
(refreshed 49× in last 7d / 205× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 397 total refreshes for this CVE.
- 2026-10-05 14:52 UTCGHSA enrichment
- 2026-10-05 07:36 UTCVendor advisory
- 2026-10-05 07:36 UTCGHSA enrichment
- 2026-10-05 02:34 UTCVendor advisory
- 2026-10-05 02:34 UTCGHSA enrichment
- 2026-10-04 22:33 UTCVendor advisory
- 2026-10-04 22:33 UTCGHSA enrichment
- 2026-10-04 16:38 UTCVendor advisory
- 2026-10-04 16:38 UTCGHSA enrichment
- 2026-10-04 12:21 UTCVendor advisory
- 2026-10-04 12:21 UTCGHSA enrichment
- 2026-10-04 08:14 UTCVendor advisory
- 2026-10-04 08:14 UTCGHSA enrichment
- 2026-10-04 04:13 UTCVendor advisory
- 2026-10-04 04:12 UTCGHSA enrichment
- 2026-10-03 20:26 UTCEG score recompute
- 2026-10-03 20:26 UTCVendor advisory
- 2026-10-03 20:26 UTCGHSA enrichment
- 2026-10-03 14:26 UTCEPSS rescore
- 2026-10-03 02:12 UTCVendor advisory
- 2026-10-03 02:12 UTCGHSA enrichment
- 2026-10-02 22:14 UTCEG score recompute
- 2026-10-02 22:14 UTCVendor advisory
- 2026-10-02 22:14 UTCGHSA enrichment
- 2026-10-02 17:56 UTCEPSS rescore
Show 75 moreShow fewer
- 2026-10-02 16:18 UTCVendor advisory
- 2026-10-02 16:18 UTCGHSA enrichment
- 2026-10-02 08:25 UTCEG score recompute
- 2026-10-02 08:25 UTCVendor advisory
- 2026-10-02 08:25 UTCGHSA enrichment
- 2026-10-01 19:50 UTCEPSS rescore
- 2026-10-01 15:30 UTCEG score recompute
- 2026-10-01 15:30 UTCVendor advisory
- 2026-10-01 15:30 UTCGHSA enrichment
- 2026-10-01 14:01 UTCVendor advisory
- 2026-10-01 14:01 UTCGHSA enrichment
- 2026-10-01 10:05 UTCVendor advisory
- 2026-10-01 10:05 UTCGHSA enrichment
- 2026-10-01 06:09 UTCVendor advisory
- 2026-10-01 06:09 UTCGHSA enrichment
- 2026-10-01 02:13 UTCVendor advisory
- 2026-10-01 02:13 UTCGHSA enrichment
- 2026-09-30 22:00 UTCEG score recompute
- 2026-09-30 22:00 UTCVendor advisory
- 2026-09-30 22:00 UTCGHSA enrichment
- 2026-09-30 15:03 UTCEPSS rescore
- 2026-09-29 04:55 UTCEG score recompute
- 2026-09-29 04:55 UTCVendor advisory
- 2026-09-29 04:55 UTCGHSA enrichment
- 2026-09-28 13:52 UTCEG score recompute
- 2026-09-28 13:52 UTCVendor advisory
- 2026-09-28 13:52 UTCGHSA enrichment
- 2026-09-28 13:51 UTCEPSS rescore
- 2026-09-28 09:53 UTCVendor advisory
- 2026-09-28 09:53 UTCGHSA enrichment
- 2026-09-28 05:57 UTCVendor advisory
- 2026-09-28 05:57 UTCGHSA enrichment
- 2026-09-28 02:02 UTCVendor advisory
- 2026-09-28 02:02 UTCGHSA enrichment
- 2026-09-27 16:54 UTCEG score recompute
- 2026-09-27 16:54 UTCVendor advisory
- 2026-09-27 16:54 UTCGHSA enrichment
- 2026-09-27 09:59 UTCEG score recompute
- 2026-09-27 09:59 UTCVendor advisory
- 2026-09-27 09:59 UTCGHSA enrichment
- 2026-09-26 15:59 UTCEPSS rescore
- 2026-09-25 12:03 UTCVendor advisory
- 2026-09-25 12:03 UTCGHSA enrichment
- 2026-09-25 07:39 UTCVendor advisory
- 2026-09-25 07:39 UTCGHSA enrichment
- 2026-09-25 03:44 UTCVendor advisory
- 2026-09-25 03:44 UTCGHSA enrichment
- 2026-09-24 21:21 UTCEG score recompute
- 2026-09-24 21:21 UTCVendor advisory
- 2026-09-24 21:21 UTCGHSA enrichment
- 2026-09-24 12:42 UTCGHSA enrichment
- 2026-09-24 08:47 UTCVendor advisory
- 2026-09-24 08:46 UTCGHSA enrichment
- 2026-09-24 04:51 UTCVendor advisory
- 2026-09-24 04:51 UTCGHSA enrichment
- 2026-09-24 00:53 UTCVendor advisory
- 2026-09-24 00:53 UTCGHSA enrichment
- 2026-09-23 20:57 UTCEG score recompute
- 2026-09-23 20:57 UTCGHSA enrichment
- 2026-09-23 17:54 UTCEPSS rescore
- 2026-09-23 13:11 UTCGHSA enrichment
- 2026-09-23 08:56 UTCGHSA enrichment
- 2026-09-23 05:01 UTCGHSA enrichment
- 2026-09-23 01:05 UTCGHSA enrichment
- 2026-09-22 21:08 UTCEG score recompute
- 2026-09-22 21:08 UTCGHSA enrichment
- 2026-09-22 12:31 UTCGHSA enrichment
- 2026-09-22 08:19 UTCGHSA enrichment
- 2026-09-22 04:24 UTCGHSA enrichment
- 2026-09-22 00:20 UTCEG score recompute
- 2026-09-22 00:20 UTCGHSA enrichment
- 2026-09-21 20:15 UTCGHSA enrichment
- 2026-09-21 14:36 UTCGHSA enrichment
- 2026-09-21 10:29 UTCGHSA enrichment
- 2026-09-21 06:31 UTCGHSA enrichment
Related CVEs(same product + same CWE)
Same product
10 shownDebian:12:libgit2
Frequently asked(5)
What is CVE-2026-5917?
When was CVE-2026-5917 disclosed?
Is CVE-2026-5917 actively exploited?
What is the CVSS score of CVE-2026-5917?
How do I remediate CVE-2026-5917?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-5917
Is Your Infrastructure Affected by CVE-2026-5917?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.