CVE-2026-56123
9.2critical
socat 1.8.0.0 - 1.8.1.1 Heap Buffer Overflow via SOCKS5 Reply Parser
- Severity
- 9.2critical CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.31% (higher than 26% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| socat socat | from 1.8.0.0 before 1.8.1.2 | CVE List |
| dest-unreach socat | from 1.8.0.0 before 1.8.1.2 | NVD |
All scores
| VulnCheck | 9.2critical CVSS:4.0 | CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| VulnCheck | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
References
| http://www.dest-unreach.org/socat/CHANGES | patch, release-notes | |
| https://www.vulncheck.com/advisories/socat-heap-buffer-overflow-via-socks5-reply-parser | third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-56123 changed 2026-07-14 | CVE Terms of Use |
| NVD | CVE-2026-56123 changed 2026-06-26 | Public domain |