cbcvebase.
CVE-2008-0621
published 2008-02-06

CVE-2008-0621: Buffer overflow in SAPLPD 6.28 and earlier included in SAP GUI 7.10 and SAPSprint before 1018 allows remote attackers to execute arbitrary code via long…

PriorityP265high7.5CVSS 2.0
AVNACLAuNCPIPAP
EXPLOIT
EPSS
73.36%
99.4th percentile
Buffer overflow in SAPLPD 6.28 and earlier included in SAP GUI 7.10 and SAPSprint before 1018 allows remote attackers to execute arbitrary code via long arguments to the (1) 0x01, (2) 0x02, (3) 0x03, (4) 0x04, and (5) 0x05 LPD commands.

Affected

2 ranges
VendorProductVersion rangeFixed in
sapsapgui
sapsaplpd<= 6.28

Detection & IOCsextracted from sources · hover to see the quote

port515
port515
port10282
commandLPD command 0x01 with oversized argument (484+ bytes)
registry0x004E0BB7
registry0x005e72d7
filenameSAPLpd.exe
bytes
\x02 followed by 484-byte buffer then ret address then \xe9 relative jump
bytes
\xeb\x43\x56\x57\x8b\x45\x3c\x8b\x54\x05\x78\x01\xea\x52\x8b\x52\x20\x01\xea\x31\xc0\x31\xc9\x41\x8b\x34\x8a\x01\xee\x31\xff\xc1\xcf\x13\xac\x01\xc7\x85\xc0\x75\xf6\x39\xdf\x75\xea\x5a\x8b\x5a\x24\x01\xeb\x66\x8b\x0c\x4b\x8b\x5a\x1c\x01\xeb\x8b\x04\x8b\x01\xe8\x5f\x5e\xff\xe0
  • Detect exploit attempts by monitoring TCP port 515 (LPD) for connections sending a single-byte command (0x01–0x05) followed by a payload exceeding 484 bytes, which is the known overflow offset for SAPLPD 6.28.
  • Alert on bind-shell connections originating from SAPLPD process on port 10282, which is the hardcoded bind port used by the public exploit's shellcode.
  • The Metasploit module sends a buffer starting with byte 0x02 followed by 484 bytes of padding, encoded payload, a 4-byte return address, and a relative JMP; signature-match this pattern on LPD (TCP/515) traffic.
  • Look for NOP sled patterns (0x90 repeated) of approximately 484 minus shellcode-length bytes on TCP/515 connections to SAPLPD, indicative of the stack overflow exploit.
  • Monitor for the known JMP-to-shellcode stub bytes \xE9\x98\x08\x00\x00 appended after the return address in LPD traffic on port 515.
  • The PrependEncoder stub \x81\xc4\xff\xef\xff\xff\x44 (stack pivot) is prepended to the Metasploit payload; scan for this byte sequence in LPD session data.
  • ·The overflow offset of 484 bytes and return addresses differ between the test build and the release build of SAPLPD 6.28; detections based on exact offsets must account for both variants.
  • ·The Metasploit module uses a StackAdjustment of -3500 and bad characters \x00\x0a; payloads avoiding these bytes will not match naive byte-pattern filters for null bytes or newlines.
  • ·The vulnerability affects SAPLPD 6.28 and earlier as shipped with SAP GUI 7.10 and SAPSprint before 1018; detections should cover all five LPD command bytes (0x01–0x05), not just 0x01 or 0x02.
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.