Skip to content

CVE-2026-56123 socat 1.8.0.0 - 1.8.1.1 Heap Buffer Overflow via SOCKS5 Reply Parser

CriticalCVSS 9.2 EPSS 0.31%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total
Technology
UbuntuDebianRed Hat

Description

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.

Upgrade path

11 packages: 11 fixed.

PackageAffectedFixed inStatus
alpine/socat(Alpine v3.21) >= 1.8.0.0, < 1.8.1.2-r0 1.8.1.2-r0 Fixed
alpine/socat(Alpine v3.22) >= 1.8.0.0, < 1.8.1.2-r0 1.8.1.2-r0 Fixed
alpine/socat(Alpine v3.23) >= 1.8.0.0, < 1.8.1.2-r0 1.8.1.2-r0 Fixed
alpine/socat(Alpine v3.24) >= 1.8.0.0, < 1.8.1.2-r0 1.8.1.2-r0 Fixed
azure linux socat(Azure Linux 4.0) < 0:1.8.1.3-2.azl4 0:1.8.1.3-2.azl4 Fixed
debian/socat(Debian 13) < 1.8.0.3-1+deb13u1; = 1.8.0.3-1 1.8.0.3-1+deb13u1 Fixed
debian/socat(Debian 14) < 1.8.1.3-1; = 1.8.0.3-1; = 1.8.1.0-1; = 1.8.1.0-2 +2 more 1.8.1.3-1 Fixed
dest-unreach socat >= 1.8.0.0, < 1.8.1.2 1.8.1.2 Fixed
socat >= 1.8.0.0, < 1.8.1.2 1.8.1.2 Fixed
ubuntu/socat(Ubuntu 24.04) < 1.8.0.0-4ubuntu0.1 1.8.0.0-4ubuntu0.1 Fixed
ubuntu/socat(Ubuntu 26.04) < 1.8.1.1-1ubuntu0.1 1.8.1.1-1ubuntu0.1 Fixed

Affected products

ProductAffected versionsFixed in
socat >= 1.8.0.0, < 1.8.1.2 1.8.1.2
debian/socat(Debian:13) < 1.8.0.3-1+deb13u1 1.8.0.3-1+deb13u1
debian/socat(Debian:13) = 1.8.0.3-1 No fix listed
debian/socat(Debian:14) < 1.8.1.3-1 1.8.1.3-1
debian/socat(Debian:14) = 1.8.0.3-1 No fix listed
debian/socat(Debian:14) = 1.8.1.0-1 No fix listed
debian/socat(Debian:14) = 1.8.1.0-2 No fix listed
debian/socat(Debian:14) = 1.8.1.1-1 No fix listed
debian/socat(Debian:14) = 1.8.1.1-2 No fix listed
alpine/socat(Alpine:v3.21) >= 1.8.0.0, < 1.8.1.2-r0 1.8.1.2-r0
alpine/socat(Alpine:v3.22) >= 1.8.0.0, < 1.8.1.2-r0 1.8.1.2-r0
alpine/socat(Alpine:v3.23) >= 1.8.0.0, < 1.8.1.2-r0 1.8.1.2-r0
alpine/socat(Alpine:v3.24) >= 1.8.0.0, < 1.8.1.2-r0 1.8.1.2-r0
ubuntu/socat(Ubuntu:24.04) < 1.8.0.0-4ubuntu0.1 1.8.0.0-4ubuntu0.1
ubuntu/socat(Ubuntu:26.04) < 1.8.1.1-1ubuntu0.1 1.8.1.1-1ubuntu0.1
dest-unreach socat >= 1.8.0.0, < 1.8.1.2 1.8.1.2
azure linux socat(Azure Linux:4.0) < 0:1.8.1.3-2.azl4 0:1.8.1.3-2.azl4

References