{"id":"JLSEC-2026-1275","aliases":["JLSEC-2026-1275"],"related":["CVE-2026-5917","EUVD-2026-57011","GHSA-3gwr-xcwq-7892"],"kind":"vulnerability","state":"published","title":"libgit2 versions v0.27.0 through v1.9.0 built with the libssh2 SSH backend (USE_SSH=libssh2)...","summary":"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.","summaryFormat":"markdown","summarySource":"jlsec","descriptions":[{"lang":"en","text":"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.","format":"markdown","source":"jlsec"}],"published":"2026-08-13T06:24:20.501Z","modified":"2026-08-13T06:43:43.837Z","severity":{"scorer":"Julia Security Advisories","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","score":9.6,"rating":"CRITICAL"},"severities":[{"scorer":"Julia Security Advisories","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","score":9.6,"rating":"CRITICAL"},{"scorer":"Julia Security Advisories","scheme":"CVSS:4.0","vector":"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"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.9.1+0"}],"ecosystem":"Julia","package":"LibGit2_jll","purl":"pkg:julia/LibGit2_jll?uuid=e37daf67-58a4-590a-8e99-b0245dd2ffc5","source":"jlsec"}],"references":[{"url":"https://github.com/advisories/GHSA-3gwr-xcwq-7892","tags":["web"],"sources":["jlsec"]},{"url":"https://github.com/libgit2/libgit2","tags":["web"],"sources":["jlsec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-5917","tags":["web"],"sources":["jlsec"]},{"url":"https://www.vulncheck.com/advisories/libgit2-shell-command-injection-via-ssh-libssh2-backend","tags":["web"],"sources":["jlsec"]}],"credits":[],"sources":[{"source":"jlsec","name":"Julia Security Advisories","id":"JLSEC-2026-1275","url":"https://osv.dev/vulnerability/JLSEC-2026-1275","licence":"CC-BY-4.0","modified":"2026-08-13T06:43:43.837Z"}],"updatedAt":"2026-11-25T22:56:25.923Z"}