{"id":"JLSEC-2026-1275","summary":"libgit2 versions v0.27.0 through v1.9.0 built with the libssh2 SSH backend (USE_SSH=libssh2)...","details":"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.","modified":"2026-08-13T06:43:43.837084312Z","published":"2026-08-13T06:24:20.501Z","upstream":["CVE-2026-5917","EUVD-2026-57011","GHSA-3gwr-xcwq-7892"],"database_specific":{"sources":[{"modified":"2026-08-12T13:17:23.147Z","published":"2026-08-11T22:17:37.390Z","url":"https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-5917","html_url":"https://nvd.nist.gov/vuln/detail/CVE-2026-5917","database_specific":{"status":"Received"},"id":"CVE-2026-5917","imported":"2026-08-13T05:42:06.268Z"},{"published":"2026-08-12T00:31:11Z","url":"https://api.github.com/advisories/GHSA-3gwr-xcwq-7892","html_url":"https://github.com/advisories/GHSA-3gwr-xcwq-7892","id":"GHSA-3gwr-xcwq-7892","imported":"2026-08-13T05:42:06.474Z","modified":"2026-08-12T00:31:11Z"},{"imported":"2026-08-13T05:42:04.479Z","modified":"2026-08-12T12:48:30Z","published":"2026-08-11T21:40:29Z","url":"https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-57011","html_url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-57011","id":"EUVD-2026-57011"}],"license":"CC-BY-4.0"},"references":[{"type":"WEB","url":"https://github.com/advisories/GHSA-3gwr-xcwq-7892"},{"type":"WEB","url":"https://github.com/libgit2/libgit2"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-5917"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/libgit2-shell-command-injection-via-ssh-libssh2-backend"}],"affected":[{"package":{"name":"LibGit2_jll","ecosystem":"Julia","purl":"pkg:julia/LibGit2_jll?uuid=e37daf67-58a4-590a-8e99-b0245dd2ffc5"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.9.1+0"}]}],"database_specific":{"source":"https://github.com/JuliaLang/SecurityAdvisories.jl/tree/generated/osv/2026/JLSEC-2026-1275.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H"},{"type":"CVSS_V4","score":"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"}]}