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
“▲” beside the score: it is higher than NVD's CVSS score.
Score elevated to 8.4 because EPSS predicted 55% probability of exploitation within the next 30 days (99th percentile of EPSS-scored CVEs) when EchelonGraph scored this CVE. NVD baseline CVSS 7.8 retained for reference. Confidence: see factors.
- High exploitation likelihood — EPSS 55%
- Public exploit code is available (Metasploit, other public proof-of-concept code)
A fix is available — apply it.
- CVSS v3
- 7.8
- EG Score
- 8.4HIGHhigh confidence
- EG Risk
- 64EG Risk 64/100
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 computed (value × EchelonGraph’s weight)Severity84% × 45%The EG Score, 8.4 of 10.Exploitation65% × 40%EchelonGraph's fixed weight for EG-KEV Tier 2 (Weaponized): a constant, not a probability.Automatability0% × 15%CISA's SSVC Automatable value: no (Vulnrichment).SSVC (CISA's decision table, applied by EchelonGraph): Track at low or medium mission impact; Track* at high (mission-essential systems).Exploitation none (CISA Vulnrichment) · Automatable no (CISA Vulnrichment) · Technical impact total (CISA Vulnrichment). All three are CISA's SSVC values (Vulnrichment). EchelonGraph applied CISA's decision table to them; CISA publishes SSVC inputs and the table, not a decision for each CVE.Action: A fix is available. Apply it within your standard update timelines. - EPSS PROB
- 55%
- EPSS %ILE
- 99th
- KEV
- Not listed
SSVC (CISA's decision table, applied by EchelonGraph)Track at low or medium mission impact; Track* at high (mission-essential systems).
A fix is available. Apply it within your standard update timelines.
Exploitation none (CISA Vulnrichment) · Automatable no (CISA Vulnrichment) · Technical impact total (CISA Vulnrichment). All three are CISA's SSVC values (Vulnrichment). EchelonGraph applied CISA's decision table to them; CISA publishes SSVC inputs and the table, not a decision for each CVE. Mission impact is CISA's Mission & Well-being decision point, and only you can judge it. CISA's table makes it high when Mission Prevalence is Essential — the vulnerable component "directly provides capabilities that constitute at least one MEF for at least one entity" (MEF: mission essential function) — or when Public Well-Being Impact is Irreversible: "multiple fatalities are likely", the cyber-physical system "is likely lost or destroyed", "extreme or serious externalities" are imposed on other parties, or social systems such as elections or the financial grid "are destabilized and potentially collapse". CISA's decision table
BOD 26-04 (CISA's remediation timeline, Table 1)14 days if the affected system is publicly exposed; Fix on system upgrade if it is not.
In CISA KEV no (CISA's KEV catalog) · Automatable no (CISA Vulnrichment) · Technical impact total (CISA Vulnrichment). Whether your system is publicly exposed is yours to answer. BOD 26-04 binds US Federal Civilian Executive Branch agencies; for anyone else it is CISA's published timeline, a reference rather than an obligation. The directive · how EchelonGraph applies it
Published
January 18, 2023
Last Modified
April 4, 2025
Advisory Details (10)
Auto-updated Oct 8, 2026sudo: Root Privilege Escalation (GLSA 202305-12) — Gentoo security
https://security.gentoo.org/glsa/202305-12[SECURITY] Fedora 36 Update: sudo-1.9.12-2.p2.fc36 - package-announce - Fedora mailing-lists
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G4YNBTTKTRT2ME3NTSXAPTOKYUE47XHZ/[SECURITY] Fedora 37 Update: sudo-1.9.12-1.p2.fc37 - package-announce - Fedora mailing-lists
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2QDGFCGAV5QRJCE6IXRXIS4XJHS57DDH/[SECURITY] [DLA 3272-1] sudo security update
https://lists.debian.org/debian-lts-announce/2023/01/msg00012.htmloss-security - CVE-2023-22809: Sudoedit can edit arbitrary files
http://www.openwall.com/lists/oss-security/2023/01/19/1Full Disclosure: KL-001-2023-003: Cisco ThousandEyes Enterprise Agent Virtual Appliance Arbitrary File Modification via sudoedit
http://seclists.org/fulldisclosure/2023/Aug/21Packet Storm
http://packetstormsecurity.com/files/174234/Cisco-ThousandEyes-Enterprise-Agent-Virtual-Appliance-Arbitrary-File-Modification.htmlVendor Advisories for CVE-2023-22809(2)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- CVE-2023-22809Microsoft Security Response Center (MSRC)High
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-22809Palo Alto Networks Security AdvisoriesNone
CVE-2023-22809 Impact of Sudo Vulnerability CVE-2023-22809
Patch Availability(16)
| Vendor / Ecosystem | Fix (by version range) / 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 | Fix by version range | Dependents |
|---|---|---|---|
| sudo | — |
| — |
Alpine:v3.15(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| sudo | — |
| — |
Debian:10(1)
| Package | Vulnerable range | Fix by version range | 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 |
| — |
Debian:11(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| sudo | 1.9.5p2-3 |
| — |
Debian:12(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| sudo | — |
| — |
Debian:13(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| sudo | — |
| — |
Debian:14(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| sudo | — |
| — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Additional Vendor Advisories
(16)
Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.
- 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 9× in last 7d / 27× in last 30d)
Each row is a time one of our pipelines fetched, updated or re-scored this CVE. 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. An arrow marks a change the record states ("CVSS v3 → 9.1"); EPSS and GHSA rows show the values recorded at that time, not what changed (EPSS values are rounded; hover one for the exact figures). Most recent first.
Showing the most recent 86 of 139 refreshes on record for this CVE.
A repeat, a row identical to one the same pipeline wrote less than 10 seconds earlier, is not a separate refresh and is not counted. 14 repeat rows among the latest 100 are merged into the row they repeat. The 53 oldest rows on record are not shown and were not checked, so the counts can still include repeats.
- 2026-10-13 16:29 UTCEPSS rescoreEPSS 55% · 99th percentile
- 2026-10-12 18:36 UTCEG score recompute
- 2026-10-12 16:30 UTCEPSS rescoreEPSS 55% · 99th percentile
- 2026-10-11 21:59 UTCEG score recompute
- 2026-10-11 13:45 UTCEPSS rescoreEPSS 55% · 99th percentile
- 2026-10-10 19:57 UTCEPSS rescoreEPSS 55% · 99th percentile
- 2026-10-09 20:05 UTCEPSS rescoreEPSS 55% · 99th percentile
- 2026-10-08 17:05 UTCEPSS rescoreEPSS 55% · 99th percentile
- 2026-10-07 23:45 UTCEPSS rescoreEPSS 55% · 99th percentile
- 2026-10-06 15:14 UTCEPSS rescoreEPSS 55% · 99th percentile
- 2026-10-05 17:40 UTCEPSS rescoreEPSS 55% · 99th percentile
- 2026-10-03 14:23 UTCEPSS rescoreEPSS 55% · 99th percentile
- 2026-10-02 16:23 UTCEPSS rescoreEPSS 55% · 99th percentile
- 2026-10-01 19:47 UTCEPSS rescoreEPSS 55% · 99th percentile
- 2026-09-30 16:17 UTCEG score recompute
- 2026-09-30 15:01 UTCEPSS rescoreEPSS 55% · 99th percentile
- 2026-09-26 15:55 UTCEPSS rescoreEPSS 55% · 99th percentile
- 2026-09-24 14:01 UTCEPSS rescoreEPSS 55% · 99th percentile
- 2026-09-23 23:36 UTCOSV refresh
- 2026-09-23 13:45 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-09-22 14:45 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-09-19 15:38 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-09-18 19:25 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-09-17 19:24 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-09-16 14:05 UTCEPSS rescoreEPSS 55% · 98th percentile
Show 61 moreShow fewer
- 2026-09-16 05:11 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-09-15 03:07 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-09-12 14:58 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-09-08 21:57 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-09-06 13:45 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-09-05 15:25 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-09-04 17:54 UTCOSV refresh
- 2026-09-04 13:57 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-09-02 14:09 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-09-01 13:51 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-08-30 19:15 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-08-30 01:19 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-08-28 21:38 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-08-26 14:43 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-08-25 13:46 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-08-24 14:14 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-08-21 23:46 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-08-20 22:53 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-08-19 17:01 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-08-18 13:46 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-08-18 05:04 UTCOSV refresh
- 2026-08-17 13:44 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-08-16 14:53 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-08-16 02:12 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-08-15 01:27 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-08-13 21:58 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-08-12 13:48 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-08-08 16:34 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-08-06 13:44 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-08-05 19:15 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-08-02 23:57 UTCOSV refresh
- 2026-08-01 04:13 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-07-30 16:26 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-07-30 01:28 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-07-28 15:34 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-07-26 14:52 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-07-25 14:16 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-07-24 14:15 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-07-23 02:19 UTCEG score recompute▲ 0.60
- 2026-07-22 23:06 UTCEG score recompute
- 2026-07-22 14:06 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-07-20 17:05 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-07-19 14:29 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-07-19 02:27 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-07-16 17:01 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-07-16 08:49 UTCOSV refresh
- 2026-07-15 16:56 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-07-13 22:28 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-07-13 06:11 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-07-12 05:45 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-07-11 08:25 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-07-09 19:08 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-07-06 02:21 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-07-04 06:29 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-07-02 16:58 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-07-01 15:04 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-06-30 23:21 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-06-28 08:22 UTCOSV refresh
- 2026-06-28 04:54 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-06-27 03:07 UTCEPSS rescoreEPSS 55% · 98th percentile
- 2026-06-25 13:48 UTCEPSS rescoreEPSS 55% · 98th percentile
Publicly available exploits
(9 references)Public exploit code is referenced for this CVE (1 Metasploit module, 1 Exploit-DB entry, 7 GitHub PoCs). Defenders should treat patch urgency accordingly.
- Metasploitexploit/linux/local/sudoedit_bypass_priv_esc✓ verifiedPublished May 23, 2023
Sudoedit Extra Arguments Priv Esc
Open source ↗ - Open source ↗GitHub PoCD0rDa4aN919/CVE-2023-22809-ExploiterPublished Aug 28, 2024
- GitHub PoCToothless5143/CVE-2023-22809Published 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-22809Published Jul 10, 2023
- GitHub PoCChan9Yan9/CVE-2023-22809Published Jun 20, 2023
Analysis & Exploit
Open source ↗ - GitHub PoCP4x1s/CVE-2023-22809-sudo-POCPublished Apr 6, 2023
CVE-2023-22809 Linux Sudo
Open source ↗ - Exploit-DBEDB-51217Published Apr 3, 2023
sudo 1.8.0 to 1.9.12p1 - Privilege Escalation
Open source ↗ - Open source ↗GitHub PoCM4fiaB0y/CVE-2023-22809Published Feb 22, 2023
- GitHub PoCn3m1sys/CVE-2023-22809-sudoedit-privescPublished Jan 21, 2023
A script to automate privilege escalation with CVE-2023-22809 vulnerability
Open source ↗
Related CVEs(same product + same vendor + same CWE)
Same product
10 shownDebian:10:sudo · Alpine:v3.14:sudo
Same vendor
3 shownredhat:RHSA-2023:0859 · ubuntu:USN-5811-1
Frequently asked(5)
What is CVE-2023-22809?
When was the CVE record for CVE-2023-22809 published?
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.