{"uuid": "b3bdff5c-a0fe-48d2-99d0-686f41a455ca", "vulnerability_lookup_origin": "1a89b78e-f703-45f3-bb86-59eb712668bd", "author": "9f56dd64-161d-43a6-b9c3-555944290a09", "vulnerability": "CVE-2023-22809", "type": "seen", "source": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/local/sudoedit_bypass_priv_esc.rb", "content": "{\"actions\": [], \"aliases\": [], \"arch\": \"x86, x64\", \"author\": [\"h00die\", \"Matthieu Barjole\", \"Victor Cutillas\"], \"autofilter_ports\": [], \"autofilter_services\": [], \"check\": true, \"default_credential\": false, \"description\": \"This exploit takes advantage of a vulnerability in sudoedit, part of the sudo package.\\n          The sudoedit (aka sudo -e) feature mishandles extra arguments passed in the user-provided\\n          environment variables (SUDO_EDITOR, VISUAL, and EDITOR), allowing a local attacker to\\n          append arbitrary entries to the list of files to process. This can lead to privilege escalation.\\n          by appending extra entries on /etc/sudoers allowing for execution of an arbitrary payload with root\\n          privileges.\\n\\n          Affected versions are 1.8.0 through 1.9.12.p1. However THIS module only works against Ubuntu\\n          22.04 and 22.10.\\n\\n          This module was tested against sudo 1.9.9-1ubuntu2 on Ubuntu 22.04, and\\n          1.9.11p3-1ubuntu1 on Ubuntu 22.10.\", \"disclosure_date\": \"2023-01-18\", \"fullname\": \"exploit/linux/local/sudoedit_bypass_priv_esc\", \"is_install_path\": true, \"mod_time\": \"2023-05-16 16:18:14 +0000\", \"name\": \"Sudoedit Extra Arguments Priv Esc\", \"needs_cleanup\": true, \"notes\": {\"Reliability\": [\"repeatable-session\"], \"SideEffects\": [\"ioc-in-logs\", \"artifacts-on-disk\", \"config-changes\"], \"Stability\": [\"crash-safe\"]}, \"path\": \"/modules/exploits/linux/local/sudoedit_bypass_priv_esc.rb\", \"platform\": \"Linux\", \"post_auth\": false, \"rank\": 600, \"ref_name\": \"linux/local/sudoedit_bypass_priv_esc\", \"references\": [\"EDB-51217\", \"URL-https://github.com/M4fiaB0y/CVE-2023-22809/blob/main/exploit.sh\", \"URL-https://raw.githubusercontent.com/n3m1dotsys/CVE-2023-22809-sudoedit-privesc/main/exploit.sh\", \"URL-https://www.vicarius.io/vsociety/blog/cve-2023-22809-sudoedit-bypass-analysis\", \"URL-https://medium.com/@dev.nest/how-to-bypass-sudo-exploit-cve-2023-22809-vulnerability-296ef10a1466\", \"URL-https://www.synacktiv.com/sites/default/files/2023-01/sudo-CVE-2023-22809.pdf\", \"URL-https://www.sudo.ws/security/advisories/sudoedit_any/\", \"CVE-2023-22809\"], \"rport\": null, \"session_types\": [\"shell\", \"meterpreter\"], \"targets\": [\"Auto\"], \"type\": \"exploit\"}", "creation_timestamp": "2026-09-08T06:49:12.690163Z"}