cbcvebase.
CVE-2002-0656
published 2002-08-12

CVE-2002-0656: Buffer overflows in OpenSSL 0.9.6d and earlier, and 0.9.7-beta2 and earlier, allow remote attackers to execute arbitrary code via (1) a large client master key…

PriorityP348high7.5CVSS 2.0
AVNACLAuNCPIPAP
EXPLOIT
EPSS
89.82%
99.8th percentile
Buffer overflows in OpenSSL 0.9.6d and earlier, and 0.9.7-beta2 and earlier, allow remote attackers to execute arbitrary code via (1) a large client master key in SSL2 or (2) a large session ID in SSL3.

Affected

37 ranges· showing 25
VendorProductVersion rangeFixed in
applemac_os_x——
applemac_os_x——
applemac_os_x——
applemac_os_x——
applemac_os_x——
applemac_os_x——
applemac_os_x——
applemac_os_x——
applemac_os_x——
applemac_os_x——
applemac_os_x——
debianopenssl< openssl 0.9.6e-1 (bookworm)openssl 0.9.6e-1 (bookworm)
opensslopenssl——
opensslopenssl——
opensslopenssl——
opensslopenssl——
opensslopenssl——
opensslopenssl——
opensslopenssl——
opensslopenssl——
opensslopenssl——
opensslopenssl——
opensslopenssl——
opensslopenssl——
opensslopenssl>= 0 < 0.9.6e-10.9.6e-1

Detection & IOCsextracted from sources · hover to see the quote

command./openssl-too-open -a 0x01 -v localhost↗
command./openssl-scanner -i hosts -o my.log -w 5↗
filenameopenssl-too-open↗
filenameopenssl-scanner↗
bytes↗
AAAA...\x00\x00\x00\x00...\x01\x00\x00\x00...\x11\x00\x00\x00fdfd bkbk\x10\x00\x00\x00\x10\x00\x00\x00
bytes↗
AAAA...\x70\x00\x00\x00
  • →Exploit targets the KEY_ARG buffer overflow in SSL2 CLIENT_MASTER_KEY message; detect oversized KEY_ARG fields (>8 bytes normal) in SSLv2 handshake traffic on port 443 or other SSL ports. ↗
  • →Exploit uses an info-leak via SERVER_FINISHED message by overwriting session_id_length to 0x70 (112 bytes) to leak heap addresses; detect anomalously large session_id_length values in SSLv2 SERVER_FINISHED messages. ↗
  • →Exploit opens a large number of simultaneous SSL connections (default 30–50) to the target before sending shellcode; detect rapid bursts of SSLv2 connection attempts from a single source IP. ↗
  • →The exploit overwrites the GOT free() entry via heap unlink; the malloc chunk overwrite pattern uses the sentinel bytes \x11\x00\x00\x00 (chunk size) and the ASCII strings 'fdfd'/'bkbk' as fd/bk pointers — these are detectable in raw SSL payload bytes. ↗
  • →Vulnerable server banner pattern to identify unpatched targets: Apache with mod_ssl/2.8.x and OpenSSL/0.9.6b or earlier in HTTP Server response header. ↗
  • →CVE affects SSLv2 (large client master key) and SSLv3 (large session ID); block or alert on SSLv2 handshakes entirely as a detection/prevention measure, since SSLv2 is deprecated and its use is anomalous. ↗
  • ·The exploit only supports Linux/x86 targets; other platforms (big-endian, non-x86) are not exploitable by this specific tool, though the underlying vulnerability may still be present. ↗
  • ·The exploit targets Apache (running as 'nobody') by default; against other servers running as root, the resulting shell would have root privileges. ↗

CVSS provenance

nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
osv7.5HIGH
vendor_debian7.5HIGH
vendor_redhat7.5HIGH
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.