Уязвимость повышения уровня доступа в Sudo из-за некорректной обработки аргументов в пользовательских переменных среды
Описание
В Sudo до версии 1.9.12p2 функция sudoedit
(или -e
) некорректно обрабатывает дополнительные аргументы, передаваемые в пользовательских переменных среды (SUDO_EDITOR
, VISUAL
и EDITOR
), что позволяет злоумышленнику добавлять произвольные записи в список файлов для обработки. Это может привести к повышению уровня доступа. Проблема возникает из-за того, что пользовательский редактор может содержать аргумент "--", который обходит механизм защиты, например, значение EDITOR='vim -- /path/to/extra/file'
.
Затронутые версии ПО
- Sudo с 1.8.0 до 1.9.12.p1
Тип уязвимости
Повышение уровня доступа
Ссылки
- Third Party AdvisoryVDB Entry
- Third Party AdvisoryVDB Entry
- Third Party AdvisoryVDB Entry
- Mailing ListThird Party Advisory
- ExploitMailing ListThird Party Advisory
- Mailing ListThird Party Advisory
- Mailing List
- Mailing List
- Third Party Advisory
- Third Party Advisory
- Third Party Advisory
- Third Party Advisory
- ExploitMitigationVendor Advisory
- ExploitMitigationTechnical DescriptionThird Party Advisory
- Third Party AdvisoryVDB Entry
- Third Party AdvisoryVDB Entry
- Third Party AdvisoryVDB Entry
- Mailing ListThird Party Advisory
- ExploitMailing ListThird Party Advisory
- Mailing ListThird Party Advisory
Уязвимые конфигурации
Одно из
Одно из
Одно из
EPSS
7.8 High
CVSS3
Дефекты
Связанные уязвимости
In Sudo before 1.9.12p2, the sudoedit (aka -e) feature mishandles extra arguments passed in the user-provided environment variables (SUDO_EDITOR, VISUAL, and EDITOR), allowing a local attacker to append arbitrary entries to the list of files to process. This can lead to privilege escalation. Affected versions are 1.8.0 through 1.9.12.p1. The problem exists because a user-specified editor may contain a "--" argument that defeats a protection mechanism, e.g., an EDITOR='vim -- /path/to/extra/file' value.
In Sudo before 1.9.12p2, the sudoedit (aka -e) feature mishandles extra arguments passed in the user-provided environment variables (SUDO_EDITOR, VISUAL, and EDITOR), allowing a local attacker to append arbitrary entries to the list of files to process. This can lead to privilege escalation. Affected versions are 1.8.0 through 1.9.12.p1. The problem exists because a user-specified editor may contain a "--" argument that defeats a protection mechanism, e.g., an EDITOR='vim -- /path/to/extra/file' value.
In Sudo before 1.9.12p2, the sudoedit (aka -e) feature mishandles extr ...
EPSS
7.8 High
CVSS3