{"answers":{"affected":"It affects 9 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2018-14665 exists.","fix":"Apply the vendor's patch.","what":"CVE-2018-14665 is a medium-severity vulnerability in Canonical Ubuntu Linux, published on 25 Oct 2018. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2018-14665 and fix it if it is affected.\n\nWhat it is: CVE-2018-14665 is a medium-severity vulnerability in Canonical Ubuntu Linux, published on 25 Oct 2018. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2018-14665 exists.\n\nAffected product: Canonical Ubuntu Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2018-14665/ (Markdown: https://insights.sbomify.com/CVE-2018-14665/index.md)","id":"CVE-2018-14665","markdown":"https://insights.sbomify.com/CVE-2018-14665/index.md","name":"CVE-2018-14665","record":{"aliases":["ALPINE-CVE-2018-14665","DEBIAN-CVE-2018-14665","DSA-4328-1","GHSA-c34f-6cmx-fcvv","MGASA-2018-0421","RHSA-2018:3410","SUSE-SU-2018:3456-1","SUSE-SU-2018:3680-1","UBUNTU-CVE-2018-14665","USN-3802-1"],"analysis":{"component_type":"operating_system","fix_type":"patch","impacts":["privilege_escalation","code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Xorg X server","requires_auth":"low_privilege","summary":"Unprivileged users with console access can escalate privileges to root and execute arbitrary code via incorrect permission checks in Xorg server startup options.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"ubuntu_linux","vendor":"canonical"},{"product":"debian_linux","vendor":"debian"},{"product":"enterprise_linux_desktop","vendor":"redhat"},{"product":"enterprise_linux_server","vendor":"redhat"},{"product":"enterprise_linux_server_aus","vendor":"redhat"},{"product":"enterprise_linux_server_eus","vendor":"redhat"},{"product":"enterprise_linux_server_tus","vendor":"redhat"},{"product":"enterprise_linux_workstation","vendor":"redhat"},{"product":"x_server","vendor":"x.org"}],"cvss":{"score":6.6,"severity":"medium","source":"nvd","vector":"CVSS:3.0/AV:P/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"}],"description":"A flaw was found in xorg-x11-server before 1.20.3. An incorrect permission check for -modulepath and -logfile options when starting Xorg. X server allows unprivileged users with the ability to log in to the system via physical console to escalate their privileges and run arbitrary code under root privileges.","ecosystems":["Red Hat:enterprise_linux:7::client","Red Hat:enterprise_linux:7::computenode","Red Hat:enterprise_linux:7::server","Red Hat:enterprise_linux:7::workstation","SUSE:Linux Enterprise Module for Basesystem 15","SUSE:Linux Enterprise Module for Development Tools 15","SUSE:Linux Enterprise Point of Sale 11 SP3","SUSE:Linux Enterprise Server 11 SP3-LTSS","SUSE:Linux Enterprise Server 11 SP3-TERADATA","SUSE:Linux Enterprise Server 11 SP4","SUSE:Linux Enterprise Server for SAP Applications 11 SP4","SUSE:Linux Enterprise Software Development Kit 11 SP4","SUSE:Linux Enterprise Workstation Extension 15"],"exploits":{"exploitdb":10,"first_seen":"2018-10-25","github_poc":2,"max_poc_stars":17,"metasploit":3,"nuclei":0,"refs":[{"date":"2018-10-27T10:12:05Z","kind":"github_poc","ref":"https://github.com/jas502n/CVE-2018-14665","stars":17,"title":"OpenBsd_CVE-2018-14665"},{"date":"2018-10-25","kind":"exploitdb","ref":"45697","stars":null,"title":"xorg-x11-server \u003c 1.20.3 - Local Privilege Escalation"},{"date":"2018-10-25","kind":"metasploit","ref":"exploit/aix/local/xorg_x11_server","stars":null,"title":"Xorg X11 Server Local Privilege Escalation"},{"date":"2018-10-25","kind":"metasploit","ref":"exploit/multi/local/xorg_x11_suid_server","stars":null,"title":"Xorg X11 Server SUID logfile Privilege Escalation"},{"date":"2018-10-25","kind":"metasploit","ref":"exploit/multi/local/xorg_x11_suid_server_modulepath","stars":null,"title":"Xorg X11 Server SUID modulepath Privilege Escalation"},{"date":"2018-10-30","kind":"exploitdb","ref":"45742","stars":null,"title":"xorg-x11-server 1.20.3 - Privilege Escalation"},{"date":"2018-11-02T01:09:37Z","kind":"github_poc","ref":"https://github.com/bolonobolo/CVE-2018-14665","stars":0,"title":null},{"date":"2018-11-13","kind":"exploitdb","ref":"45832","stars":null,"title":"xorg-x11-server \u003c 1.20.1 - Local Privilege Escalation"}],"tier":"weaponised"},"has_fix":true,"headline":"Privilege escalation in n/a","id":"CVE-2018-14665","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"canonical:ubuntu_linux","products":["canonical:ubuntu_linux","debian:debian_linux","redhat:enterprise_linux_desktop","redhat:enterprise_linux_server","redhat:enterprise_linux_server_aus","redhat:enterprise_linux_server_eus","redhat:enterprise_linux_server_tus","redhat:enterprise_linux_workstation","x.org:x_server"],"type":"privilege_escalation","year":"2018"},"n_packages":53,"n_references":20,"next":{"headline":"Missing authorization in Satellite","id":"CVE-2018-14666"},"packages":[{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.20.1-5.1.el7"],"introduced":["0"],"last_affected":[],"package":"xorg-x11-server","purl":"pkg:rpm/redhat/xorg-x11-server","source":"RHSA-2018:3410"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.20.1-5.1.el7"],"introduced":["0"],"last_affected":[],"package":"xorg-x11-server-Xdmx","purl":"pkg:rpm/redhat/xorg-x11-server-Xdmx","source":"RHSA-2018:3410"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.20.1-5.1.el7"],"introduced":["0"],"last_affected":[],"package":"xorg-x11-server-Xephyr","purl":"pkg:rpm/redhat/xorg-x11-server-Xephyr","source":"RHSA-2018:3410"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.20.1-5.1.el7"],"introduced":["0"],"last_affected":[],"package":"xorg-x11-server-Xnest","purl":"pkg:rpm/redhat/xorg-x11-server-Xnest","source":"RHSA-2018:3410"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.20.1-5.1.el7"],"introduced":["0"],"last_affected":[],"package":"xorg-x11-server-Xorg","purl":"pkg:rpm/redhat/xorg-x11-server-Xorg","source":"RHSA-2018:3410"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.20.1-5.1.el7"],"introduced":["0"],"last_affected":[],"package":"xorg-x11-server-Xvfb","purl":"pkg:rpm/redhat/xorg-x11-server-Xvfb","source":"RHSA-2018:3410"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.20.1-5.1.el7"],"introduced":["0"],"last_affected":[],"package":"xorg-x11-server-Xwayland","purl":"pkg:rpm/redhat/xorg-x11-server-Xwayland","source":"RHSA-2018:3410"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.20.1-5.1.el7"],"introduced":["0"],"last_affected":[],"package":"xorg-x11-server-common","purl":"pkg:rpm/redhat/xorg-x11-server-common","source":"RHSA-2018:3410"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.20.1-5.1.el7"],"introduced":["0"],"last_affected":[],"package":"xorg-x11-server-debuginfo","purl":"pkg:rpm/redhat/xorg-x11-server-debuginfo","source":"RHSA-2018:3410"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.20.1-5.1.el7"],"introduced":["0"],"last_affected":[],"package":"xorg-x11-server-devel","purl":"pkg:rpm/redhat/xorg-x11-server-devel","source":"RHSA-2018:3410"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.20.1-5.1.el7"],"introduced":["0"],"last_affected":[],"package":"xorg-x11-server-source","purl":"pkg:rpm/redhat/xorg-x11-server-source","source":"RHSA-2018:3410"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.20.1-5.1.el7"],"introduced":["0"],"last_affected":[],"package":"xorg-x11-server","purl":"pkg:rpm/redhat/xorg-x11-server","source":"RHSA-2018:3410"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.20.1-5.1.el7"],"introduced":["0"],"last_affected":[],"package":"xorg-x11-server-Xdmx","purl":"pkg:rpm/redhat/xorg-x11-server-Xdmx","source":"RHSA-2018:3410"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.20.1-5.1.el7"],"introduced":["0"],"last_affected":[],"package":"xorg-x11-server-Xephyr","purl":"pkg:rpm/redhat/xorg-x11-server-Xephyr","source":"RHSA-2018:3410"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.20.1-5.1.el7"],"introduced":["0"],"last_affected":[],"package":"xorg-x11-server-Xnest","purl":"pkg:rpm/redhat/xorg-x11-server-Xnest","source":"RHSA-2018:3410"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.20.1-5.1.el7"],"introduced":["0"],"last_affected":[],"package":"xorg-x11-server-Xorg","purl":"pkg:rpm/redhat/xorg-x11-server-Xorg","source":"RHSA-2018:3410"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.20.1-5.1.el7"],"introduced":["0"],"last_affected":[],"package":"xorg-x11-server-Xvfb","purl":"pkg:rpm/redhat/xorg-x11-server-Xvfb","source":"RHSA-2018:3410"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.20.1-5.1.el7"],"introduced":["0"],"last_affected":[],"package":"xorg-x11-server-Xwayland","purl":"pkg:rpm/redhat/xorg-x11-server-Xwayland","source":"RHSA-2018:3410"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.20.1-5.1.el7"],"introduced":["0"],"last_affected":[],"package":"xorg-x11-server-common","purl":"pkg:rpm/redhat/xorg-x11-server-common","source":"RHSA-2018:3410"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.20.1-5.1.el7"],"introduced":["0"],"last_affected":[],"package":"xorg-x11-server-debuginfo","purl":"pkg:rpm/redhat/xorg-x11-server-debuginfo","source":"RHSA-2018:3410"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.20.1-5.1.el7"],"introduced":["0"],"last_affected":[],"package":"xorg-x11-server-devel","purl":"pkg:rpm/redhat/xorg-x11-server-devel","source":"RHSA-2018:3410"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.20.1-5.1.el7"],"introduced":["0"],"last_affected":[],"package":"xorg-x11-server-source","purl":"pkg:rpm/redhat/xorg-x11-server-source","source":"RHSA-2018:3410"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.20.1-5.1.el7"],"introduced":["0"],"last_affected":[],"package":"xorg-x11-server","purl":"pkg:rpm/redhat/xorg-x11-server","source":"RHSA-2018:3410"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.20.1-5.1.el7"],"introduced":["0"],"last_affected":[],"package":"xorg-x11-server-Xdmx","purl":"pkg:rpm/redhat/xorg-x11-server-Xdmx","source":"RHSA-2018:3410"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.20.1-5.1.el7"],"introduced":["0"],"last_affected":[],"package":"xorg-x11-server-Xephyr","purl":"pkg:rpm/redhat/xorg-x11-server-Xephyr","source":"RHSA-2018:3410"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.20.1-5.1.el7"],"introduced":["0"],"last_affected":[],"package":"xorg-x11-server-Xnest","purl":"pkg:rpm/redhat/xorg-x11-server-Xnest","source":"RHSA-2018:3410"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.20.1-5.1.el7"],"introduced":["0"],"last_affected":[],"package":"xorg-x11-server-Xorg","purl":"pkg:rpm/redhat/xorg-x11-server-Xorg","source":"RHSA-2018:3410"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.20.1-5.1.el7"],"introduced":["0"],"last_affected":[],"package":"xorg-x11-server-Xvfb","purl":"pkg:rpm/redhat/xorg-x11-server-Xvfb","source":"RHSA-2018:3410"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.20.1-5.1.el7"],"introduced":["0"],"last_affected":[],"package":"xorg-x11-server-Xwayland","purl":"pkg:rpm/redhat/xorg-x11-server-Xwayland","source":"RHSA-2018:3410"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.20.1-5.1.el7"],"introduced":["0"],"last_affected":[],"package":"xorg-x11-server-common","purl":"pkg:rpm/redhat/xorg-x11-server-common","source":"RHSA-2018:3410"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.20.1-5.1.el7"],"introduced":["0"],"last_affected":[],"package":"xorg-x11-server-debuginfo","purl":"pkg:rpm/redhat/xorg-x11-server-debuginfo","source":"RHSA-2018:3410"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.20.1-5.1.el7"],"introduced":["0"],"last_affected":[],"package":"xorg-x11-server-devel","purl":"pkg:rpm/redhat/xorg-x11-server-devel","source":"RHSA-2018:3410"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.20.1-5.1.el7"],"introduced":["0"],"last_affected":[],"package":"xorg-x11-server-source","purl":"pkg:rpm/redhat/xorg-x11-server-source","source":"RHSA-2018:3410"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:1.20.1-5.1.el7"],"introduced":["0"],"last_affected":[],"package":"xorg-x11-server","purl":"pkg:rpm/redhat/xorg-x11-server","source":"RHSA-2018:3410"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:1.20.1-5.1.el7"],"introduced":["0"],"last_affected":[],"package":"xorg-x11-server-Xdmx","purl":"pkg:rpm/redhat/xorg-x11-server-Xdmx","source":"RHSA-2018:3410"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:1.20.1-5.1.el7"],"introduced":["0"],"last_affected":[],"package":"xorg-x11-server-Xephyr","purl":"pkg:rpm/redhat/xorg-x11-server-Xephyr","source":"RHSA-2018:3410"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:1.20.1-5.1.el7"],"introduced":["0"],"last_affected":[],"package":"xorg-x11-server-Xnest","purl":"pkg:rpm/redhat/xorg-x11-server-Xnest","source":"RHSA-2018:3410"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:1.20.1-5.1.el7"],"introduced":["0"],"last_affected":[],"package":"xorg-x11-server-Xorg","purl":"pkg:rpm/redhat/xorg-x11-server-Xorg","source":"RHSA-2018:3410"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:1.20.1-5.1.el7"],"introduced":["0"],"last_affected":[],"package":"xorg-x11-server-Xvfb","purl":"pkg:rpm/redhat/xorg-x11-server-Xvfb","source":"RHSA-2018:3410"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:1.20.1-5.1.el7"],"introduced":["0"],"last_affected":[],"package":"xorg-x11-server-Xwayland","purl":"pkg:rpm/redhat/xorg-x11-server-Xwayland","source":"RHSA-2018:3410"}],"prev":{"headline":"Cross-site scripting in foreman","id":"CVE-2018-14664"},"products":["n/a"],"published":"2018-10-25","related":[{"cvss_score":9.8,"headline":"SaltStack Salt Authentication Bypass","id":"CVE-2020-11651","kev_date_added":"2021-11-03","published":"2020-04-30"},{"cvss_score":9.8,"headline":"OpenSMTPD Remote Code Execution","id":"CVE-2020-7247","kev_date_added":"2022-03-25","published":"2020-01-29"},{"cvss_score":9.8,"headline":"Exim Out-of-bounds Write","id":"CVE-2019-16928","kev_date_added":"2022-03-03","published":"2019-09-27"},{"cvss_score":9.8,"headline":"Exim Buffer Overflow","id":"CVE-2018-6789","kev_date_added":"2021-11-03","published":"2018-02-08"},{"cvss_score":9.8,"headline":"Oracle Java SE and Java SE Embedded Remote Code Execution","id":"CVE-2015-2590","kev_date_added":"2022-03-03","published":"2015-07-16"},{"cvss_score":9.8,"headline":"Oracle JRE Remote Code Execution","id":"CVE-2013-0422","kev_date_added":"2022-05-25","published":"2013-01-10"},{"cvss_score":9.8,"headline":"Oracle Java SE Runtime Environment (JRE) Arbitrary Code Execution","id":"CVE-2011-3544","kev_date_added":"2022-03-03","published":"2011-10-19"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"BSD-3-Clause","name":"Metasploit"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["n/a"]},"summary":"Unprivileged users with console access can escalate privileges to root and execute arbitrary code via incorrect permission checks in Xorg server startup options.","url":"https://insights.sbomify.com/CVE-2018-14665/"}