CVE-2026-56123
socat: Socat: Heap-based buffer overflow allows arbitrary code execution via malicious SOCKS5 proxy server
Severity
ImportantRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · June 26, 2026
Updated · November 5, 2026
Description
A flaw was found in socat. A remote attacker, acting as a malicious SOCKS5 proxy server, can exploit a heap-based buffer overflow. This vulnerability, caused by a sign-extension flaw in the DOMAINNAME reply parser, allows the attacker to write arbitrary data to memory. This could lead to arbitrary code execution or a denial of service.
Statement
This issue affected socat versions 1.8.0.0 - 1.8.1.1. Red Hat Enterprise Linux 7, 8, 9, and 10 include older socat 1.7.* versions and are therefore not affected by this issue.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 8.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CWE-190 · Integer Overflow or Wraparound