CVE-2026-5917
Last modified
CVE-2026-5917 is a critical-severity vulnerability rated 9.6/10 on the CVSS scale. libgit2 versions v0.27.0 through v1.9.0 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..
Description
libgit2 versions v0.27.0 through v1.9.0 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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| libgit2 | libgit2 | >= 0.27.0, <= 1.9.0 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-5917?
How severe is CVE-2026-5917?
How do I fix CVE-2026-5917?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-59152LangSmith Client SDKs provide SDK's for interacting with the…5
- CVE-2026-59153Anki is a program for creating and reviewing flashcards. Pri…2.1
- CVE-2026-59154Wekan is open source kanban built with Meteor. Prior to 9.64…4.3
- CVE-2026-59155Nezha Monitoring is a self-hostable, lightweight, servers an…6.9
- CVE-2026-59161Excelize is a Go language library for reading and writing Mi…7.5
- CVE-2026-59162Excelize is a Go language library for reading and writing Mi…7.5
- CVE-2026-59173Uncontrolled Resource Consumption vulnerability in Apache Tr…7.5
- CVE-2026-5918Inappropriate implementation in Navigation in Google Chrome …4.3
- CVE-2026-59180Apprise is an open source library which allows you to send a…3.1
- CVE-2026-5919Insufficient validation of untrusted input in WebSockets in …6.5
- CVE-2026-59190grav-plugin-admin is an HTML user interface that provides a …8.7
- CVE-2026-59193Grav is a file-based Web platform. Prior to 2.0.0, an authen…4.9
Are you affected by CVE-2026-5917?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
