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

Published Jun 25, 2026
·
Updated

Last updated 6 July 2026

Other sources

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 bytestoread value that is implicitly converted to sizet, resulting in an unbounded heap write into the 262-byte reply buffer with attacker-controlled size and content.

MITRE

Affected Software

3 affected componentsFixes available
socat socat>=1.8.0.0<=1.8.1.1
dest-unreach Socat>=1.8.0.0<1.8.1.2
debian/socat<=1.7.4.1-3, <=1.7.4.4-2, <=1.8.0.3-1
1.8.1.3-2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/socat to a version that resolves this vulnerability.

    Fixed in 1.8.1.3-2
  2. Compensating control

    If you must keep using an affected socat version (1.8.0.0 through 1.8.1.1), avoid connecting through untrusted/malicious SOCKS5 proxy servers because the issue is exploitable by a malicious SOCKS5 proxy that crafts attacker-controlled DOMAINNAME reply data.

Event History

Jun 25, 2026
CVE Published
via MITRE·03:43 PM
Data Sourced
via MITRE·03:43 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:17 PM
DescriptionSeverityWeaknessAffected Software
Jul 6, 2026
Data Sourced
via Debian·03:32 PM
DescriptionAffected Software
Data Sourced
via Launchpad·03:32 PM
Description
Jul 7, 2026
Data Sourced
via Ubuntu·03:32 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-56123?

CVE-2026-56123 has a severity rating of 9.2, which is classified as critical.

2

How do I fix CVE-2026-56123?

To fix CVE-2026-56123, upgrade socat to version 1.8.1.2 or later.

3

What types of attacks can exploit CVE-2026-56123?

CVE-2026-56123 can be exploited by a malicious SOCKS5 proxy server using a specially crafted reply.

4

What is the impact of CVE-2026-56123?

The impact of CVE-2026-56123 includes the potential for arbitrary code execution through heap memory manipulation.

5

Which versions of socat are affected by CVE-2026-56123?

CVE-2026-56123 affects socat versions 1.8.0.0 through 1.8.1.1.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203