Buffer overflow in Dest-Unreach Socat
CVE-2026-56123
- CVSS v3
- 8.1 High
- Public exploits
- None known
- EPSS
- 0.003 · 24.7th percentile
- Published
- 2026-06-25
socat versions 1.8.0.0 through 1.8.1.1 contain a heap-based buffer overflow vulnerability that allows a malicious SOCKS5 proxy server to overwrite adjacent heap memory by exploiting a sign-extension flaw in the DOMAINNAME reply parser. During connection setup, the domain name length byte is read through a signed char field causing a negative bytes_to_read value that is implicitly converted to size_t, resulting in an unbounded heap write into the 262-byte reply buffer with attacker-controlled size and content.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.1 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.
- Attack Vector
- Network
AV:N - Attack Complexity
- High
AC:H - Privileges Required
- None
PR:N - User Interaction
- None
UI:N - Scope
- Unchanged
S:U - Confidentiality
- High
C:H - Integrity
- High
I:H - Availability
- High
A:H
EPSS exploit prediction
EPSS 0.003, 24.7th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Dest-Unreach Socat
- Socat — versions 1.8.0.0
Weakness classification (CWE)
References
- www.dest-unreach.org/socat/CHANGES (release-notes, Release Notes, patch)
- www.vulncheck.com/advisories/socat-heap-buffer-overflow-via-socks5-reply-parser (Third Party Advisory, third-party-advisory)