漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
libgit2 v0.27.0-v1.9.0 Shell Command Injection via ssh_libssh2 Backend
Vulnerability Description
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.
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/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