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

exploitDog

github логотип

GHSA-vx24-x4mv-vwr5

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

Описание

Starship vulnerable to shell injection via undocumented, unpredictable shell expansion in custom commands

Description

Starship is a cross-shell prompt. Starting in version 1.0.0 and prior to version 1.20.0, undocumented and unpredictable shell expansion and/or quoting rules make it easily to accidentally cause shell injection when using custom commands with starship in bash. Version 1.20.0 fixes the vulnerability.

PoC

Have some custom command which prints out information from a potentially untrusted/unverified source.

[custom.git_commit_name] command = 'git show -s --format="%<(25,mtrunc)%s"' style = "italic" when = true

Impact

This issue only affects users with custom commands, so the scope is limited, and without knowledge of others' commands, it could be hard to successfully target someone.

Пакеты

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

starship

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

>= 1.0.0, <= 1.19.0

1.20.0

EPSS

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

7.4 High

CVSS3

Дефекты

CWE-77
CWE-78

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

CVSS3: 7.4
nvd
больше 1 года назад

Starship is a cross-shell prompt. Starting in version 1.0.0 and prior to version 1.20.0, undocumented and unpredictable shell expansion and/or quoting rules make it easily to accidentally cause shell injection when using custom commands with starship in bash. This issue only affects users with custom commands, so the scope is limited, and without knowledge of others' commands, it could be hard to successfully target someone. Version 1.20.0 fixes the vulnerability.

CVSS3: 7.4
debian
больше 1 года назад

Starship is a cross-shell prompt. Starting in version 1.0.0 and prior ...

EPSS

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

7.4 High

CVSS3

Дефекты

CWE-77
CWE-78