← Vulnerability feed

Vulnerability record · CVE-2018-8397 · published 15 August 2018

CVE-2018-8397: Windows GDI memory handling remote code execution

Microsoft · Windows 7

CVE-2018-8397 is a remote code execution flaw in how the Windows Graphics Device Interface (GDI) handles objects in memory, described by Microsoft as a GDI+ Remote Code Execution Vulnerability. It affects Windows Server 2008, Windows 7 and Windows Server 2008 R2. The record gives no root-cause detail beyond memory handling, so the exact faulty operation is not specified.

8.8 CVSS 3.0 High EPSS 68% · top 0.7%
8.8CVSS 3.0 base score, v2 9.3
68%EPSS exploitation probability, 30 days
NoNot in CISA KEV
2Affected product versions listed by NVD
6References
17 Jun 2026Last modified by NVD

Description

A remote code execution vulnerability exists in the way that the Windows Graphics Device Interface (GDI) handles objects in the memory, aka "GDI+ Remote Code Execution Vulnerability." This affects Windows Server 2008, Windows 7, Windows Server 2008 R2.

CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 19 September 2026. Confidence: medium.

high priorityCVSS 8.8 with network reachability and full code execution impact, plus a very high EPSS score, outweighs the lack of KEV listing and documented exploitation.

What it is

CVE-2018-8397 is a remote code execution flaw in how the Windows Graphics Device Interface (GDI) handles objects in memory, described by Microsoft as a GDI+ Remote Code Execution Vulnerability. It affects Windows Server 2008, Windows 7 and Windows Server 2008 R2. The record gives no root-cause detail beyond memory handling, so the exact faulty operation is not specified.

Impact

Successful exploitation lets an attacker execute arbitrary code in the context of the affected process, giving full control of confidentiality, integrity and availability per the CVSS vector. The attacker gains code execution on the target host rather than only a crash or information leak.

Attack surface

The vector is network-reachable with no privileges required, but user interaction is required, consistent with a crafted file or content that the victim must open or render. No authentication is needed on the attacker's side; the victim's action is the gate.

Exploitation

CISA KEV does not list this CVE, and the references are only vendor advisory, patch and third-party VDB entries with no exploit or PoC tags. EPSS is high at roughly 0.679 (99.3rd percentile), indicating elevated predicted exploitation activity despite the absence of documented in-the-wild use.

What to do

  • Apply the Microsoft security update referenced in the MSRC advisory for CVE-2018-8397 on all affected Windows 7, Windows Server 2008 and Windows Server 2008 R2 systems.
  • Prioritize patching internet-facing and user-workstation systems, since exploitation requires a victim to open or render crafted content.
  • Where these platforms are still in use, restrict untrusted file and content handling and enforce attachment and download controls at mail and web gateways.
  • Plan migration off Windows 7 and Windows Server 2008/2008 R2, which are past end of support and no longer receive routine fixes.
  • Limit the impact of code execution by running users with least privilege and applying application control where feasible.

Detection

  • Monitor for unexpected child processes spawned by GDI-related or graphics-rendering applications, which can indicate code execution via crafted content.
  • Alert on crashes or abnormal terminations in processes that render untrusted images or documents, especially repeated events tied to the same file source.
  • Review endpoint telemetry for suspicious file opens from email attachments, downloads or removable media preceding process creation anomalies.
  • Track patch state of Windows 7 and Server 2008/2008 R2 hosts to find systems still exposed to this and other unsupported-platform flaws.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2018-8397 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2020-1350Windows DNS Server improper input validation remote code executionWindows DNS servers fail to properly handle certain requests, allowing remote code execution. The flaw is network-reachable, needs no authentication …KEVEPSS 97%analysed9.8CVE-2019-0708Microsoft Remote Desktop Services use-after-free remote code executionRemote Desktop Services (formerly Terminal Services) contains a use-after-free flaw that lets an unauthenticated attacker execute code by sending spe…KEVEPSS 100%analysed9.8CVE-2017-8543Windows Search memory handling flaw allows remote code executionWindows Search fails to properly handle objects in memory, allowing an unauthenticated remote attacker to execute code on affected Windows systems. T…KEVEPSS 74%analysed9.8CVE-2015-1635Microsoft HTTP.sys remote code execution via crafted HTTP requestsHTTP.sys in multiple Windows versions fails to properly handle crafted HTTP requests, allowing remote code execution. The flaw is reachable over the …KEVEPSS 100%analysed9.8CVE-2008-4250Microsoft Windows Server service RPC path canonicalization buffer overflowThe Server service in multiple Windows versions fails to properly handle path canonicalization, allowing a crafted RPC request to overflow a buffer a…KEVEPSS 99%analysed9.0CVE-2020-1040Microsoft Hyper-V RemoteFX vGPU input validation remote code executionHyper-V RemoteFX vGPU on a host server fails to properly validate input from an authenticated user on a guest operating system, allowing remote code …KEVEPSS 7.4%analysed8.8CVE-2025-33073Windows SMB improper access control allows privilege elevationWindows SMB contains an improper access control flaw (CWE-284) that lets an authorized attacker elevate privileges over the network. Microsoft rates …KEVEPSS 83%analysed8.8CVE-2025-33053Microsoft Windows WebDAV Internet Shortcut File Path Control RCEWindows Internet Shortcut (.url) files allow external control of a file name or path, which an unauthorized attacker can abuse to execute code over a…KEVEPSS 87%analysed

Source: NIST National Vulnerability Database (record CVE-2018-8397), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.