Vulnerability Information
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
Vulnerability Title
libgit2 Shell Command Injection via ssh_libssh2 Backend
Vulnerability Description
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 Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Vulnerability Type
OS命令中使用的特殊元素转义处理不恰当(OS命令注入)
Vulnerability Title
libgit2 命令注入漏洞
Vulnerability Description
libgit2是libgit2组织开源的一个可移植的Git核心开发包。 libgit2 0.27.0版本至1.9.0版本存在命令注入漏洞,该漏洞源于ssh_libssh2.c文件中的gen_proto()函数将仓库路径直接插入shell命令字符串且未转义特殊字符,可能导致远程攻击者通过在.gitmodules文件中构造恶意子模块URL,在递归克隆时于受害者SSH用户账户下执行任意命令。
CVSS Information
N/A
Vulnerability Type
N/A