# CVE-2023-22809: In Sudo before 1.9.12p2, the sudoedit (aka -e) feature mishandles extra arguments passed in the user-provided environment variables (SUDOED…

- Severity: High 7.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 55.4%, higher than 99% of CVEs (2026-12-02)
- Public exploit code or proof of concept: 6 links below, marked "exploit"
- Published: 2023-01-18T00:00:00.000Z
- Modified: 2026-06-17T05:36:13.303Z
- Weaknesses: CWE-269
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: mitre

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- sudo_project sudo: from 1.8.0 before 1.9.12; 1.9.12
- debian debian_linux: 10.0; 11.0
- fedoraproject fedora: 36; 37
- apple macos: before 13.4

## Every score

- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://www.synacktiv.com/sites/default/files/2023-01/sudo-CVE-2023-22809.pdf> (exploit, mitigation, technical-description, third-party-advisory)
- <https://www.sudo.ws/security/advisories/sudoedit_any/> (exploit, mitigation, vendor-advisory)
- <http://www.openwall.com/lists/oss-security/2023/01/19/1> (exploit, mailing-list, third-party-advisory)
- <http://packetstormsecurity.com/files/171644/sudo-1.9.12p1-Privilege-Escalation.html> (exploit, third-party-advisory, vdb-entry)
- <http://packetstormsecurity.com/files/172509/Sudoedit-Extra-Arguments-Privilege-Escalation.html> (exploit, third-party-advisory, vdb-entry)
- <http://packetstormsecurity.com/files/174234/Cisco-ThousandEyes-Enterprise-Agent-Virtual-Appliance-Arbitrary-File-Modification.html> (exploit, third-party-advisory, vdb-entry)
- <https://lists.debian.org/debian-lts-announce/2023/01/msg00012.html> (mailing-list, third-party-advisory)
- <https://www.debian.org/security/2023/dsa-5321> (third-party-advisory, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2QDGFCGAV5QRJCE6IXRXIS4XJHS57DDH/> (mailing-list, vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20230127-0015/> (third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G4YNBTTKTRT2ME3NTSXAPTOKYUE47XHZ/> (mailing-list, vendor-advisory)
- <https://security.gentoo.org/glsa/202305-12> (third-party-advisory, vendor-advisory)
- <https://support.apple.com/kb/HT213758> (third-party-advisory)
- <http://seclists.org/fulldisclosure/2023/Aug/21> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2023-22809](https://www.cve.org/CVERecord?id=CVE-2023-22809), CVE Terms of Use, modified 2025-04-04
- NVD: [CVE-2023-22809](https://nvd.nist.gov/vuln/detail/CVE-2023-22809), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-22809 · Whole record: https://cve.day/CVE-2023-22809.json · Rebuilt by cve.day 2026-11-25T22:58:21.653Z
