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

exploitDog

github логотип

GHSA-6635-c626-vj4r

Опубликовано: 01 апр. 2022
Источник: github
Github: Прошло ревью
CVSS3: 9.8

Описание

Command Injection Vulnerability with Mercurial in VCS

URLs and local file paths passed to the Mercurial (hg) APIs that are specially crafted can contain commands which are executed by Mercurial if it is installed on the host operating system. The vcs package uses the underly version control system, in this case hg, to implement the needed functionality. When hg is executed, argument strings are passed to hg in a way that additional flags can be set. The additional flags can be used to perform a command injection. Other version control systems with an implemented interface may also be vulnerable. The issue has been fixed in version 1.13.2. A work around is to sanitize data passed to the vcs package APIs to ensure it does not contain commands or unexpected data. This is important for user input data that is passed directly to the package APIs.

Пакеты

Наименование

github.com/Masterminds/vcs

go
Затронутые версииВерсия исправления

< 1.13.2

1.13.2

EPSS

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

9.8 Critical

CVSS3

Дефекты

CWE-77
CWE-88

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

CVSS3: 9.8
redhat
почти 3 года назад

The package github.com/masterminds/vcs before 1.13.3 are vulnerable to Command Injection via argument injection. When hg is executed, argument strings are passed to hg in a way that additional flags can be set. The additional flags can be used to perform a command injection.

CVSS3: 8.1
nvd
почти 4 года назад

The package github.com/masterminds/vcs before 1.13.3 are vulnerable to Command Injection via argument injection. When hg is executed, argument strings are passed to hg in a way that additional flags can be set. The additional flags can be used to perform a command injection.

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

Command Injection

EPSS

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

9.8 Critical

CVSS3

Дефекты

CWE-77
CWE-88