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
02 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
03 Exploitation and scoring
- Exploitation
- Assessed, none found. CISA's assessment recorded neither public exploit code nor evidence of exploitation when it was made.
- SSVC decision
- ExploitationnoneCISA recorded no public exploit code and no evidence of exploitation.
- AutomatablenoAt least one step from reconnaissance to exploitation cannot be reliably automated.
- Technical ImpacttotalSuccessful exploitation gives total control of the vulnerable component.
- EPSS probability
- 55.36% probability of exploitation activity in the next 30 days.
- EPSS percentile
- Equal to or higher than the score of 98.9% of scored records. A rank, not a probability.
- NVD base score
- 7.8 (CVSS v3.x), scored by the NVD independently of the CNA.
- NVD CVSS vector
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- NVD analysis status
- Modified. NVD last modified this record on 2026-06-17.
- Red Hat severity
- Important. Red Hat's rating for its own products, not a CVSS rating.
Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.
04 Metadata
- Published
- 2023-01-18 00:00Z3 YR AGO
- Last updated
- 2025-04-04 15:45Z1 YR AGO
- Reserved
- 2023-01-06
- Assigning CNA
- mitre
- Record state
- PUBLISHED
- Severity
- High (CVSS 7.8)
- CNA CVSS vector
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-269Improper Privilege ManagementClass
- Data version
- 5.1
- Document digest
- 7850270590c2417c74b7c733be9f1ed0d237a879fa76de3f08da7eb56d5520b9
05 Affected products
06 References
- www.synacktiv.comhttps://www.synacktiv.com/sites/default/files/2023-01/sudo-CVE-2023-22809.pdf
- www.sudo.wshttps://www.sudo.ws/security/advisories/sudoedit_any/
- lists.debian.org[debian-lts-announce] 20230118 [SECURITY] [DLA 3272-1] sudo security updatehttps://lists.debian.org/debian-lts-announce/2023/01/msg00012.html
- www.debian.orgDSA-5321https://www.debian.org/security/2023/dsa-5321
- www.openwall.com[oss-security] 20230119 CVE-2023-22809: Sudoedit can edit arbitrary fileshttp://www.openwall.com/lists/oss-security/2023/01/19/1
- lists.fedoraproject.orgFEDORA-2023-9078f609e6https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2QDGFCGAV5QRJCE6IXRXIS4XJHS57DDH/
- security.netapp.comhttps://security.netapp.com/advisory/ntap-20230127-0015/
- lists.fedoraproject.orgFEDORA-2023-298c136eeehttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G4YNBTTKTRT2ME3NTSXAPTOKYUE47XHZ/
- packetstormsecurity.comhttp://packetstormsecurity.com/files/171644/sudo-1.9.12p1-Privilege-Escalation.html
- security.gentoo.orgGLSA-202305-12https://security.gentoo.org/glsa/202305-12
- support.apple.comhttps://support.apple.com/kb/HT213758
- packetstormsecurity.comhttp://packetstormsecurity.com/files/172509/Sudoedit-Extra-Arguments-Privilege-Escalation.html
- seclists.org20230817 KL-001-2023-003: Cisco ThousandEyes Enterprise Agent Virtual Appliance Arbitrary File Modification via sudoedithttp://seclists.org/fulldisclosure/2023/Aug/21
- packetstormsecurity.comhttp://packetstormsecurity.com/files/174234/Cisco-ThousandEyes-Enterprise-Agent-Virtual-Appliance-Arbitrary-File-Modification.html
07 Fixed in
AlmaLinux 8
- sudo Fixed in 1.8.29-8.el8_7.1
Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
AlmaLinux 9
- sudo Fixed in 1.9.5p2-7.el9_1.1
- sudo-python-plugin Fixed in 1.9.5p2-7.el9_1.1
Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
CloudLinux 8
- sudo Fixed in 1.8.29-8.el8_7.1
Derived from AlmaLinux 8. Partial coverage: only packages taken from AlmaLinux 8 are listed.
Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
CloudLinux 9
- sudo Fixed in 1.9.5p2-7.el9_1.1
- sudo-python-plugin Fixed in 1.9.5p2-7.el9_1.1
Derived from AlmaLinux 9. Partial coverage: only packages taken from AlmaLinux 9 are listed.
Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
Debian 12
- sudo Fixed in 1.9.12p2-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 13
- sudo Fixed in 1.9.12p2-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 14
- sudo Fixed in 1.9.12p2-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 18.04 LTS
- sudo Fixed in 1.8.21p2-3ubuntu1.5
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 20.04 LTS
- sudo Fixed in 1.8.31-1ubuntu1.4
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 22.04 LTS
- sudo Fixed in 1.9.9-1ubuntu2.2
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 14.04 LTS
- sudo Fixed in 1.8.9p5-1ubuntu1.5+esm7Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 16.04 LTS
- sudo Fixed in 1.8.16-0ubuntu1.10+esm1Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.