CVE-2023-22809

Severity CVSS v4.0:
Pending analysis
Type:
CWE-269 Improper Privilege Management
Publication date:
18/01/2023
Last modified:
04/04/2025

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.

Vulnerable products and versions

CPE From Up to
cpe:2.3:a:sudo_project:sudo:*:*:*:*:*:*:*:* 1.8.0 (including) 1.9.12 (excluding)
cpe:2.3:a:sudo_project:sudo:1.9.12:-:*:*:*:*:*:*
cpe:2.3:a:sudo_project:sudo:1.9.12:p1:*:*:*:*:*:*
cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*
cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*
cpe:2.3:o:apple:macos:*:*:*:*:*:*:*:* 13.4 (excluding)


References to Advisories, Solutions, and Tools