Skip to main content
← All vulnerabilities
CVE-2023-22809

In Sudo before 1.9.12p2, the sudoedit (aka -e) feature mishandles extra arguments passed in the user-provided environment variables (SUDO_ED

Published
Last modified
published
Not listed in CISA KEV
1 on Exploit-DB, 1 Metasploit module, 12 proofs of concept on GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

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

  1. CVE published
  2. Public exploit on Exploit-DB

    EDB-51217

  3. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  4. Record last updated
  5. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • n/a n/a

    Version range not reported

References 28

synacktiv.com

sudo.ws

lists.debian.org

debian.org

openwall.com

lists.fedoraproject.org

security.netapp.com

packetstormsecurity.com

security.gentoo.org

support.apple.com

seclists.org

Exploit-DB

GitHub · rapid7/metasploit-framework

GitHub · Chan9Yan9/CVE-2023-22809

GitHub · D0rDa4aN919/CVE-2023-22809-Exploiter

GitHub · M4fiaB0y/CVE-2023-22809

GitHub · P4x1s/CVE-2023-22809-sudo-POC

GitHub · Spydomain/CVE-2023-22809-automated-python-exploits

GitHub · Toothless5143/CVE-2023-22809

GitHub · ValeuDoamne/CVE-2023-22809

GitHub · asepsaepdin/CVE-2023-22809

GitHub · hello4r1end/patch_CVE-2023-22809

GitHub · laxmiyamkolu/SUDO-privilege-escalation

GitHub · n3m1sys/CVE-2023-22809-sudoedit-privesc

GitHub · pashayogi/CVE-2023-22809