← Vulnerability feed

Vulnerability record · CVE-2008-1087 · published 8 April 2008

CVE-2008-1087: Windows GDI stack buffer overflow via crafted EMF image

Microsoft · Windows Nt

A stack-based buffer overflow exists in the Graphics Device Interface (GDI) of multiple Microsoft Windows versions when processing an EMF image file with crafted filename parameters. Successful exploitation allows arbitrary code execution in the context of the affected process, making this a serious remote code execution flaw on unpatched systems.

9.3 CVSS 2.0 High EPSS 57% · top 1.0% CWE-119 · Memory buffer overflow
9.3CVSS 2.0 base score
57%EPSS exploitation probability, 30 days
NoNot in CISA KEV
5Affected product versions listed by NVD
22References
16 Jun 2026Last modified by NVD

Description

Stack-based buffer overflow in GDI in Microsoft Windows 2000 SP4, XP SP2, Server 2003 SP1 and SP2, Vista, and Server 2008 allows remote attackers to execute arbitrary code via an EMF image file with crafted filename parameters, aka "GDI Stack Overflow Vulnerability."

AV:N/AC:M/Au:N/C:C/I:C/A:C

Automated analysis

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

high priorityRemote code execution with high EPSS and public exploits, though the affected platforms are legacy and a patch has long been available.

What it is

A stack-based buffer overflow exists in the Graphics Device Interface (GDI) of multiple Microsoft Windows versions when processing an EMF image file with crafted filename parameters. Successful exploitation allows arbitrary code execution in the context of the affected process, making this a serious remote code execution flaw on unpatched systems.

Impact

An attacker can execute arbitrary code on the victim's machine, potentially gaining full control of the system depending on the privileges of the process handling the image.

Attack surface

The flaw is reached remotely by delivering a crafted EMF image file to a victim; the CVSS vector (AV:N/AC:M/Au:N) indicates no authentication is required but some user interaction or a medium-complexity condition is needed to trigger processing.

Exploitation

The record is not listed in CISA KEV, but EPSS is high (0.566, 99th percentile) and public exploit code exists in Exploit-DB (5442, 6656), indicating active interest and available proof-of-concept exploits.

What to do

  • Apply the Microsoft security update MS08-021 immediately on all affected Windows versions.
  • Disable or restrict processing of untrusted EMF image files where feasible.
  • Enforce least privilege so that image-handling processes run with minimal rights.
  • Use email and web filtering to block or quarantine suspicious EMF attachments and downloads.

Detection

  • Monitor for processes spawning unexpectedly from image viewers or document handlers that process EMF files.
  • Look for crash or exception events in GDI-related modules (e.g., gdi32.dll) correlated with EMF file access.
  • Search endpoint logs for EMF files written to temporary or download directories followed by unusual child process creation.

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

Affected products

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

References

Track CVE-2008-1087 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.

9.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%analysed8.8CVE-2016-7256Windows atmfd.dll OpenType Font Remote Code ExecutionThe Windows font library (atmfd.dll) mishandles crafted OpenType fonts, allowing remote code execution. An attacker can host a malicious font on a we…KEVEPSS 65%analysed8.8CVE-2015-2426Windows Adobe Type Manager Library buffer underflow via crafted OpenType fontA buffer underflow in atmfd.dll, the Windows Adobe Type Manager Library, lets a crafted OpenType font trigger memory corruption. Because font parsing…KEVEPSS 87%analysed8.8CVE-2015-2360Microsoft Windows win32k.sys memory corruption privilege escalationwin32k.sys in the Windows kernel-mode drivers mishandles memory, allowing a local user to corrupt memory through a crafted application. The flaw is a…KEVEPSS 15%analysed8.8CVE-2014-6332Windows OLE Automation SafeArrayDimen array redimensioning remote code executionOleAut32.dll in Windows OLE mishandles a size value in the SafeArrayDimen function, allowing an array-redimensioning attempt to corrupt memory. A cra…KEVEPSS 95%analysed8.8CVE-2014-4148Windows win32k.sys TrueType font parsing remote code executionA code injection flaw in the win32k.sys kernel-mode driver lets a crafted TrueType font trigger arbitrary code execution. Because font parsing sits i…KEVEPSS 60%analysed8.8CVE-2014-1812Microsoft Windows Group Policy Preferences credential exposure and privilege escalationGroup Policy Preferences in multiple Windows versions stored and distributed passwords in a way that did not properly protect them, allowing any auth…KEVEPSS 65%analysed8.8CVE-2013-3918Microsoft Windows InformationCardSigninHelper ActiveX out-of-bounds writeThe InformationCardSigninHelper ActiveX control in icardie.dll contains an out-of-bounds write that can be triggered by a crafted web page rendered i…KEVEPSS 74%analysed

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