Name | CVE-2023-22809 |
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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-3272-1, DSA-5321-1 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
sudo (PTS) | bullseye (security), bullseye | 1.9.5p2-3+deb11u1 | fixed |
bookworm | 1.9.13p3-1+deb12u1 | fixed | |
sid, trixie | 1.9.16p1-1 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
sudo | source | buster | 1.8.27-1+deb10u5 | DLA-3272-1 | ||
sudo | source | bullseye | 1.9.5p2-3+deb11u1 | DSA-5321-1 | ||
sudo | source | (unstable) | 1.9.12p2-1 |
https://www.sudo.ws/security/advisories/sudoedit_any/
https://github.com/sudo-project/sudo/commit/0274a4f3b403162a37a10f199c989f3727ed3ad4
https://www.synacktiv.com/sites/default/files/2023-01/sudo-CVE-2023-22809.pdf
https://www.openwall.com/lists/oss-security/2023/01/19/1