cbcvebase.
CVE-2004-0200
published 2004-09-28

CVE-2004-0200: Buffer overflow in the JPEG (JPG) parsing engine in the Microsoft Graphic Device Interface Plus (GDI+) component, GDIPlus.dll, allows remote attackers to…

PriorityP358critical9.3CVSS 2.0
AVNACMAuNCCICAC
EXPLOIT
EPSS
49.02%
98.9th percentile
Buffer overflow in the JPEG (JPG) parsing engine in the Microsoft Graphic Device Interface Plus (GDI+) component, GDIPlus.dll, allows remote attackers to execute arbitrary code via a JPEG image with a small JPEG COM field length that is normalized to a large integer length before a memory copy operation.

Affected

36 ranges· showing 25
VendorProductVersion rangeFixed in
microsoftdigital_image_pro——
microsoftdigital_image_pro——
microsoftdigital_image_suite——
microsoftexcel——
microsoftexcel——
microsoftfrontpage——
microsoftfrontpage——
microsoftgreetings——
microsoftinfopath——
microsoftnet_framework——
microsoftoffice——
microsoftoffice——
microsoftonenote——
microsoftoutlook——
microsoftoutlook——
microsoftpicture_it——
microsoftpicture_it——
microsoftpicture_it——
microsoftpowerpoint——
microsoftpowerpoint——
microsoftproject——
microsoftproject——
microsoftpublisher——
microsoftpublisher——
microsoftvisio——

Detection & IOCsextracted from sources · hover to see the quote

filenameGDIPlus.dll↗
otherGDIPlus.dll version 5.1.3097.0 - return address 0x70E7B1DC↗
otherGDIPlus.dll version 5.1.3101.0 - return address 0x7830B1DC↗
othersystem() address 0x77C28044 on WinXP SP1↗
bytes↗
FF D8 FF E0 00 10 4A 46 49 46 00 01 02 00 00 64 00 64 00 00 FF EC 00 11 44 75 63 6B 79 00 01 00 04 00 00 00 0A 00 00 FF EE 00 0E 41 64 6F 62 65 00 64 C0 00 00 00 01 FF FE 00 01
bytes↗
EB 0F 58 80 30 17 40 81 38 6D 30 30 21 75 F4
bytes↗
D9 E1 D9 34 24 58 58 58 58 80 E8 E7
bytes↗
66 81 EC 80 00 89 E6 E8 B7 00 00 00 89 06 89 C3
  • →Detect crafted JPEG files exploiting CVE-2004-0200 by scanning for the JPEG COM marker (0xFF 0xFE) immediately followed by a zero or one-byte length field (0x00 0x00 or 0x00 0x01), which triggers the integer normalization overflow in GDIPlus.dll. ↗
  • →Exploit JPEGs contain shellcode that must not include the bytes 0xFF 0xD9 (JPEG EOI marker); scan for anomalous JPEG files where the COM field length is 0x0000 or 0x0001 as a reliable trigger indicator. ↗
  • →The exploit JPEG header pattern starts with FF D8 FF E0 ... FF FE 00 01 (or 00 00). Signature-match this byte sequence in network traffic or file scanning to identify exploit delivery. ↗
  • →Bind-shell payloads default to port 1337; reverse-shell payloads connect back on attacker-specified port (default 1337). Monitor for unexpected outbound or inbound connections on port 1337 from image-rendering processes. ↗
  • ·Windows XP SP2 is not vulnerable; exploits only affect unpatched systems running SP1 or earlier. Do not waste detection resources targeting SP2 systems for this specific CVE. ↗
  • ·Return addresses embedded in exploit payloads are version-specific to GDIPlus.dll (5.1.3097.0 for English SP1, 5.1.3101.0 for Italian SP1). Detections based on hardcoded addresses will miss variants targeting other DLL versions. ↗
  • ·Shellcode embedded in exploit JPEGs cannot contain the bytes 0xFF 0xD9 (JPEG end-of-image marker), as this would prematurely terminate parsing. Byte-pattern detections for shellcode must account for this encoding constraint. ↗
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.