{"schemaVersion":3,"id":"CVE-2017-0038","aliases":[],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2017-02-20T16:00:00.000Z","modified":"2024-08-05T12:47:57.617Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.5,"severity":"medium","version":"3.0","versionLabel":"v3.0","source":"NVD","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":5.5,"severity":"medium","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":4.3,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:P/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.821,"percentile":0.99653,"severity":"critical","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.821},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.71916,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.821,"percentile":0.99653}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.71916,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.821,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.821,"percentile":0.99653}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"41363","name":"Microsoft Windows - 'gdi32.dll' EMR_SETDIBITSTODEVICE Heap Out-of-Bounds Reads / Memory Disclosure","source":"exploit-database","url":"https://www.exploit-db.com/exploits/41363","maturity":"poc","reliabilityScore":0.8,"verified":true,"type":"dos","platforms":["windows"],"requiresAuth":null,"exploitdb":{"verified":true,"type":"dos","platform":"windows","file":"exploits/windows/dos/41363.txt","codes":["MSRC-36050","CVE-2017-0038"]},"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor","description":"The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/200.html"}],"affected":[{"vendor":"microsoft corporation","product":"windows graphics component","name":"Windows graphics component","label":"windows graphics component","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"The Graphics Device Interface (GDI) component 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","noFixRecorded":false,"fixedIn":null}],"versionsText":"The Graphics Device Interface (GDI) component 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","eol":null,"hubHref":"/vendor/microsoft_corporation/windows_graphics_component"},{"vendor":"microsoft","product":"windows_10","name":"windows 10","label":"windows_10","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"na","noFixRecorded":false,"fixedIn":null},{"text":"1511","noFixRecorded":false,"fixedIn":null},{"text":"1607","noFixRecorded":false,"fixedIn":null}],"versionsText":"na | 1511 | 1607","eol":null,"hubHref":"/vendor/microsoft/windows_10"},{"vendor":"microsoft","product":"windows_server_2008","name":"windows server 2008","label":"windows_server_2008","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"r2:sp1","noFixRecorded":false,"fixedIn":null}],"versionsText":"r2:sp1","eol":null,"hubHref":"/vendor/microsoft/windows_server_2008"},{"vendor":"microsoft","product":"windows_server_2012","name":"windows server 2012","label":"windows_server_2012","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"na","noFixRecorded":false,"fixedIn":null},{"text":"r2","noFixRecorded":false,"fixedIn":null}],"versionsText":"na | r2","eol":null,"hubHref":"/vendor/microsoft/windows_server_2012"}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://bugs.chromium.org/p/project-zero/issues/detail?id=992","label":"bugs.chromium.org/p/project-zero/issues/detail?id=992","hostname":"bugs.chromium.org","tags":["X Refsource MISC","Patch","Third Party Advisory"]},{"url":"https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2017-0038","label":"portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2017-0038","hostname":"portal.msrc.microsoft.com","tags":["X Refsource CONFIRM"]},{"url":"https://0patch.blogspot.com/2017/02/0patching-0-day-windows-gdi32dll-memory.html","label":"0patch.blogspot.com/2017/02/0patching-0-day-windows-gdi32dll-memory.html","hostname":"0patch.blogspot.com","tags":["X Refsource MISC","Issue Tracking","Patch","Third Party Advisory"]},{"url":"http://www.securitytracker.com/id/1037845","label":"www.securitytracker.com/id/1037845","hostname":"www.securitytracker.com","tags":["VDB Entry","X Refsource SECTRACK"]},{"url":"http://www.securityfocus.com/bid/96023","label":"www.securityfocus.com/bid/96023","hostname":"www.securityfocus.com","tags":["VDB Entry","X Refsource BID"]},{"url":"https://github.com/k0keoyo/CVE-2017-0038-EXP-C-JS","label":"github.com/k0keoyo/CVE-2017-0038-EXP-C-JS","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://www.exploit-db.com/exploits/41363/","label":"www.exploit-db.com/exploits/41363/","hostname":"www.exploit-db.com","tags":["Exploit","X Refsource EXPLOIT DB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2017-02-20T16:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-05T12:47:57.617Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":48,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T20:53:24.586Z","stale":false,"partial":false}}