CVE-2023-22809
high-risk
Published 2023-01-18
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.
Do I need to act?
!
48.0% chance of exploitation in next 30 days
EPSS score — higher than 52% of all CVEs
-
Not on CISA KEV list
No confirmed active exploitation reported to CISA
!
1 public exploit available
?
Patch status unknown
Check vendor advisories for fix availability and mitigation guidance
7
CVSS 7.8/10
High
LOCAL
/ LOW complexity
Affected Products (8)
Affected Vendors
References (28)
Third Party Advisory
http://packetstormsecurity.com/files/171644/sudo-1.9.12p1-Privilege-Escalation.h...
Third Party Advisory
http://packetstormsecurity.com/files/172509/Sudoedit-Extra-Arguments-Privilege-E...
Third Party Advisory
http://packetstormsecurity.com/files/174234/Cisco-ThousandEyes-Enterprise-Agent-...
Mailing List
http://seclists.org/fulldisclosure/2023/Aug/21
Third Party Advisory
https://security.gentoo.org/glsa/202305-12
Third Party Advisory
https://security.netapp.com/advisory/ntap-20230127-0015/
Third Party Advisory
https://support.apple.com/kb/HT213758
Third Party Advisory
https://www.debian.org/security/2023/dsa-5321
Third Party Advisory
http://packetstormsecurity.com/files/171644/sudo-1.9.12p1-Privilege-Escalation.h...
Third Party Advisory
http://packetstormsecurity.com/files/172509/Sudoedit-Extra-Arguments-Privilege-E...
Third Party Advisory
http://packetstormsecurity.com/files/174234/Cisco-ThousandEyes-Enterprise-Agent-...
Mailing List
http://seclists.org/fulldisclosure/2023/Aug/21
and 8 more references
56
/ 100
high-risk
Severity
24/34 · High
Exploitability
18/34 · Moderate
Exposure
14/34 · Moderate