Sudoedit Feature Mishandles User-Provided Environment Variables, Leading to Privilege Escalation
CVE-2023-22809
Key Information:
- Vendor
Sudo Project
- Status
- Sudo
- CVE ID
- CVE ID:
- CVE-2023-22809
- Vendor
- CVE Published:
- 18 January 2023
Timeline
Exploit known 200 days after it was published
- π°
First article discovered by Microsoft
- π‘
Public PoC available
- πΎ
Exploit known to exist
Vulnerability published
Vulnerability Reserved
Badges
How risky is it?
- No: Needs local access
- Yes: Public exploit code (10 proof-of-concepts)
- No: Not on CISA's exploited list
- No: No ransomware use seen
Our verdict
Patch this week
Exploitation is likely. Prioritise the fix.
What to do
1Check the vendor's fix
No fixed version is recorded yet. The vendor advisory is the authoritative source for patches.
Read the vendor advisory β2Look for signs of compromise
Exploit code is public, so check logs on exposed Sudo systems for unusual requests or new processes from before you patched. The 10 public proof-of-concepts show what an attack looks like.
3Why it's rated "Patch this week"
- Exploit code is public, so attacks are easy to copy.
- EPSS gives it a 55.3% chance of exploitation in the next 30 days.
- Its CVSS severity is high (7.8).
What is CVE-2023-22809?
The first article discusses a vulnerability in the Sudo project that mishandles user-provided environment variables, leading to privilege escalation. This affects versions 1.8.0 through 1.9.12.p1 of Sudo, and it has been exploited in the wild. In the second article, a set of memory corruption vulnerabilities in the ncurses library could allow attackers to elevate privileges and run code in the targeted program's context or perform other malicious actions. Microsoft discovered these vulnerabilities and worked with relevant maintainers to deploy fixes and encourage users of ncurses to update their instances and systems.
Exploit Proof of Concept (PoC)
PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.
News Articles
CVE-2023-22809 Impact of Sudo Vulnerability CVE-2023-22809
Palo Alto Networks Security Advisory: CVE-2023-22809 Impact of Sudo Vulnerability CVE-2023-22809 The Palo Alto Networks Product Security Assurance team has evaluated the sudo software vulnerability CVE-2023-22809 and has determined that the following Palo Alto Networks products do not expose the sud...
nabbisen β DEV Community Profile
Founder of Scqr Inc. (scqr.net) Apps dev and c/s monk. IT ο½½οΎοΎοΎο½ΌοΎο½½οΎ. Interested: Social relationships. OpenBSD/Rust etc.
Uncursing the ncurses: Memory corruption vulnerabilities found in library | Microsoft Security Blog
A set of memory corruption vulnerabilities in the ncurses library could have allowed attackers to chain the vulnerabilities to elevate privileges and run code in the targeted program's context or perform other malicious actions.
References
More Sudo Project Vulnerabilities
Sudo Command Execution Flaw in Sudo Before Version 1.9.17p1
Sudo Vulnerability in Chroot Mode Affects Local User Access
Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities Β· Report a correction

