CVE-2023-22809
Exploitation reported by one source. First attested on 2026-04-15 by GCVE · kevintel.
- Published2023-01-18
- WeaknessCWE-269
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2023-01-1817:15CVE publishedNVD
- 2023-04-03Exploit-DB entryExploit-DB
- 2026-04-1514:28Listed as exploited by GCVEGCVE
- 2026-04-1514:28Exploitation first reportedGCVE
Observed activity
isMalicious corpus · updated 2026-11-03 21:37 UTCBlock these indicators
- Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2023-22809?format=txt
- CSV export: https://api.ismalicious.com/edl/cve/CVE-2023-22809?format=csv
- TAXII collection of exploited CVEs
- The EDL and CSV take an API key on the Pro plan.
Versions per branch
NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 10.0 | = 10.0 | no fix published | NVD |
| 11.0 | = 11.0 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 36.x | = 36 | no fix published | NVD |
| 37.x | = 37 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 1.x | ≥ 1.8.0, < 1.9.12 | 1.9.12 | NVD |
| 1.9 | = 1.9.12 | no fix published | NVD |
1 more product in the sources.
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- redhat-virtualization-hostRed Hat:rhev_hypervisor:4.4::el8all versions · fixed in 0:4.5.3-202302150956_8.6and 1 other package
- sudoUbuntu:Pro:16.04:LTSall versions · fixed in 1.8.16-0ubuntu1.10+esm1
- sudoUbuntu:Pro:14.04:LTSall versions · fixed in 1.8.9p5-1ubuntu1.5+esm7
- sudoUbuntu:22.04:LTSall versions · fixed in 1.9.9-1ubuntu2.2
- sudoUbuntu:20.04:LTSall versions · fixed in 1.8.31-1ubuntu1.4
- sudoUbuntu:18.04:LTSall versions · fixed in 1.8.21p2-3ubuntu1.5
- sudoTuxCare:Ubuntu:16.04all versions · fixed in 1.8.16-0ubuntu1.11+tuxcare.els1and 1 other package
- sudoTuxCare:OracleLinux:6all versions · fixed in 1.8.6p3-32.el6.tuxcare.els1and 1 other package
83 more package ranges on OSV.dev
Vendor advisories
sudo: arbitrary file write with privileges of the RunAs user
ABB M2M Gateway
ABB M2M Gateway ARM600, firmware versions = 4.1.2 <= 5.0.3 · ABB M2M Gateway SW, software versions = 5.0.1 <= 5.0.3
Red Hat Security Advisory: sudo security update
Red Hat Security Advisory: sudo security update
Red Hat Security Advisory: sudo security update
Red Hat Security Advisory: Red Hat Virtualization Host 4.4.z SP 1 security update batch#4 (oVirt-4.5.3-4)
9 more advisories
Fix
- Vendor fix Red Hat Product Security RHSA-2023:3276 · 25 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
- Vendor fix Red Hat Product Security RHSA-2023:0859 · 2 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/2974891
- Workaround from the vendor Red Hat Product Security RHSA-2023:3276 · 25 productsIt is possible to prevent a user-specified editor from being used by sudoedit by adding the following line to the sudoers file. ~~~ Defaults!sudoedit env_delete+="SUDO_EDITOR VISUAL EDITOR" ~~~ To restrict the editor when editing specific files, a Cmnd_Alias can be used, for example: ~~~ Cmnd_A…
- Mitigation from the vendor CISA ICSA-25-105-08 · 2 productsMitigating factors describe conditions and circumstances that make an attack that exploits the vulnerability difficult or less likely to succeed. The following mitigations are recommended. 1. Obtain a cellular private access point (APN). A dedicated private cellular access point and respective SIM…
Advisories and patches
- www.sudo.wsMitigation · Vendor Advisory
- www.synacktiv.comMitigation
Detection
read 2026-11-02 22:42 UTC- Nuclei template
- none so far ProjectDiscovery
- Proof-of-concept repositories
- 12 repositories, unverifiedn3m1sys/CVE-2023-22809-sudoedit-privescM4fiaB0y/CVE-2023-22809P4x1s/CVE-2023-22809-sudo-POChello4r1end/patch_CVE-2023-22809Chan9Yan9/CVE-2023-22809 PoC-in-GitHub
- Metasploit modules
- 1 moduleexploit/linux/local/sudoedit_bypass_priv_escrank: excellentModule metadata: Metasploit Framework, © Rapid7, Inc., BSD-3-Clause. Metasploit Framework
Sources
- GCVEexploitation2026-04-15
- CISA-ADPSSVC decisionnone2025-04-04
- OpenCVESSVC decisionnone—
- CISA-ADPCVSS 3.17.82025-04-04
- NVDCVSS 3.17.8read 2026-10-23
- CISA-ADPweakness (CWE)CWE-2692025-04-04
- NVDweakness (CWE)CWE-269read 2026-10-23
- FIRST EPSSEPSS score55.4 %read 2026-11-02
- PoC-in-GitHubproof of concept12read 2026-11-02
- Exploit-DBdetectionread 2026-11-02
- Metasploit FrameworkMetasploit modules1known since 2026-11-01
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- AZL-13030same flawAzure Linux · MIT
- EUVD-2023-26921same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-3vwp-294x-6v9csame flawGitHub Advisory Database · CC-BY-4.0
- exploit/linux/local/sudoedit_bypass_priv_escexploit moduleMetasploit Framework © Rapid7 · BSD-3-Clause
- EDB-51217exploit referenceExploit-DB · BSD-3-Clause
- ALSA-2023:0282advisory covering several CVEsAlmaLinux · MIT
- ALSA-2023:0284advisory covering several CVEsAlmaLinux · MIT
- DLA-3272-1advisory covering several CVEsDebian · LicenseRef-unstated
- DSA-5321-1advisory covering several CVEsDebian · LicenseRef-unstated
- MGASA-2023-0025advisory covering several CVEsMageia · LicenseRef-unstated
- OESA-2023-1049advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2024:12638-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2023:0280advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:0281advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:0282advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:0283advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:0284advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:0287advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:0291advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:0292advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:0293advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:0859advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:3262advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:3264advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:3276advisory covering several CVEsRed Hat · CC-BY-4.0
- RLSA-2023:0282advisory covering several CVEsRocky Linux · BSD-3-Clause
- RLSA-2023:0284advisory covering several CVEsRocky Linux · BSD-3-Clause
- SUSE-SU-2023:0100-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:0101-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:0114-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:0115-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:0116-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:0117-1advisory covering several CVEsSUSE · LicenseRef-unstated
- USN-5811-1advisory covering several CVEsUbuntu
- USN-5811-2advisory covering several CVEsUbuntu
- USN-5811-3advisory covering several CVEsUbuntu
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Published
- 2023-01-18
- Last Modified
- 2026-06-17
- NVD status
- Modified
- GitHub Advisory
- GHSA-3vwp-294x-6v9c
Frequently asked questions
What is CVE-2023-22809?
Is CVE-2023-22809 actively exploited?
What is the CVSS score for CVE-2023-22809?
Running sudo? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- For a threat intelligence platform: malware, C2 and ransomware indicators over STIX/TAXII.
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CISA ICS advisories (CSAF) · Public domain (US Government work)
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- Exploit-DB · Exploit-DB terms of service · terms restrict redistribution
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GCVE · GCVE dump terms (preserve source attribution)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-3vwp-294x-6v9c
- Metasploit Framework · BSD-3-Clause
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OpenCVE · OpenCVE terms of service · terms restrict redistribution
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0