Sudoedit Feature Mishandles User-Provided Environment Variables, Leading to Privilege Escalation

Patch this weekFull system takeover with local access.
7.8HIGH

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

πŸ‘Ύ Exploit Exists🟑 Public PoC🟣 EPSS 55%πŸ“° News Worthy

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

favicon imagePalo Alto Networks Security Advisories

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...

favicon imageDEV Community

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

Sudo Command Execution Flaw in Sudo Before Version 1.9.17p1

CVE-2025-32462
Sudo ProjectSudoπŸ˜„πŸ‘Ύ2.8LOW

Sudo Vulnerability in Chroot Mode Affects Local User Access

CVE-2025-32463
Sudo ProjectSudoπŸ”₯πŸ˜„πŸ‘Ύ9.3CRITICAL
View more Sudo Project vulnerabilities...

Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities Β· Report a correction

EPSS Score

55% chance of being exploited in the next 30 days.

CVSS V3.1

Score:
7.8
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Local
Attack Complexity:
Low
Privileges Required:
Low
User Interaction:
None
Scope:
Unchanged
.