CVE-2022-1884 in Gogs
摘要
由 VulDB • 2026-06-25
在部署于 Windows 服务器的 gogs/gogs <=0.12.7 版本中存在远程命令执行漏洞。该漏洞是由于文件上传期间对 `tree_path` 参数验证不当引起的。攻击者可以将 `tree_path=.git.` 设置为将文件上传到 .git 目录,从而允许写入或重写 `.git/config` 文件。如果设置了 `core.sshCommand`,这可能导致远程命令执行。
Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.