CVE-2026-56123
socat 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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
9.2
socat 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.
- Record
CVE-2026-56123- 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 - 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 - Weakness
- CWE-122
- Updated
- 2026-11-02
EUVDEUVD-2026-39455
9.2
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.
- Record
EUVD-2026-39455- 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 - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-6r8c-w5mj-43hv
9.2
socat versions 1.8.0.0 through 1.8.1.1 contain a heap-based buffer overflow vulnerability that...
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.
- Record
GHSA-6r8c-w5mj-43hv- 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - 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 - Weakness
- CWE-122
- Updated
- 2026-11-02
NVD
9.2
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.
- Record
CVE-2026-56123- 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - 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 - 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 - Weakness
- CWE-122
- Updated
- 2026-11-02
OSVALPINE-CVE-2026-56123
9.8
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.
- Record
ALPINE-CVE-2026-56123- 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 - Updated
- 2026-11-02
OSVBELL-CVE-2026-56123
9.8
- Record
BELL-CVE-2026-56123- 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 - Updated
- 2026-11-02
Show 8 moreShow less
OSVDEBIAN-CVE-2026-56123
9.8
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.
- Record
DEBIAN-CVE-2026-56123- 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 - Updated
- 2026-11-02
OSVOESA-2026-2942
9.8
socat security update
Socat is a relay for bidirectional data transfer between two independent data channels. Each of these data channels may be a file, pipe, device (serial line etc. or a pseudo terminal), a socket (UNIX, IP4, IP6 - raw, UDP, TCP), an SSL socket, proxy CONNECT connection, a file descriptor (stdin etc.), the GNU line editor (readline), a program, or a combination of two of these.
Security Fix(es):
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.(CVE-2026-56123)
- Record
OESA-2026-2942- 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 - Updated
- 2026-11-02
OSVOESA-2026-2943
9.8
socat security update
Socat is a relay for bidirectional data transfer between two independent data channels. Each of these data channels may be a file, pipe, device (serial line etc. or a pseudo terminal), a socket (UNIX, IP4, IP6 - raw, UDP, TCP), an SSL socket, proxy CONNECT connection, a file descriptor (stdin etc.), the GNU line editor (readline), a program, or a combination of two of these.
Security Fix(es):
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.(CVE-2026-56123)
- Record
OESA-2026-2943- 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 - Updated
- 2026-11-02
OSVUBUNTU-CVE-2026-56123
9.2
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.
- Record
UBUNTU-CVE-2026-56123- 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 - 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 - 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 - Updated
- 2026-11-02
OSVMGASA-2026-0290 No score
Updated socat package fixes a security vulnerability
The updated package fixes a security vulnerability: Heap Buffer Overflow via SOCKS5 Reply Parser. (CVE-2026-56123)
- Record
MGASA-2026-0290- Updated
- 2026-11-02
OSVopenSUSE-SU-2026:11151-1 No score
socat-1.8.1.3-1.1 on GA media
These are all security issues fixed in the socat-1.8.1.3-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2026:11151-1- Updated
- 2026-11-02
OSVROOT-OS-DEBIAN-13-CVE-2026-56123 No score
CVE-2026-56123 in socat - Patched by Root
Root has patched CVE-2026-56123 in the socat package for Root:Debian:13. Multiple fixed versions available.
- Record
ROOT-OS-DEBIAN-13-CVE-2026-56123- Updated
- 2026-11-02
OSVUSN-8511-1 No score
socat vulnerabilities
It was discovered that socat incorrectly handled the SOCKS5 proxy server reply parser. A remote attacker could possibly use this issue to execute arbitrary code. (CVE-2026-56123)
It was discovered that socat incorrectly handled a sample script. A local attacker could possibly use this issue to overwrite arbitrary files. This issue only affected Ubuntu 24.04 LTS. (CVE-2024-54661)
- Record
USN-8511-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
socatAlpine:v3.21 |
1.8.0.0 up to 1.8.1.2-r0 | 1.8.1.2-r0 |
socatAlpine:v3.22 |
1.8.0.0 up to 1.8.1.2-r0 | 1.8.1.2-r0 |
socatAlpine:v3.23 |
1.8.0.0 up to 1.8.1.2-r0 | 1.8.1.2-r0 |
socatAlpine:v3.24 |
1.8.0.0 up to 1.8.1.2-r0 | 1.8.1.2-r0 |
socatAlpaquita:25 |
1.8.0.3-r0 up to 1.8.1.2-r0 | 1.8.1.2-r0 |
socatAlpaquita:stream |
1.8.0.0-r0 up to 1.8.1.2-r0 | 1.8.1.2-r0 |
socatDebian:13 |
before 1.8.0.3-1+deb13u1, plus listed versions 1.8.0.3-1 |
1.8.0.3-1+deb13u1 |
socatDebian:14 |
before 1.8.1.3-1, plus listed versions 1.8.0.3-11.8.1.0-11.8.1.0-21.8.1.1-11.8.1.1-2 |
1.8.1.3-1 |
socatMageia:10 |
before 1.8.1.0-1.1.mga10 | 1.8.1.0-1.1.mga10 |
socatMageia:9 |
before 1.8.0.2-1.1.mga9 | 1.8.0.2-1.1.mga9 |
Show 6 moreShow less
| Package | Affected | Fixed |
|---|---|---|
socatopenEuler:24.03-LTS-SP3 |
before 1.8.1.3-1.oe2403sp3 | 1.8.1.3-1.oe2403sp3 |
socatopenEuler:24.03-LTS-SP1 |
before 1.8.1.3-1.oe2403sp1 | 1.8.1.3-1.oe2403sp1 |
socatUbuntu:24.04:LTS |
before 1.8.0.0-4ubuntu0.1, plus listed versions 1.7.4.4-21.8.0.0-41.8.0.0-4build11.8.0.0-4build21.8.0.0-4build3 |
1.8.0.0-4ubuntu0.1 |
socatUbuntu:25.10 |
All versions, plus listed versions 1.8.0.2-11.8.0.3-11.8.0.3-1build1 |
None known |
socatUbuntu:26.04:LTS |
before 1.8.1.1-1ubuntu0.1, plus listed versions 1.8.0.3-1build11.8.1.0-11.8.1.0-21.8.1.1-1 |
1.8.1.1-1ubuntu0.1 |
socatopenSUSE:Tumbleweed |
before 1.8.1.3-1.1 | 1.8.1.3-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | ||
| affected, aliases, published, references | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-56123 is a critical vulnerability (CVSS 9.2) in Dest-unreach Socat, published June 25, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.31%, the 24th percentile. Fixed in socat 1.8.1.2-r0.
References
dest-unreach.org/socat/CHANGES
vulncheck.com/advisories/socat-heap-buffer-overflow-via-socks5-reply-parser
nvd.nist.gov/vuln/detail/CVE-2026-56123
github.com/advisories/GHSA-6r8c-w5mj-43hv
security.alpinelinux.org/vuln/CVE-2026-56123
docs.bell-sw.com/security/cves/CVE-2026-56123
Show 11 moreShow less
security-tracker.debian.org/tracker/CVE-2026-56123
advisories.mageia.org/MGASA-2026-0290.html
bugs.mageia.org/show_bug.cgi?id=35794
lists.opensuse.org/archives/list/[email protected]/message/F6FLUO6FYZ6TSE43PLY7QJGUX4N2JXWW
ubuntu.com/security/notices/USN-8511-1
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2026-2942
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2026-2943
ubuntu.com/security/CVE-2026-56123
cve.org/CVERecord?id=CVE-2026-56123
ubuntu.com/security/CVE-2024-54661
suse.com/security/cve/CVE-2026-56123