CVE-2023-22809

sudo: arbitrary file write with privileges of the RunAs user

Published Jan 18, 2023 CVSS 3.1 · 7.8 High EPSS 55.4% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-3272-1 sudo security update
Debian DSA Debian DSA DSA-5321-1 sudo security update
Ubuntu USN Ubuntu USN USN-5811-1 Sudo vulnerabilities
Ubuntu USN Ubuntu USN USN-5811-2 Sudo vulnerability
Ubuntu USN Ubuntu USN USN-5811-3 Sudo vulnerability
History
Type Values Removed Values Added
Metrics epss

{'score': 0.50157}

epss

{'score': 0.5074}

Type Values Removed Values Added
Metrics epss

{'score': 0.43244}

epss

{'score': 0.50157}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}