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.
CVE-2023-22809
Score elevated to 8.4 because EPSS predicts 55% probability of exploitation within the next 30 days (top 1.1% of all CVEs). NVD baseline CVSS 7.8 retained for reference. Confidence: see factors.
- High exploitation likelihood — EPSS 55%
- Public exploit code is available (Metasploit, epss top5pct, epss high, public exploit)
A fix is available — apply it.
- CVSS v3
- 7.8
- EG Score
- 8.4(high)
- EG Risk
- 64(Track)EG Risk 64/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity84% × 45%Exploitation65% × 40%Automatability0% × 15%Action: Routine — remediate on your standard cadence. - EPSS PROB
- 55%
- EPSS %ILE
- 99%
- KEV
- Not listed
Published
January 18, 2023
Last Modified
April 4, 2025
References (28)
- cve@mitrehttp://packetstormsecurity.com/files/171644/sudo-1.9.12p1-Privilege-Escalation.html
- cve@mitrehttp://packetstormsecurity.com/files/172509/Sudoedit-Extra-Arguments-Privilege-Escalation.html
- cve@mitrehttp://packetstormsecurity.com/files/174234/Cisco-ThousandEyes-Enterprise-Agent-Virtual-Appliance-Arbitrary-File-Modification.html
- cve@mitrehttp://seclists.org/fulldisclosure/2023/Aug/21
- cve@mitrehttp://www.openwall.com/lists/oss-security/2023/01/19/1
- cve@mitrehttps://lists.debian.org/debian-lts-announce/2023/01/msg00012.html
- cve@mitrehttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2QDGFCGAV5QRJCE6IXRXIS4XJHS57DDH/
- cve@mitrehttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G4YNBTTKTRT2ME3NTSXAPTOKYUE47XHZ/
- cve@mitrehttps://security.gentoo.org/glsa/202305-12
- cve@mitrehttps://security.netapp.com/advisory/ntap-20230127-0015/
- cve@mitrehttps://support.apple.com/kb/HT213758
- cve@mitrehttps://www.debian.org/security/2023/dsa-5321
- cve@mitrehttps://www.sudo.ws/security/advisories/sudoedit_any/
- cve@mitrehttps://www.synacktiv.com/sites/default/files/2023-01/sudo-CVE-2023-22809.pdf
- af854a3a-2127-422b-91ae-364da2661108http://packetstormsecurity.com/files/171644/sudo-1.9.12p1-Privilege-Escalation.html
Patch Availability(16)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| ubuntu | sudo (1.9.9-1ubuntu2.2) @ jammy | 2026-05-25 | ubuntu |
| ubuntu | sudo (1.8.16-0ubuntu1.10+esm1) @ xenial | 2026-05-25 | ubuntu |
| ubuntu | sudo (1.8.9p5-1ubuntu1.5+esm7) @ trusty | 2026-05-25 | ubuntu |
| redhat | sudo-0:1.8.19p2-12.el7_4.3 | 2023-05-23 | redhat |
| redhat | sudo-0:1.8.23-3.el7_6.3 | 2023-05-23 | redhat |
| redhat | sudo-0:1.8.23-4.el7_7.4 | 2023-05-23 | redhat |
| redhat | redhat-virtualization-host-0:4.5.3-202302150956_8.6 | 2023-02-21 | redhat |
| redhat | sudo-0:1.8.29-7.el8_4.2 | 2023-01-23 | redhat |
| redhat | sudo-0:1.8.29-8.el8_6.1 | 2023-01-23 | redhat |
| redhat | sudo-0:1.9.5p2-7.el9_0.2 | 2023-01-23 | redhat |
| redhat | sudo-0:1.8.23-10.el7_9.3 | 2023-01-23 | redhat |
| redhat | sudo-0:1.8.29-5.el8_2.2 | 2023-01-23 | redhat |
| redhat | sudo-0:1.8.6p3-29.el6_10.7 | 2023-01-23 | redhat |
| redhat | sudo-0:1.8.29-8.el8_7.1 | 2023-01-23 | redhat |
| redhat | sudo-0:1.8.25p1-8.el8_1.3 | 2023-01-23 | redhat |
| redhat | sudo-0:1.9.5p2-7.el9_1.1 | 2023-01-23 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(7 across 7 ecosystems)
Alpine:v3.14(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| sudo | — | 1.9.12_p2-r0 | — |
Alpine:v3.15(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| sudo | — | 1.9.12_p2-r0 | — |
Debian:10(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| sudo | 1.8.27-1, 1.8.27-1+deb10u1, 1.8.27-1+deb10u2, 1.8.27-1+deb10u3, 1.8.27-1+deb10u4 | 1.8.27-1+deb10u5 | — |
Debian:11(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| sudo | 1.9.5p2-3 | 1.9.5p2-3+deb11u1 | — |
Debian:12(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| sudo | — | 1.9.12p2-1 | — |
Debian:13(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| sudo | — | 1.9.12p2-1 | — |
Debian:14(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| sudo | — | 1.9.12p2-1 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
All Vendor Advisories
(17)
Every vendor that published an advisory referencing this CVE — pulled from our cve_vendor_advisories aggregation. Click any row for the vendor's original advisory page.
- Microsoft MSRCCVE-2023-228092025-10-02
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.
- Red HatRHSA-2023:0280IMPORTANT2023-01-18
RHSA-2023:0280 — Important
- Red HatRHSA-2023:0281IMPORTANT2023-01-18
RHSA-2023:0281 — Important
- Red HatRHSA-2023:0282IMPORTANT2023-01-18
RHSA-2023:0282 — Important
- Red HatRHSA-2023:0283IMPORTANT2023-01-18
RHSA-2023:0283 — Important
- Red HatRHSA-2023:0284IMPORTANT2023-01-18
RHSA-2023:0284 — Important
- Red HatRHSA-2023:0287IMPORTANT2023-01-18
RHSA-2023:0287 — Important
- Red HatRHSA-2023:0291IMPORTANT2023-01-18
RHSA-2023:0291 — Important
- Red HatRHSA-2023:0292IMPORTANT2023-01-18
RHSA-2023:0292 — Important
- Red HatRHSA-2023:0293IMPORTANT2023-01-18
RHSA-2023:0293 — Important
- Red HatRHSA-2023:0859IMPORTANT2023-01-18
RHSA-2023:0859 — Important
- Red HatRHSA-2023:3262IMPORTANT2023-01-18
RHSA-2023:3262 — Important
- Red HatRHSA-2023:3264IMPORTANT2023-01-18
RHSA-2023:3264 — Important
- Red HatRHSA-2023:3276IMPORTANT2023-01-18
RHSA-2023:3276 — Important
- UbuntuUSN-5811-1MEDIUM
Sudo vulnerabilities
- UbuntuUSN-5811-2MEDIUM
Sudo vulnerability
- UbuntuUSN-5811-3MEDIUM
Sudo vulnerability
Data Freshness Timeline
(refreshed 5× in last 7d / 22× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 116 total refreshes for this CVE.
- 2026-08-30 01:19 UTCEPSS rescore
- 2026-08-28 21:38 UTCEPSS rescore
- 2026-08-26 14:43 UTCEPSS rescore
- 2026-08-25 13:46 UTCEPSS rescore
- 2026-08-24 14:14 UTCEPSS rescore
- 2026-08-21 23:46 UTCEPSS rescore
- 2026-08-20 22:53 UTCEPSS rescore
- 2026-08-19 17:01 UTCEPSS rescore
- 2026-08-18 13:46 UTCEPSS rescore
- 2026-08-18 05:04 UTCOSV refresh
- 2026-08-17 13:44 UTCEPSS rescore
- 2026-08-16 14:53 UTCEPSS rescore
- 2026-08-16 02:12 UTCEPSS rescore
- 2026-08-15 01:28 UTCEPSS rescore
- 2026-08-15 01:27 UTCEPSS rescore
- 2026-08-13 21:58 UTCEPSS rescore
- 2026-08-12 13:48 UTCEPSS rescore
- 2026-08-08 16:34 UTCEPSS rescore
- 2026-08-06 13:44 UTCEPSS rescore
- 2026-08-05 19:15 UTCEPSS rescore
- 2026-08-02 23:57 UTCOSV refresh
- 2026-08-01 04:13 UTCEPSS rescore
- 2026-07-30 16:26 UTCEPSS rescore
- 2026-07-30 01:28 UTCEPSS rescore
- 2026-07-30 01:28 UTCEPSS rescore
Show 75 moreShow fewer
- 2026-07-28 15:34 UTCEPSS rescore
- 2026-07-26 14:52 UTCEPSS rescore
- 2026-07-26 14:52 UTCEPSS rescore
- 2026-07-25 14:16 UTCEPSS rescore
- 2026-07-25 14:16 UTCEPSS rescore
- 2026-07-24 14:15 UTCEPSS rescore
- 2026-07-23 02:19 UTCEG score recompute▲ 0.60
- 2026-07-22 23:06 UTCEG score recompute
- 2026-07-22 14:06 UTCEPSS rescore
- 2026-07-20 17:05 UTCEPSS rescore
- 2026-07-19 14:29 UTCEPSS rescore
- 2026-07-19 14:29 UTCEPSS rescore
- 2026-07-19 02:27 UTCEPSS rescore
- 2026-07-19 02:27 UTCEPSS rescore
- 2026-07-16 17:01 UTCEPSS rescore
- 2026-07-16 17:01 UTCEPSS rescore
- 2026-07-16 08:49 UTCOSV refresh
- 2026-07-15 16:56 UTCEPSS rescore
- 2026-07-13 22:28 UTCEPSS rescore
- 2026-07-13 22:28 UTCEPSS rescore
- 2026-07-13 06:11 UTCEPSS rescore
- 2026-07-12 05:45 UTCEPSS rescore
- 2026-07-12 05:45 UTCEPSS rescore
- 2026-07-11 08:25 UTCEPSS rescore
- 2026-07-11 08:25 UTCEPSS rescore
- 2026-07-09 19:08 UTCEPSS rescore
- 2026-07-06 02:21 UTCEPSS rescore
- 2026-07-04 06:29 UTCEPSS rescore
- 2026-07-04 06:29 UTCEPSS rescore
- 2026-07-02 16:58 UTCEPSS rescore
- 2026-07-01 15:04 UTCEPSS rescore
- 2026-06-30 23:21 UTCEPSS rescore
- 2026-06-28 08:22 UTCOSV refresh
- 2026-06-28 04:54 UTCEPSS rescore
- 2026-06-28 04:54 UTCEPSS rescore
- 2026-06-27 03:07 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-21 14:55 UTCEPSS rescore
- 2026-06-21 14:55 UTCEPSS rescore
- 2026-06-21 01:58 UTCEPSS rescore
- 2026-06-21 01:58 UTCEPSS rescore
- 2026-06-17 17:51 UTCEPSS rescore
- 2026-06-17 17:51 UTCEPSS rescore
- 2026-06-16 17:51 UTCEPSS rescore
- 2026-06-16 17:51 UTCEPSS rescore
- 2026-06-16 17:51 UTCEPSS rescore
- 2026-06-15 17:47 UTCEPSS rescore
- 2026-06-12 23:10 UTCEPSS rescore
- 2026-06-11 13:59 UTCEPSS rescore
- 2026-06-11 13:58 UTCEPSS rescore
- 2026-06-10 22:17 UTCEPSS rescore
- 2026-06-10 18:47 UTCOSV refresh
- 2026-06-10 13:21 UTCEPSS rescore
- 2026-06-10 13:21 UTCEPSS rescore
- 2026-06-08 14:15 UTCEPSS rescore
- 2026-06-08 14:15 UTCEPSS rescore
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-05 22:46 UTCEPSS rescore
- 2026-06-05 22:46 UTCEPSS rescore
- 2026-06-05 22:46 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-04 13:11 UTCEPSS rescore
- 2026-06-04 13:11 UTCEPSS rescore
- 2026-06-02 20:12 UTCEPSS rescore
- 2026-06-02 20:12 UTCEPSS rescore
- 2026-06-02 20:12 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
Publicly available exploits
(9 references)Working exploit code is in the public domain (1 Metasploit module) (7 GitHub PoCs) (1 Exploit-DB entry). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.
- Open source ↗GitHub PoCD0rDa4aN919/CVE-2023-22809-ExploiterFirst seen Aug 28, 2024
- GitHub PoCToothless5143/CVE-2023-22809First seen Aug 6, 2023
Running this exploit on a vulnerable system allows a local attacker to gain a root shell on the machine.
Open source ↗ - Open source ↗GitHub PoCasepsaepdin/CVE-2023-22809First seen Jul 10, 2023
- GitHub PoCChan9Yan9/CVE-2023-22809First seen Jun 20, 2023
Analysis & Exploit
Open source ↗ - GitHub PoCP4x1s/CVE-2023-22809-sudo-POCFirst seen Apr 6, 2023
CVE-2023-22809 Linux Sudo
Open source ↗ - Exploit-DBEDB-51217First seen Apr 3, 2023
sudo 1.8.0 to 1.9.12p1 - Privilege Escalation
Open source ↗ - Open source ↗GitHub PoCM4fiaB0y/CVE-2023-22809First seen Feb 22, 2023
- GitHub PoCn3m1sys/CVE-2023-22809-sudoedit-privescFirst seen Jan 21, 2023
A script to automate privilege escalation with CVE-2023-22809 vulnerability
Open source ↗ - Metasploitexploit/linux/local/sudoedit_bypass_priv_esc✓ verifiedFirst seen Jan 18, 2023
Sudoedit Extra Arguments Priv Esc
Open source ↗
Frequently asked(5)
What is CVE-2023-22809?
When was CVE-2023-22809 disclosed?
Is CVE-2023-22809 actively exploited?
What is the CVSS score of CVE-2023-22809?
How do I remediate CVE-2023-22809?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2023-22809
Is Your Infrastructure Affected by CVE-2023-22809?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.