{"exploit":{"id":"EDB-6656","name":"Microsoft Windows - GDI (EMR_COLORMATCHTOTARGETW) (MS08-021)","description":"Microsoft Windows - GDI (EMR_COLORMATCHTOTARGETW) (MS08-021)","cves":["CVE-2008-1087","CVE-2008-1083"],"author":"Ac!dDrop","published":"2008-10-02","platform":"windows","type":"remote","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/6656","path":"exploits/windows/remote/6656.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-6656.txt","vulnerabilities":[{"id":"CVE-2008-1087","state":"PUBLISHED","title":null,"titleSource":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.\"","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2008-1087","cvss":{"version":"2.0","baseScore":9.3,"severity":"high","vectorString":"AV:N/AC:M/Au:N/C:C/I:C/A:C","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2008-1087"},"updatedAt":"2024-08-07T08:08:57.416Z","retrievedAt":"2026-11-26T21:00:53.906Z","stale":false,"error":null},{"id":"CVE-2008-1083","state":"PUBLISHED","title":null,"titleSource":null,"description":"Heap-based buffer overflow in the CreateDIBPatternBrushPt function 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 or WMF image file with a malformed header that triggers an integer overflow, aka \"GDI Heap Overflow Vulnerability.\"","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2008-1083","cvss":{"version":"3.1","baseScore":8.1,"severity":"high","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CISA-ADP","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2008-1083"},"updatedAt":"2024-10-15T14:22:20.263Z","retrievedAt":"2026-11-26T21:00:53.406Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-6656.png?v=2","url":"https://exploitbin.com/exploits/EDB-6656","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-6656/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-6656/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"EMR_COLORMATCHTOTARGETW stack buffer overflow exploit\nBy Ac!dDrop\n\nThis is one of the 2 Vulnerabilities of MS08-021\n\nTested on Windows xp professional SP1\nGDi32.dll    5.1.2600.1106\nkernel32.dll 5.1.2600.1106\nws2_32.dll   5.1.2600.0\n\ncalc.zip---> executes calculator\nIE.zip and localhost.zip ------>  connects at localhost at port 230\n\n\nOn Windows Xp Sp2 only causes Denial of service.\n -(Vulnerable function guarded with a GS cookie)\n -(The function which copies data to stack has an exception handler which recovers from access violations so u cant exploit it by hitting next page ).\n\nhttps://gitlab.com/exploit-database/exploitdb-bin-sploits/-/raw/main/bin-sploits/6656.tgz (2008-Gdi.tgz)\n\n# milw0rm.com [2008-10-02]","sha256":"223e2a7c86d15c9d2ec22c10e7dc82bc153e4e60a312615139de132d00bdd122","bytes":719,"fetchedAt":"2026-11-27T13:08:14.785Z","encoding":"utf-8 (display only; download retains original bytes)"}