patchminder
Weaponized · Metasploit CVE-2023-22809

Privilege escalationin CVE-2023-22809.

Published 18 Jan 2023 · Updated 4 Apr 2025 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Weaponized: a Metasploit exploit is public.

Attack code is public
Severity
High 7.8
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks. assessment
Attack likelihood
Very high
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 55.4% chance in 30 days · 4 Dec 2026
Fix
Not confirmed
See the vendor advisory
In plain words

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.

What to do now
  • No source names a fix yet. Watch this page or the product for updates; we never guess a fixed version.

Not confirmed by any source yet: affected versions not confirmed; fixed version not confirmed. We show these as not confirmed instead of guessing.

Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
n/a
Not confirmed
Not confirmed
CVE record

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 6 Jan 2023
    CVE ID reserved by mitre.
  2. 18 Jan 2023
    Published in the CVE List.
  3. 18 Jan 2023
    Metasploit module: Sudoedit Extra Arguments Priv Esc.
  4. 21 Jan 2023
    First public proof of concept on GitHub.
  5. 4 Apr 2025
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Weaponized (Metasploit). CISA assessment (SSVC): exploitation none.

Metasploit module
1 module
Nuclei scan template
None known
Exploit-DB
1 entry
GitHub proof of concepts
12 repositories
MetasploitSudoedit Extra Arguments Priv Escrank excellentLinked once a fix or workaround is known.
Exploit-DBEDB-ID 51217local exploit for linux, published 3 Apr 2023Linked once a fix or workaround is known.

10 proof of concept repositories on GitHub. No fix or workaround is known yet, so we count them but do not link to them.

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Same weakness: Improper privilege management

All CWE-269 vulnerabilities

References
Cite this page

Patchminder. CVE-2023-22809: Privilege escalation in CVE-2023-22809. https://patchminder.com/cve/cve-2023-22809/ (accessed 5 December 2026).