Vulnerabilities · 2023 · Sudo Project
CVE-2023-22809
Sudo Project Sudo vulnerability
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.
Affected products
Sudo, Debian Linux, Fedora, Macos. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Sudo Project Sudo runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- www.sudo.ws/security/advisories/sudoedit_any/ · Exploit
- www.synacktiv.com/sites/default/files/2023-01/sudo-CVE-2023-22809.pdf · Exploit
- packetstormsecurity.com/files/171644/sudo-1.9.12p1-Privilege-Escalation.html · Third Party Advisory
- packetstormsecurity.com/files/172509/Sudoedit-Extra-Arguments-Privilege-Escalation.html · Third Party Advisory
- packetstormsecurity.com/files/174234/Cisco-ThousandEyes-Enterprise-Agent-Virtual-Appliance · Third Party Advisory
- seclists.org/fulldisclosure/2023/Aug/21 · Third Party Advisory
- www.openwall.com/lists/oss-security/2023/01/19/1 · Exploit
- lists.debian.org/debian-lts-announce/2023/01/msg00012.html · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2023-22809
- cve.org/CVERecord?id=CVE-2023-22809
More vulnerabilities in Sudo Project products
CVE-2025-32463CVE-2025-32462CVE-2023-42465CVE-2023-28487CVE-2023-28486CVE-2023-27320CVE-2023-7090CVE-2022-43995All 23
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.