Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

redhat логотип

CVE-2026-45570

Опубликовано: 27 мая 2026
Источник: redhat
CVSS3: 6.3
EPSS Низкий

Описание

go-git is an extensible git implementation library written in pure Go. Prior to 5.19.1 and 6.0.0-alpha.4, go-git's SSH transport constructs the remote exec command by wrapping the repository path in single quotes without escaping single quotes embedded inside the path. A repository path containing a single quote can therefore break out of the quoted region in the exec command and be appended as additional shell tokens. This vulnerability is fixed in 5.19.1 and 6.0.0-alpha.4.

A flaw was found in go-git, a library used for Git operations. The component responsible for secure shell (SSH) communication does not correctly handle special characters in repository paths. This oversight allows a remote attacker to manipulate the command executed on the server by including a specially crafted repository path. This could result in the appending of additional shell commands, potentially leading to unintended actions on the system.

Отчет

Moderate: A shell command injection flaw in go-git's SSH transport allows an attacker to execute arbitrary commands by providing a specially crafted repository path. This affects Red Hat Advanced Cluster Management for Kubernetes, where go-git is used for repository operations, potentially leading to compromise of the underlying system if an attacker can control the repository path. The impact is moderate due to the prerequisite of controlling the repository path.

Дополнительная информация

Статус:

Moderate
Дефект:
CWE-88
https://bugzilla.redhat.com/show_bug.cgi?id=2482224github.com/go-git/go-git: go-git: Shell command injection in SSH transport

EPSS

Процентиль: 31%
0.00365
Низкий

6.3 Medium

CVSS3

Связанные уязвимости

CVSS3: 9.6
ubuntu
6 месяцев назад

go-git is an extensible git implementation library written in pure Go. Prior to 5.19.1 and 6.0.0-alpha.4, go-git's SSH transport constructs the remote exec command by wrapping the repository path in single quotes without escaping single quotes embedded inside the path. A repository path containing a single quote can therefore break out of the quoted region in the exec command and be appended as additional shell tokens. This vulnerability is fixed in 5.19.1 and 6.0.0-alpha.4.

CVSS3: 9.6
nvd
6 месяцев назад

go-git is an extensible git implementation library written in pure Go. Prior to 5.19.1 and 6.0.0-alpha.4, go-git's SSH transport constructs the remote exec command by wrapping the repository path in single quotes without escaping single quotes embedded inside the path. A repository path containing a single quote can therefore break out of the quoted region in the exec command and be appended as additional shell tokens. This vulnerability is fixed in 5.19.1 and 6.0.0-alpha.4.

msrc
6 месяцев назад

go-git: Improper single-quote escaping in go-git SSH transport

CVSS3: 9.6
debian
6 месяцев назад

go-git is an extensible git implementation library written in pure Go. ...

CVSS3: 9.6
redos
8 дней назад

Уязвимость alloy

EPSS

Процентиль: 31%
0.00365
Низкий

6.3 Medium

CVSS3