CVE-2023-22809

High

Description

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.

SeverityHigh
CVSS7.8
Exploit probability—
ProductSudo
PublishedJan 18, 2023
First seenJan 18, 2023

How to fix

Affected products

ProductAffected versionsFixed in
sudo_project sudo1.8.0 ≤ v < 1.9.12, 1.9.121.9.12
debian debian_linux10.0, 11.0—
fedoraproject fedora36, 37—
apple macosv < 13.413.4

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.