جزئیات آسیبپذیری
CVE-2026-5917
libgit2 Shell Command Injection via ssh_libssh2 Backend
شرح رسمی (انگلیسی)
libgit2 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's shell to interpret injected commands under the victim's SSH user account.
امتیازهای CVSS
| امتیاز | نسخه | منبع | بردار |
|---|---|---|---|
| 8.6بالا | 4.0 | CVEProject cvelistV5 (CNA) (VulnCheck) | 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 |
| 8.8بالا | 3.1 | CVEProject cvelistV5 (CNA) (VulnCheck) | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
محصولات آسیبپذیر
| فروشنده | محصول | نسخهها | منبع |
|---|---|---|---|
| libgit2 | libgit2 | v < 1.8.7 | CVEProject cvelistV5 (CNA) |
| libgit2 | libgit2 | 1.9.0 ≤ v < 1.9.7 | CVEProject cvelistV5 (CNA) |
منابع و راهنماها
۲- https://github.com/libgit2/libgit2/security/advisories/GHSA-xqj4-2j5v-rr75 vendor-advisorypatch
- https://www.vulncheck.com/advisories/libgit2-shell-command-injection-via-ssh-libssh2-backend third-party-advisory
اطلاعات
- تاریخ انتشار
- ۱۴۰۵/۰۵/۲۱
- آخرین بهروزرسانی
- ۱۴۰۵/۰۷/۰۹
- وضعیت
- منتشرشده
- صادرکننده (CNA)
- VulnCheck
پیشبینی بهرهبرداری (EPSS)
ارزیابی SSVC (CISA)
- قابل خودکارسازی
- خیر
- وضعیت بهرهبرداری
- ندارد
- اثر فنی
- کامل
ضعفها (CWE)
- CWE-78Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')