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.
{
"sources": [
{
"modified": "2026-08-12T13:17:23.147Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-5917",
"imported": "2026-08-13T05:42:06.268Z",
"database_specific": {
"status": "Received"
},
"id": "CVE-2026-5917",
"published": "2026-08-11T22:17:37.390Z",
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-5917"
},
{
"html_url": "https://github.com/advisories/GHSA-3gwr-xcwq-7892",
"modified": "2026-08-12T00:31:11Z",
"imported": "2026-08-13T05:42:06.474Z",
"published": "2026-08-12T00:31:11Z",
"id": "GHSA-3gwr-xcwq-7892",
"url": "https://api.github.com/advisories/GHSA-3gwr-xcwq-7892"
},
{
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-57011",
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-57011",
"imported": "2026-08-13T05:42:04.479Z",
"published": "2026-08-11T21:40:29Z",
"id": "EUVD-2026-57011",
"modified": "2026-08-12T12:48:30Z"
}
],
"license": "CC-BY-4.0"
}