cbcvebase.
CVE-2002-1337
published 2003-03-07

CVE-2002-1337: Buffer overflow in Sendmail 5.79 to 8.12.7 allows remote attackers to execute arbitrary code via certain formatted address fields, related to sender and…

PriorityP261critical10CVSS 2.0
AVNACLAuNCCICAC
EXPLOIT
EPSS
72.20%
99.4th percentile
Buffer overflow in Sendmail 5.79 to 8.12.7 allows remote attackers to execute arbitrary code via certain formatted address fields, related to sender and recipient header comments as processed by the crackaddr function of headers.c.

Affected

129 ranges· showing 25
VendorProductVersion rangeFixed in
compaqtru64
compaqtru64
compaqtru64
compaqtru64
compaqtru64
compaqtru64
compaqtru64
compaqtru64
compaqtru64
compaqtru64
compaqtru64
compaqtru64
compaqtru64
compaqtru64
compaqtru64
compaqtru64
compaqtru64
compaqtru64
compaqtru64
compaqtru64
compaqtru64
compaqtru64
compaqtru64
compaqtru64
compaqtru64

Detection & IOCsextracted from sources · hover to see the quote

path/usr/sbin/sendmail
path/tmp/.sxp
port2525
commandrcpt to: lp
bytes
\xeb\x0c\x5b\x31\xc0\x50\x89\xe1\x89\xe2\xb0\x0b\xcd\x80\xe8\xef\xff\xff\xff
bytes
\xeb\x02\xeb\x08\xe8\xf9\xff\xff\xff\xcd\x7f\xc3\x5f\xff\x47\x01\x31\xc0\x50\x6a\x01\x6a\x02\x54\x59\xb0\x66\x31\xdb\x43\xff\xd7
  • The exploit triggers the crackaddr() buffer overflow via crafted SMTP header fields (Full-name:, From:, Subject:) containing angle brackets and parentheses with embedded NOP sleds (0xf8) and shellcode. Monitor for anomalously large or malformed SMTP headers containing these patterns.
  • The vulnerability is in the crackaddr() function of headers.c in Sendmail 5.79 through 8.12.7. Patch to 8.12.8 or later to remediate.
  • The remote exploit (LSD PoC) connects back to the attacker on a listener port (2525 by default). Monitor for unexpected outbound connections from the sendmail process, especially to non-standard ports.
  • The local privilege escalation exploit drops working files in /tmp/.sxp. Monitor for creation of this directory by the sendmail process or its children.
  • The exploit targets Slackware 8.0 with sendmail 8.11.4 (aptr=0xbfffbe34) and uses a fixed stack address. Detect exploitation attempts by monitoring for sendmail spawning /bin/bash or /bin/sh as a child process.
  • ·The LSD remote exploit (DOC 3) explicitly states only Slackware 8.0 is supported as a target OS for the provided offsets; other distributions require different pointer/offset values.
  • ·The local privilege escalation exploit (DOC 2) requires sendmail to be setuid; it will warn and may fail if the binary is not setuid.
  • ·The exploit uses a brute-force mode that may take 20-30 minutes to complete, which could be a distinguishing characteristic for detection of slow/low exploitation attempts.

CVSS provenance

nvdv2.010.0CRITICALAV:N/AC:L/Au:N/C:C/I:C/A:C
osv10.0CRITICAL
vendor_debian10.0CRITICAL
vendor_redhat10.0CRITICAL
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.