CVE-2023-22809

HIGHCVSS 7.8/10EPSS 55.37%

Last modified

CVE-2023-22809 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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. EPSS estimates a 55.37% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
7.8/10

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

EPSS Probability
55.37%

98.9th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
Sudo ProjectSudo>= 1.8.0, < 1.9.12
Sudo ProjectSudo1.9.12
DebianDebian Linux10.0
DebianDebian Linux11.0
FedoraprojectFedora36
FedoraprojectFedora37
AppleMacos< 13.4

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is CVE-2023-22809?
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.
How severe is CVE-2023-22809?
CVE-2023-22809 has a CVSS score of 7.8/10 (HIGH severity). The EPSS model estimates a 55.37% probability of exploitation in the next 30 days.
How do I fix CVE-2023-22809?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2023-22809?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST