{"id":"OESA-2026-4621","summary":"libgit2 security update","details":"libgit2 is a portable, pure C implementation of the Git core methods provided as a re-entrant linkable library with a solid API, allowing you to write native speed custom Git applications in any language which supports C bindings.\r\n\r\nSecurity Fix(es):\n\nlibgit2 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&apos;s shell to interpret injected commands under the victim&apos;s SSH user account.(CVE-2026-5917)","modified":"2026-10-29T09:15:40.269229679Z","published":"2026-10-29T09:03:41Z","upstream":["CVE-2026-5917"],"database_specific":{"severity":"High"},"references":[{"type":"ADVISORY","url":"https://www.openeuler.org/zh/security/security-bulletins/detail/?id=openEuler-SA-2026-4621"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-5917"}],"affected":[{"package":{"name":"libgit2","ecosystem":"openEuler:24.03-LTS-SP1","purl":"pkg:rpm/openEuler/libgit2&distro=openEuler-24.03-LTS-SP1"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.7.2-3.oe2403sp1"}]}],"ecosystem_specific":{"x86_64":["libgit2-1.7.2-3.oe2403sp1.x86_64.rpm","libgit2-debuginfo-1.7.2-3.oe2403sp1.x86_64.rpm","libgit2-debugsource-1.7.2-3.oe2403sp1.x86_64.rpm","libgit2-devel-1.7.2-3.oe2403sp1.x86_64.rpm"],"aarch64":["libgit2-1.7.2-3.oe2403sp1.aarch64.rpm","libgit2-debuginfo-1.7.2-3.oe2403sp1.aarch64.rpm","libgit2-debugsource-1.7.2-3.oe2403sp1.aarch64.rpm","libgit2-devel-1.7.2-3.oe2403sp1.aarch64.rpm"],"src":["libgit2-1.7.2-3.oe2403sp1.src.rpm"]},"database_specific":{"source":"https://repo.openeuler.org/security/data/osv/OESA-2026-4621.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/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"}]}