{"uuid": "9df246f6-aef0-4534-8ce3-50eac3cb8e53", "vulnerability_lookup_origin": "1a89b78e-f703-45f3-bb86-59eb712668bd", "author": "9f56dd64-161d-43a6-b9c3-555944290a09", "vulnerability": "CVE-2018-14665", "type": "seen", "source": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/local/xorg_x11_suid_server.rb", "content": "{\"actions\": [], \"aliases\": [], \"arch\": \"cmd, x64, x86\", \"author\": [\"Narendra Shinde\", \"Raptor - 0xdea\", \"Aaron Ringo\", \"bcoles \"], \"autofilter_ports\": [], \"autofilter_services\": [], \"check\": true, \"default_credential\": false, \"description\": \"This module attempts to gain root privileges with SUID Xorg X11 server\\n          versions 1.19.0 &lt; 1.20.3.\\n\\n          A permission check flaw exists for -modulepath and -logfile options when\\n          starting Xorg. This allows unprivileged users that can start the server\\n          the ability to elevate privileges and run arbitrary code under root\\n          privileges.\\n\\n          This module has been tested with OpenBSD 6.3, 6.4, CentOS 7.4.1708, and\\n          CentOS 7.5.1804, and RHEL 7.5. The default PAM configuration for CentOS\\n          and RHEL systems requires console auth for the user's session to start\\n          the Xorg server.\\n\\n          Cron launches the payload, so if SELinux is enforcing, exploitation\\n          may still be possible, but the module will bail.\\n\\n          Xorg must have SUID permissions and may not start if already running.\\n\\n          On exploitation a crontab.old backup file will be created by Xorg.\\n          This module will remove the .old file and restore crontab after\\n          successful exploitation. Failed exploitation may result in a corrupted\\n          crontab. On successful exploitation artifacts will be created consistant\\n          with starting Xorg and running a cron.\", \"disclosure_date\": \"2018-10-25\", \"fullname\": \"exploit/multi/local/xorg_x11_suid_server\", \"is_install_path\": true, \"mod_time\": \"2026-04-22 11:58:09 +0000\", \"name\": \"Xorg X11 Server SUID logfile Privilege Escalation\", \"needs_cleanup\": true, \"notes\": {\"Reliability\": [\"unreliable-session\"], \"SideEffects\": [\"artifacts-on-disk\", \"config-changes\"], \"Stability\": [\"crash-service-down\"]}, \"path\": \"/modules/exploits/multi/local/xorg_x11_suid_server.rb\", \"platform\": \"Linux,Unix\", \"post_auth\": false, \"rank\": 400, \"ref_name\": \"multi/local/xorg_x11_suid_server\", \"references\": [\"CVE-2018-14665\", \"BID-105741\", \"EDB-45697\", \"EDB-45742\", \"EDB-45832\", \"URL-https://www.securepatterns.com/2018/10/cve-2018-14665-xorg-x-server.html\", \"URL-https://github.com/0xdea/exploits/blob/master/openbsd/raptor_xorgasm\"], \"rport\": null, \"session_types\": [\"shell\", \"meterpreter\"], \"targets\": [\"OpenBSD\", \"Linux x64\", \"Linux x86\"], \"type\": \"exploit\"}", "creation_timestamp": "2026-09-08T06:50:24.948795Z"}