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

- Severity: Critical 9.2 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 26% of CVEs (2026-12-01)
- Published: 2026-06-25T15:43:19.580Z
- Modified: 2026-07-14T21:34:06.653Z
- Weaknesses: CWE-122
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- socat socat: from 1.8.0.0 before 1.8.1.2
- dest-unreach socat: from 1.8.0.0 before 1.8.1.2

## Every score

- VulnCheck: CVSS:4.0 9.2 Critical `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: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## 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

- CVE List: [CVE-2026-56123](https://www.cve.org/CVERecord?id=CVE-2026-56123), CVE Terms of Use, modified 2026-07-14
- NVD: [CVE-2026-56123](https://nvd.nist.gov/vuln/detail/CVE-2026-56123), Public domain, modified 2026-06-26

---

Page: https://cve.day/CVE-2026-56123 · Whole record: https://cve.day/CVE-2026-56123.json · Rebuilt by cve.day 2026-11-25T22:59:26.390Z
