Vulnerability CVE-2023-22809: Information
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.
Severity: HIGH (7.8) Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Fixed packages
Package name | Branch | Fixed in version | Version from repository | Errata ID | Task # | State |
---|---|---|---|---|---|---|
sudo | sisyphus | 1.9.12p2-alt1 | 1.9.15p5-alt1 | ALT-PU-2023-1110-1 | 313931 | Fixed |
sudo | sisyphus_e2k | 1.9.12p2-alt1 | 1.9.15p5-alt1 | ALT-PU-2023-2297-1 | - | Fixed |
sudo | sisyphus_riscv64 | 1.9.12p2-alt1 | 1.9.15p5-alt1 | ALT-PU-2023-2322-1 | - | Fixed |
sudo | p10 | 1.9.12p2-alt1 | 1.9.15p1-alt1 | ALT-PU-2023-1147-1 | 313932 | Fixed |
sudo | p10_e2k | 1.9.12p2-alt1 | 1.9.15p1-alt1 | ALT-PU-2023-2389-1 | - | Fixed |
sudo | p9 | 1.9.13p2-alt1 | 1.9.13p2-alt1 | ALT-PU-2023-1657-1 | 318844 | Fixed |
sudo | p9_e2k | 1.9.13p2-alt1 | 1.9.13p2-alt1 | ALT-PU-2023-5373-1 | - | Fixed |
sudo | c10f1 | 1.9.12p2-alt1 | 1.9.15p1-alt1 | ALT-PU-2023-1147-1 | 313932 | Fixed |
sudo | c9f2 | 1.9.12p2-alt0.c9f2.1 | 1.9.15p5-alt0.c9f2.1 | ALT-PU-2023-1121-1 | 313971 | Fixed |
sudo | p11 | 1.9.12p2-alt1 | 1.9.15p5-alt1 | ALT-PU-2023-1110-1 | 313931 | Fixed |