# CVE-2023-22809

- Priority: **Prioritise**
- Reason: Weaponized exploit (Metasploit, 18-01-2023)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2023-01-18 · Modified: 2025-04-04
- Aliases: ALPINE-CVE-2023-22809, MGASA-2023-0025, SUSE-SU-2023:0100-1, SUSE-SU-2023:0101-1, SUSE-SU-2023:0114-1, SUSE-SU-2023:0115-1, SUSE-SU-2023:0116-1, SUSE-SU-2023:0117-1, RHSA-2023:0280, RHSA-2023:0281, RHSA-2023:0282, RHSA-2023:0283, RHSA-2023:0284, RHSA-2023:0287, RHSA-2023:0291, RHSA-2023:0292, RHSA-2023:0293, RHSA-2023:3262, RHSA-2023:3264, RHSA-2023:3276, UBUNTU-CVE-2023-22809, USN-5811-2, USN-5811-3, DEBIAN-CVE-2023-22809, DLA-3272-1, DSA-5321-1, openSUSE-SU-2024:12638-1
- Record: https://cvemate.com/vulnerability/CVE-2023-22809 · JSON: https://cvemate.com/vulnerability/CVE-2023-22809/json

## Description

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

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 55.367%, percentile 99.053%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 5 (reference, exploit-database, metasploit)

## Affected (first 20 of 47)

- alpine sudo (Alpine Linux): ≥ 1.8.0, \< 1.9.12\_p2-r0
- apple macos: \< 13.4
- debian sudo (Debian): \< 1.9.12p2-1 \| \< 1.8.27-1+deb10u5 \| \< 1.9.5p2-3+deb11u1
- ubuntu sudo (Ubuntu): \< 1.8.9p5-1ubuntu1.5+esm7 \| \< 1.8.16-0ubuntu1.10+esm1 \| \< 1.8.21p2-3ubuntu1.5 \| \< 1.8.31-1ubuntu1.4 \| \< 1.9.9-1ubuntu2.2
- debian debian\_linux: 10.0 \| 11.0
- fedoraproject fedora: 36 \| 37
- mageia sudo (Mageia): \< 1.9.5p2-2.2.mga8
- opensuse sudo&distro=openSUSE Leap 15.4 (openSUSE): \< 1.9.9-150400.4.12.1
- opensuse sudo&distro=openSUSE Leap Micro 5.2 (openSUSE): \< 1.9.5p2-150300.3.19.1
- opensuse sudo&distro=openSUSE Leap Micro 5.3 (openSUSE): \< 1.9.9-150400.4.12.1
- opensuse sudo&distro=openSUSE Tumbleweed (openSUSE): \< 1.9.12p2-1.1
- redhat sudo (Red Hat): \< 0:1.8.25p1-8.el8\_1.3 \| \< 0:1.9.5p2-7.el9\_0.2 \| \< 0:1.9.5p2-7.el9\_1.1 \| \< 0:1.8.29-8.el8\_6.1 \| \< 0:1.8.29-8.el8\_7.1 \| \< 0:1.8.6p3-29.el6\_10.7 \| \< 0:1.8.23-10.el7\_9.3 \| \< 0:1.8.29-5.el8\_2.2 \| \< 0:1.8.29-7.el8\_4.2 \| \< 0:1.8.23-3.el7\_6.3 \| \< 0:1.8.19p2-12.el7\_4.3 \| \< 0:1.8.23-4.el7\_7.4
- redhat sudo-debuginfo (Red Hat): \< 0:1.8.25p1-8.el8\_1.3 \| \< 0:1.9.5p2-7.el9\_0.2 \| \< 0:1.9.5p2-7.el9\_1.1 \| \< 0:1.8.29-8.el8\_6.1 \| \< 0:1.8.29-8.el8\_7.1 \| \< 0:1.8.6p3-29.el6\_10.7 \| \< 0:1.8.23-10.el7\_9.3 \| \< 0:1.8.29-5.el8\_2.2 \| \< 0:1.8.29-7.el8\_4.2 \| \< 0:1.8.23-3.el7\_6.3 \| \< 0:1.8.19p2-12.el7\_4.3 \| \< 0:1.8.23-4.el7\_7.4
- redhat sudo-debugsource (Red Hat): \< 0:1.8.25p1-8.el8\_1.3 \| \< 0:1.9.5p2-7.el9\_0.2 \| \< 0:1.9.5p2-7.el9\_1.1 \| \< 0:1.8.29-8.el8\_6.1 \| \< 0:1.8.29-8.el8\_7.1 \| \< 0:1.8.29-5.el8\_2.2 \| \< 0:1.8.29-7.el8\_4.2
- redhat sudo-devel (Red Hat): \< 0:1.8.6p3-29.el6\_10.7 \| \< 0:1.8.23-10.el7\_9.3 \| \< 0:1.8.23-3.el7\_6.3 \| \< 0:1.8.19p2-12.el7\_4.3 \| \< 0:1.8.23-4.el7\_7.4
- redhat sudo-python-plugin (Red Hat): \< 0:1.9.5p2-7.el9\_0.2 \| \< 0:1.9.5p2-7.el9\_1.1
- redhat sudo-python-plugin-debuginfo (Red Hat): \< 0:1.9.5p2-7.el9\_0.2 \| \< 0:1.9.5p2-7.el9\_1.1
- suse sudo&distro=SUSE Enterprise Storage 6 (SUSE Linux Enterprise): \< 1.8.27-150000.4.38.1
- suse sudo&distro=SUSE Enterprise Storage 7 (SUSE Linux Enterprise): \< 1.8.27-150000.4.38.1
- suse sudo&distro=SUSE Enterprise Storage 7.1 (SUSE Linux Enterprise): \< 1.9.5p2-150300.3.19.1

## References (first 20 of 62)

- <https://www.synacktiv.com/sites/default/files/2023-01/sudo-CVE-2023-22809.pdf>
- <https://www.sudo.ws/security/advisories/sudoedit_any/>
- <https://lists.debian.org/debian-lts-announce/2023/01/msg00012.html>
- <https://www.debian.org/security/2023/dsa-5321>
- <http://www.openwall.com/lists/oss-security/2023/01/19/1>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2QDGFCGAV5QRJCE6IXRXIS4XJHS57DDH/>
- <https://security.netapp.com/advisory/ntap-20230127-0015/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G4YNBTTKTRT2ME3NTSXAPTOKYUE47XHZ/>
- <http://packetstormsecurity.com/files/171644/sudo-1.9.12p1-Privilege-Escalation.html>
- <https://security.gentoo.org/glsa/202305-12>
- <https://support.apple.com/kb/HT213758>
- <http://packetstormsecurity.com/files/172509/Sudoedit-Extra-Arguments-Privilege-Escalation.html>
- <http://seclists.org/fulldisclosure/2023/Aug/21>
- <http://packetstormsecurity.com/files/174234/Cisco-ThousandEyes-Enterprise-Agent-Virtual-Appliance-Arbitrary-File-Modification.html>
- <https://security.alpinelinux.org/vuln/CVE-2023-22809>
- <https://advisories.mageia.org/MGASA-2023-0025.html>
- <https://bugs.mageia.org/show_bug.cgi?id=31437>
- <https://ubuntu.com/security/notices/USN-5811-1>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/2QDGFCGAV5QRJCE6IXRXIS4XJHS57DDH/>
- <https://www.suse.com/support/update/announcement/2023/suse-su-20230100-1/>

---

Data as of 2026-12-05T02:45:32.926Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
