{"schemaVersion":3,"id":"CVE-2008-1087","aliases":[],"status":"published","duplicateOf":null,"title":null,"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.\"","dates":{"published":"2008-04-08T23:00:00.000Z","modified":"2024-08-07T08:08:57.416Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.3,"severity":"high","version":"2.0","versionLabel":"v2.0","source":"NVD","vector":"AV:N/AC:M/Au:N/C:C/I:C/A:C","computed":false,"selection":"backend-summary"},"metrics":[{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":9.3,"severity":"high","vector":"AV:N/AC:M/Au:N/C:C/I:C/A:C","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.56603,"percentile":0.99056,"severity":"critical","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.56603},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.56603,"percentile":0.99056}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.56603,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.56603,"percentile":0.99056}]},"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":"5442","name":"Microsoft Windows - GDI Image Parsing Stack Overflow (MS08-021)","source":"exploit-database","url":"https://www.exploit-db.com/exploits/5442","maturity":"weaponized","reliabilityScore":0.8,"verified":true,"type":"local","platforms":["windows"],"requiresAuth":null,"exploitdb":{"verified":true,"type":"local","platform":"windows","file":"exploits/windows/local/5442.cpp","codes":["OSVDB-44215","CVE-2008-1087","OSVDB-44213","CVE-2008-1083","MS08-021"]},"metasploit":null},{"id":"6656","name":"Microsoft Windows - GDI (EMR_COLORMATCHTOTARGETW) (MS08-021)","source":"exploit-database","url":"https://www.exploit-db.com/exploits/6656","maturity":"weaponized","reliabilityScore":0.8,"verified":true,"type":"remote","platforms":["windows"],"requiresAuth":null,"exploitdb":{"verified":true,"type":"remote","platform":"windows","file":"exploits/windows/remote/6656.txt","codes":["CVE-2008-1087","CVE-2008-1083","MS08-021"]},"metasploit":null}],"exploitCount":2,"weaknesses":[{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer","description":"The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.","type":"weakness","status":"Stable","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/119.html"}],"affected":[{"vendor":"microsoft","product":"windows-nt","name":"windows-nt","label":"windows-nt","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"2008","noFixRecorded":false,"fixedIn":null}],"versionsText":"2008","eol":null,"hubHref":"/vendor/microsoft/windows-nt"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"http://www.osvdb.org/44215","label":"www.osvdb.org/44215","hostname":"www.osvdb.org","tags":["VDB Entry","X Refsource OSVDB","Broken Link"]},{"url":"http://www.us-cert.gov/cas/techalerts/TA08-099A.html","label":"www.us-cert.gov/cas/techalerts/TA08-099A.html","hostname":"www.us-cert.gov","tags":["Third Party Advisory","X Refsource CERT","US Government Resource"]},{"url":"http://marc.info/?l=bugtraq&m=120845064910729&w=2","label":"marc.info?l=bugtraq&m=120845064910729&w=2","hostname":"marc.info","tags":["Vendor Advisory","X Refsource HP","Mailing List"]},{"url":"http://www.vupen.com/english/advisories/2008/1145/references","label":"www.vupen.com/english/advisories/2008/1145/references","hostname":"www.vupen.com","tags":["VDB Entry","X Refsource VUPEN","Broken Link"]},{"url":"https://docs.microsoft.com/en-us/security-updates/securitybulletins/2008/ms08-021","label":"docs.microsoft.com/en-us/security-updates/securitybulletins/2008/ms08-021","hostname":"docs.microsoft.com","tags":["Vendor Advisory","X Refsource MS"]},{"url":"http://www.securityfocus.com/bid/28570","label":"www.securityfocus.com/bid/28570","hostname":"www.securityfocus.com","tags":["VDB Entry","X Refsource BID","Patch"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A5580","label":"oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A5580","hostname":"oval.cisecurity.org","tags":["VDB Entry","Signature","X Refsource OVAL"]},{"url":"https://www.exploit-db.com/exploits/6656","label":"www.exploit-db.com/exploits/6656","hostname":"www.exploit-db.com","tags":["Exploit","X Refsource EXPLOIT DB"]},{"url":"https://www.exploit-db.com/exploits/5442","label":"www.exploit-db.com/exploits/5442","hostname":"www.exploit-db.com","tags":["Exploit","X Refsource EXPLOIT DB"]},{"url":"http://www.securitytracker.com/id?1019798","label":"www.securitytracker.com/id?1019798","hostname":"www.securitytracker.com","tags":["VDB Entry","X Refsource SECTRACK","Third Party Advisory"]},{"url":"http://secunia.com/advisories/29704","label":"secunia.com/advisories/29704","hostname":"secunia.com","tags":["Third Party Advisory","X Refsource SECUNIA","Vendor Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2008-04-08T23:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-07T08:08:57.416Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T14:16:40.865Z","stale":false,"partial":false}}