cbcvebase.
CVE-2005-0308
published 2005-01-24

CVE-2005-0308: Buffer overflow in the wsprintf function in W32Dasm 8.93 and earlier allows remote attackers to execute arbitrary code via a large import or export function…

PriorityP345high7.5CVSS 2.0
AVNACLAuNCPIPAP
EXPLOIT
EPSS
63.88%
99.1th percentile
Buffer overflow in the wsprintf function in W32Dasm 8.93 and earlier allows remote attackers to execute arbitrary code via a large import or export function name.

Affected

1 ranges
VendorProductVersion rangeFixed in
ursoftwarew32dasm

Detection & IOCsextracted from sources · hover to see the quote

versionW32Dasm <= 8.93
other0x77e6de9c (jmp esp kernel32.dll, Windows XP SP0)
  • Trigger condition: W32Dasm parses a crafted PE file with an oversized import or export function name, overflowing the stack via wsprintf. Monitor for W32Dasm opening externally-supplied PE files with abnormally large import/export name strings.
  • The exploit payload space is limited to 256 bytes with null bytes as bad characters; shellcode embedded in crafted PE files targeting this CVE will be null-free and ≤256 bytes.
  • The exploit uses a stack adjustment of -3500 bytes before shellcode execution; look for anomalous large negative ESP adjustments in W32Dasm process memory.
  • Return address targets jmp esp in kernel32.dll at 0x77e6de9c on Windows XP SP0; a saved return pointer of this value on the stack during W32Dasm execution is a strong exploit indicator.
  • ·The Metasploit module targets only Windows XP SP0 with a hardcoded kernel32.dll jmp-esp gadget; the return address will differ on other Windows versions or service packs.
  • ·Exploitation requires user interaction: a victim must manually open and disassemble the malicious PE file with a vulnerable W32Dasm version (≤8.93).
  • ·EXITFUNC is set to 'process', meaning the exploit terminates the W32Dasm process on exit rather than using a thread-safe exit; payload stability may vary.
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.