In Sudo prior to 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 malicious user to append arbitrary entries to the list of files to process. This can lead to privilege escalation. Affected versions are 1.8.0 up to and including 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.
Vulnerable Product | Search on Vulmon | Subscribe to Product |
---|---|---|
sudo project sudo 1.9.12 |
||
sudo project sudo |
||
debian debian linux 10.0 |
||
debian debian linux 11.0 |
||
fedoraproject fedora 37 |