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

exploitDog

github логотип

GHSA-jmp2-wc4p-wfh2

Опубликовано: 05 мая 2023
Источник: github
Github: Прошло ревью
CVSS3: 3

Описание

Mutagen list and monitor operations do not neutralize control characters in text controlled by remote endpoints

Impact

Mutagen command line operations, as well as the log output from mutagen daemon run, are susceptible to control characters that could be provided by remote endpoints. This can cause terminal corruption, either intentional or unintentional, if these characters are present in error messages, file paths/names, and/or log output. This could be used as an attack vector if synchronizing with an untrusted remote endpoint, synchronizing files not under control of the user, or forwarding to/from an untrusted remote endpoint. On very old systems with terminals susceptible to issues such as CVE-2003-0069, the issue could theoretically cause code execution.

Patches

The problem has been patched in Mutagen v0.16.6 and v0.17.1. Earlier versions of Mutagen are no longer supported and will not be patched. Versions of Mutagen after v0.18.0 will also have the patch merged.

One caveat is that the templating functionality of Mutagen's list and monitor commands has been only partially patched. In particular, the json template function already provided escaping and no patching was necessary. However, raw template output has been left unescaped because this raw output may be necessary for commands which embed Mutagen. To aid these commands, a new shellSanitize template function has been added which provides control character neutralization in strings.

Workarounds

Avoiding synchronization of untrusted files or interaction with untrusted remote endpoints should mitigate any risk.

References

A similar issue can be seen in kubernetes/kubernetes#101695.

Пакеты

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

github.com/mutagen-io/mutagen

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

< 0.16.6

0.16.6

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

github.com/mutagen-io/mutagen-compose

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

< 0.17.1

0.17.1

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

github.com/mutagen-io/mutagen

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

>= 0.17.0, < 0.17.1

0.17.1

EPSS

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

3 Low

CVSS3

Дефекты

CWE-116
CWE-150

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

CVSS3: 3
nvd
больше 2 лет назад

Mutagen provides real-time file synchronization and flexible network forwarding for developers. Prior to versions 0.16.6 and 0.17.1 in `mutagen` and prior to version 0.17.1 in `mutagen-compose`, Mutagen `list` and `monitor` commands are susceptible to control characters that could be provided by remote endpoints. This could cause terminal corruption, either intentional or unintentional, if these characters were present in error messages or file paths/names. This could be used as an attack vector if synchronizing with an untrusted remote endpoint, synchronizing files not under control of the user, or forwarding to/from an untrusted remote endpoint. On very old systems with terminals susceptible to issues such as CVE-2003-0069, the issue could theoretically cause code execution. The problem has been patched in Mutagen v0.16.6 and v0.17.1. Earlier versions of Mutagen are no longer supported and will not be patched. Versions of Mutagen after v0.18.0 will also have the patch merged. As

EPSS

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

3 Low

CVSS3

Дефекты

CWE-116
CWE-150