{"answers":{"affected":"It affects 11 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2018-8897 exists.","fix":"Apply the vendor's patch.","what":"CVE-2018-8897 is a high-severity vulnerability in Apple Mac Os X, published on 8 May 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-8897 and fix it if it is affected.\n\nWhat it is: CVE-2018-8897 is a high-severity vulnerability in Apple Mac Os X, published on 8 May 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-8897 exists.\n\nAffected product: Apple Mac Os X. 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-8897/ (Markdown: https://insights.sbomify.com/CVE-2018-8897/index.md)","id":"CVE-2018-8897","markdown":"https://insights.sbomify.com/CVE-2018-8897/index.md","name":"CVE-2018-8897","record":{"aliases":["ALPINE-CVE-2018-8897","DEBIAN-CVE-2018-8897","GHSA-j2cv-h77g-5p95","RHSA-2018:1349","RHSA-2018:1350","RHSA-2018:1351","RHSA-2018:1352","RHSA-2018:1353","UBUNTU-CVE-2018-8897"],"analysis":{"component_type":"operating_system","fix_type":"patch","impacts":["privilege_escalation","denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"OS kernel","requires_auth":"low_privilege","summary":"A race condition in OS kernels mishandling deferred debug exceptions allows attackers to escalate privileges or crash the system.","user_interaction":"not_required","vuln_class":"race_condition"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"mac_os_x","vendor":"apple"},{"product":"ubuntu_linux","vendor":"canonical"},{"product":"xenserver","vendor":"citrix"},{"product":"debian_linux","vendor":"debian"},{"product":"freebsd","vendor":"freebsd"},{"product":"enterprise_linux_server","vendor":"redhat"},{"product":"enterprise_linux_workstation","vendor":"redhat"},{"product":"enterprise_virtualization_manager","vendor":"redhat"},{"product":"diskstation_manager","vendor":"synology"},{"product":"skynas","vendor":"synology"},{"product":"xen","vendor":"xen"}],"cvss":{"score":7.8,"severity":"high","source":"nvd","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-362","name":"Concurrent Execution using Shared Resource with Improper Synchronization"}],"description":"A statement in the System Programming Guide of the Intel 64 and IA-32 Architectures Software Developer's Manual (SDM) was mishandled in the development of some or all operating-system kernels, resulting in unexpected behavior for #DB exceptions that are deferred by MOV SS or POP SS, as demonstrated by (for example) privilege escalation in Windows, macOS, some Xen configurations, or FreeBSD, or a Linux kernel crash. The MOV to SS and POP SS instructions inhibit interrupts (including NMIs), data breakpoints, and single step trap exceptions until the instruction boundary following the next instruction (SDM Vol. 3A; section 6.8.3). (The inhibited data breakpoints are those on memory accessed by the MOV to SS or POP to SS instruction itself.) Note that debug exceptions are not inhibited by the interrupt enable (EFLAGS.IF) system flag (SDM Vol. 3A; section 2.3). If the instruction following the MOV to SS or POP to SS instruction is an instruction like SYSCALL, SYSENTER, INT 3, etc. that transfers control to the operating system at CPL \u003c 3, the debug exception is delivered after the transfer to CPL \u003c 3 is complete. OS kernels may not expect this order of events and may therefore experience unexpected behavior when it occurs.","ecosystems":["Red Hat:rhel_aus:5.9","Red Hat:rhel_aus:6.4::server","Red Hat:rhel_aus:6.5::server","Red Hat:rhel_aus:6.6::server","Red Hat:rhel_els:5","Red Hat:rhel_tus:6.6::server"],"exploits":{"exploitdb":3,"first_seen":"2018-05-08","github_poc":4,"max_poc_stars":425,"metasploit":1,"nuclei":0,"refs":[{"date":"2018-05-13T19:34:17Z","kind":"github_poc","ref":"https://github.com/can1357/CVE-2018-8897","stars":425,"title":"Arbitrary code execution with kernel privileges using CVE-2018-8897."},{"date":"2018-08-08T20:04:56Z","kind":"github_poc","ref":"https://github.com/nmulasmajic/syscall_exploit_CVE-2018-8897","stars":120,"title":"Implements the POP/MOV SS (CVE-2018-8897) vulnerability by leveraging SYSCALL to perform a local privilege escalation (LPE)."},{"date":"2018-05-10T20:46:30Z","kind":"github_poc","ref":"https://github.com/nmulasmajic/CVE-2018-8897","stars":81,"title":"Implements the POP/MOV SS (CVE-2018-8897) vulnerability by bugchecking the machine (local DoS). "},{"date":"2018-05-13T09:05:07Z","kind":"github_poc","ref":"https://github.com/jiazhang0/pop-mov-ss-exploit","stars":4,"title":"The exploitation for CVE-2018-8897"},{"date":"2018-05-08","kind":"metasploit","ref":"exploit/windows/local/mov_ss","stars":null,"title":"Microsoft Windows POP/MOV SS Local Privilege Elevation Vulnerability"},{"date":"2018-05-22","kind":"exploitdb","ref":"44697","stars":null,"title":"Microsoft Windows - 'POP/MOV SS' Privilege Escalation"},{"date":"2018-07-13","kind":"exploitdb","ref":"45024","stars":null,"title":"Microsoft Windows - POP/MOV SS Local Privilege Elevation (Metasploit)"},{"date":"2018-07-13","kind":"exploitdb","ref":"45024","stars":null,"title":"Microsoft Windows - POP/MOV SS Local Privilege Elevation (Metasploit)"}],"tier":"weaponised"},"has_fix":true,"headline":"Race condition in n/a","id":"CVE-2018-8897","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"apple:mac_os_x","products":["apple:mac_os_x","canonical:ubuntu_linux","citrix:xenserver","debian:debian_linux","freebsd:freebsd","redhat:enterprise_linux_server","redhat:enterprise_linux_workstation","synology:diskstation_manager","xen:xen"],"type":"race_condition","year":"2018"},"n_packages":92,"n_references":48,"next":{"headline":"Auth bypass in n/a","id":"CVE-2018-8898"},"packages":[{"ecosystem":"Red Hat:rhel_aus:5.9","fixed":["0:2.6.18-348.39.2.el5"],"introduced":["0"],"last_affected":[],"package":"kernel","purl":"pkg:rpm/redhat/kernel","source":"RHSA-2018:1352"},{"ecosystem":"Red Hat:rhel_aus:5.9","fixed":["0:2.6.18-348.39.2.el5"],"introduced":["0"],"last_affected":[],"package":"kernel-PAE","purl":"pkg:rpm/redhat/kernel-PAE","source":"RHSA-2018:1352"},{"ecosystem":"Red Hat:rhel_aus:5.9","fixed":["0:2.6.18-348.39.2.el5"],"introduced":["0"],"last_affected":[],"package":"kernel-PAE-debuginfo","purl":"pkg:rpm/redhat/kernel-PAE-debuginfo","source":"RHSA-2018:1352"},{"ecosystem":"Red Hat:rhel_aus:5.9","fixed":["0:2.6.18-348.39.2.el5"],"introduced":["0"],"last_affected":[],"package":"kernel-PAE-devel","purl":"pkg:rpm/redhat/kernel-PAE-devel","source":"RHSA-2018:1352"},{"ecosystem":"Red Hat:rhel_aus:5.9","fixed":["0:2.6.18-348.39.2.el5"],"introduced":["0"],"last_affected":[],"package":"kernel-debug","purl":"pkg:rpm/redhat/kernel-debug","source":"RHSA-2018:1352"},{"ecosystem":"Red Hat:rhel_aus:5.9","fixed":["0:2.6.18-348.39.2.el5"],"introduced":["0"],"last_affected":[],"package":"kernel-debug-debuginfo","purl":"pkg:rpm/redhat/kernel-debug-debuginfo","source":"RHSA-2018:1352"},{"ecosystem":"Red Hat:rhel_aus:5.9","fixed":["0:2.6.18-348.39.2.el5"],"introduced":["0"],"last_affected":[],"package":"kernel-debug-devel","purl":"pkg:rpm/redhat/kernel-debug-devel","source":"RHSA-2018:1352"},{"ecosystem":"Red Hat:rhel_aus:5.9","fixed":["0:2.6.18-348.39.2.el5"],"introduced":["0"],"last_affected":[],"package":"kernel-debuginfo","purl":"pkg:rpm/redhat/kernel-debuginfo","source":"RHSA-2018:1352"},{"ecosystem":"Red Hat:rhel_aus:5.9","fixed":["0:2.6.18-348.39.2.el5"],"introduced":["0"],"last_affected":[],"package":"kernel-debuginfo-common","purl":"pkg:rpm/redhat/kernel-debuginfo-common","source":"RHSA-2018:1352"},{"ecosystem":"Red Hat:rhel_aus:5.9","fixed":["0:2.6.18-348.39.2.el5"],"introduced":["0"],"last_affected":[],"package":"kernel-devel","purl":"pkg:rpm/redhat/kernel-devel","source":"RHSA-2018:1352"},{"ecosystem":"Red Hat:rhel_aus:5.9","fixed":["0:2.6.18-348.39.2.el5"],"introduced":["0"],"last_affected":[],"package":"kernel-doc","purl":"pkg:rpm/redhat/kernel-doc","source":"RHSA-2018:1352"},{"ecosystem":"Red Hat:rhel_aus:5.9","fixed":["0:2.6.18-348.39.2.el5"],"introduced":["0"],"last_affected":[],"package":"kernel-headers","purl":"pkg:rpm/redhat/kernel-headers","source":"RHSA-2018:1352"},{"ecosystem":"Red Hat:rhel_aus:5.9","fixed":["0:2.6.18-348.39.2.el5"],"introduced":["0"],"last_affected":[],"package":"kernel-xen","purl":"pkg:rpm/redhat/kernel-xen","source":"RHSA-2018:1352"},{"ecosystem":"Red Hat:rhel_aus:5.9","fixed":["0:2.6.18-348.39.2.el5"],"introduced":["0"],"last_affected":[],"package":"kernel-xen-debuginfo","purl":"pkg:rpm/redhat/kernel-xen-debuginfo","source":"RHSA-2018:1352"},{"ecosystem":"Red Hat:rhel_aus:5.9","fixed":["0:2.6.18-348.39.2.el5"],"introduced":["0"],"last_affected":[],"package":"kernel-xen-devel","purl":"pkg:rpm/redhat/kernel-xen-devel","source":"RHSA-2018:1352"},{"ecosystem":"Red Hat:rhel_aus:6.4::server","fixed":["0:2.6.32-358.88.2.el6"],"introduced":["0"],"last_affected":[],"package":"kernel","purl":"pkg:rpm/redhat/kernel","source":"RHSA-2018:1349"},{"ecosystem":"Red Hat:rhel_aus:6.4::server","fixed":["0:2.6.32-358.88.2.el6"],"introduced":["0"],"last_affected":[],"package":"kernel-debug","purl":"pkg:rpm/redhat/kernel-debug","source":"RHSA-2018:1349"},{"ecosystem":"Red Hat:rhel_aus:6.4::server","fixed":["0:2.6.32-358.88.2.el6"],"introduced":["0"],"last_affected":[],"package":"kernel-debug-debuginfo","purl":"pkg:rpm/redhat/kernel-debug-debuginfo","source":"RHSA-2018:1349"},{"ecosystem":"Red Hat:rhel_aus:6.4::server","fixed":["0:2.6.32-358.88.2.el6"],"introduced":["0"],"last_affected":[],"package":"kernel-debug-devel","purl":"pkg:rpm/redhat/kernel-debug-devel","source":"RHSA-2018:1349"},{"ecosystem":"Red Hat:rhel_aus:6.4::server","fixed":["0:2.6.32-358.88.2.el6"],"introduced":["0"],"last_affected":[],"package":"kernel-debuginfo","purl":"pkg:rpm/redhat/kernel-debuginfo","source":"RHSA-2018:1349"},{"ecosystem":"Red Hat:rhel_aus:6.4::server","fixed":["0:2.6.32-358.88.2.el6"],"introduced":["0"],"last_affected":[],"package":"kernel-debuginfo-common-x86_64","purl":"pkg:rpm/redhat/kernel-debuginfo-common-x86_64","source":"RHSA-2018:1349"},{"ecosystem":"Red Hat:rhel_aus:6.4::server","fixed":["0:2.6.32-358.88.2.el6"],"introduced":["0"],"last_affected":[],"package":"kernel-devel","purl":"pkg:rpm/redhat/kernel-devel","source":"RHSA-2018:1349"},{"ecosystem":"Red Hat:rhel_aus:6.4::server","fixed":["0:2.6.32-358.88.2.el6"],"introduced":["0"],"last_affected":[],"package":"kernel-doc","purl":"pkg:rpm/redhat/kernel-doc","source":"RHSA-2018:1349"},{"ecosystem":"Red Hat:rhel_aus:6.4::server","fixed":["0:2.6.32-358.88.2.el6"],"introduced":["0"],"last_affected":[],"package":"kernel-firmware","purl":"pkg:rpm/redhat/kernel-firmware","source":"RHSA-2018:1349"},{"ecosystem":"Red Hat:rhel_aus:6.4::server","fixed":["0:2.6.32-358.88.2.el6"],"introduced":["0"],"last_affected":[],"package":"kernel-headers","purl":"pkg:rpm/redhat/kernel-headers","source":"RHSA-2018:1349"},{"ecosystem":"Red Hat:rhel_aus:6.4::server","fixed":["0:2.6.32-358.88.2.el6"],"introduced":["0"],"last_affected":[],"package":"perf","purl":"pkg:rpm/redhat/perf","source":"RHSA-2018:1349"},{"ecosystem":"Red Hat:rhel_aus:6.4::server","fixed":["0:2.6.32-358.88.2.el6"],"introduced":["0"],"last_affected":[],"package":"perf-debuginfo","purl":"pkg:rpm/redhat/perf-debuginfo","source":"RHSA-2018:1349"},{"ecosystem":"Red Hat:rhel_aus:6.4::server","fixed":["0:2.6.32-358.88.2.el6"],"introduced":["0"],"last_affected":[],"package":"python-perf","purl":"pkg:rpm/redhat/python-perf","source":"RHSA-2018:1349"},{"ecosystem":"Red Hat:rhel_aus:6.4::server","fixed":["0:2.6.32-358.88.2.el6"],"introduced":["0"],"last_affected":[],"package":"python-perf-debuginfo","purl":"pkg:rpm/redhat/python-perf-debuginfo","source":"RHSA-2018:1349"},{"ecosystem":"Red Hat:rhel_aus:6.5::server","fixed":["0:2.6.32-431.89.2.el6"],"introduced":["0"],"last_affected":[],"package":"kernel","purl":"pkg:rpm/redhat/kernel","source":"RHSA-2018:1350"},{"ecosystem":"Red Hat:rhel_aus:6.5::server","fixed":["0:2.6.32-431.89.2.el6"],"introduced":["0"],"last_affected":[],"package":"kernel-abi-whitelists","purl":"pkg:rpm/redhat/kernel-abi-whitelists","source":"RHSA-2018:1350"},{"ecosystem":"Red Hat:rhel_aus:6.5::server","fixed":["0:2.6.32-431.89.2.el6"],"introduced":["0"],"last_affected":[],"package":"kernel-debug","purl":"pkg:rpm/redhat/kernel-debug","source":"RHSA-2018:1350"},{"ecosystem":"Red Hat:rhel_aus:6.5::server","fixed":["0:2.6.32-431.89.2.el6"],"introduced":["0"],"last_affected":[],"package":"kernel-debug-debuginfo","purl":"pkg:rpm/redhat/kernel-debug-debuginfo","source":"RHSA-2018:1350"},{"ecosystem":"Red Hat:rhel_aus:6.5::server","fixed":["0:2.6.32-431.89.2.el6"],"introduced":["0"],"last_affected":[],"package":"kernel-debug-devel","purl":"pkg:rpm/redhat/kernel-debug-devel","source":"RHSA-2018:1350"},{"ecosystem":"Red Hat:rhel_aus:6.5::server","fixed":["0:2.6.32-431.89.2.el6"],"introduced":["0"],"last_affected":[],"package":"kernel-debuginfo","purl":"pkg:rpm/redhat/kernel-debuginfo","source":"RHSA-2018:1350"},{"ecosystem":"Red Hat:rhel_aus:6.5::server","fixed":["0:2.6.32-431.89.2.el6"],"introduced":["0"],"last_affected":[],"package":"kernel-debuginfo-common-x86_64","purl":"pkg:rpm/redhat/kernel-debuginfo-common-x86_64","source":"RHSA-2018:1350"},{"ecosystem":"Red Hat:rhel_aus:6.5::server","fixed":["0:2.6.32-431.89.2.el6"],"introduced":["0"],"last_affected":[],"package":"kernel-devel","purl":"pkg:rpm/redhat/kernel-devel","source":"RHSA-2018:1350"},{"ecosystem":"Red Hat:rhel_aus:6.5::server","fixed":["0:2.6.32-431.89.2.el6"],"introduced":["0"],"last_affected":[],"package":"kernel-doc","purl":"pkg:rpm/redhat/kernel-doc","source":"RHSA-2018:1350"},{"ecosystem":"Red Hat:rhel_aus:6.5::server","fixed":["0:2.6.32-431.89.2.el6"],"introduced":["0"],"last_affected":[],"package":"kernel-firmware","purl":"pkg:rpm/redhat/kernel-firmware","source":"RHSA-2018:1350"},{"ecosystem":"Red Hat:rhel_aus:6.5::server","fixed":["0:2.6.32-431.89.2.el6"],"introduced":["0"],"last_affected":[],"package":"kernel-headers","purl":"pkg:rpm/redhat/kernel-headers","source":"RHSA-2018:1350"}],"prev":{"headline":"Denial of service in n/a","id":"CVE-2018-8896"},"products":["n/a"],"published":"2018-05-08","related":[{"cvss_score":9.8,"headline":"GNU Bourne-Again Shell (Bash) Arbitrary Code Execution","id":"CVE-2014-7169","kev_date_added":"2022-01-28","published":"2014-09-25"},{"cvss_score":9.8,"headline":"GNU Bourne-Again Shell (Bash) Arbitrary Code Execution","id":"CVE-2014-6271","kev_date_added":"2022-01-28","published":"2014-09-24"},{"cvss_score":9.8,"headline":"PHP-CGI Query String Parameter","id":"CVE-2012-1823","kev_date_added":"2022-03-25","published":"2012-05-11"},{"cvss_score":7.8,"headline":"Apple macOS Unspecified","id":"CVE-2021-30713","kev_date_added":"2021-11-03","published":"2021-09-08"},{"cvss_score":7.8,"headline":"Apple macOS Use-After-Free","id":"CVE-2019-8526","kev_date_added":"2023-04-17","published":"2019-12-18"},{"cvss_score":7.8,"headline":"Apple OS X Authentication Bypass","id":"CVE-2015-1130","kev_date_added":"2022-02-10","published":"2015-04-10"},{"cvss_score":5.5,"headline":"Apple macOS Out-of-Bounds Read","id":"CVE-2022-22674","kev_date_added":"2022-04-04","published":"2022-05-26"}],"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":"A race condition in OS kernels mishandling deferred debug exceptions allows attackers to escalate privileges or crash the system.","url":"https://insights.sbomify.com/CVE-2018-8897/"}