CVE-2026-56123socat 1.8.0.0 - 1.8.1.1 Heap Buffer Overflow via SOCKS5 Reply Parser
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.
What to do
Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | socat | Fixed | 1.8.1.1-1ubuntu0.1 | UBUNTU-CVE-2026-56123 |
| Ubuntu 25.10 | socat | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-56123 | |
| Ubuntu 24.04 | socat | Fixed | 1.8.0.0-4ubuntu0.1 | UBUNTU-CVE-2026-56123 |
| Ubuntu 22.04 | socat | Not affected vulnerable_code_not_present | ||
| Debian 14 | socat | Fixed | 1.8.1.3-1 | DEBIAN-CVE-2026-56123 |
| Debian 13 | socat | Fixed | 1.8.0.3-1+deb13u1 | DEBIAN-CVE-2026-56123 |
| Red Hat Enterprise Linux 10 | socat | Not affected | ||
| Red Hat Enterprise Linux 9 | socat | Not affected | ||
| Red Hat Enterprise Linux 8 | socat | Not affected | ||
| Red Hat Enterprise Linux 7 | socat | Not affected | ||
| Alpine Linux 3.24 | socat | Fixed | 1.8.1.2-r0 | ALPINE-CVE-2026-56123 |
| Alpine Linux 3.23 | socat | Fixed | 1.8.1.2-r0 | ALPINE-CVE-2026-56123 |
| Alpine Linux 3.22 | socat | Fixed | 1.8.1.2-r0 | ALPINE-CVE-2026-56123 |
| Alpine Linux 3.21 | socat | Fixed | 1.8.1.2-r0 | ALPINE-CVE-2026-56123 |
What the vendor says
As published in the CVE record by VulnCheck, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- socat: affected: 1.8.0.0 to before 1.8.1.2; fixed in
1.8.1.2
Vendor advisories:
- http://www.dest-unreach.org/socat/CHANGES (patch, release-notes)
References
- http://www.dest-unreach.org/socat/CHANGES
- https://www.vulncheck.com/advisories/socat-heap-buffer-overflow-via-socks5-reply-parser
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.