Intel

AIKIDO-2026-240696

netty-codec-socks is vulnerable to Null Byte Injection

Null Byte InjectionGHSA-cc6x-ffm5-83wf Published Yesterday

75

High Risk

This Affects:

JAVAnetty-codec-socks
4.1.0.Final - 4.1.136.Final
Fixed in 4.1.137.Final
4.2.0.Final - 4.2.16.Final
Fixed in 4.2.17.Final
Are you affected? Scan for Free

TL;DR

Netty's SOCKS4 and SOCKS5 client encoders write domain, userid, and credential fields without rejecting null bytes or CRLF sequences. In SOCKS5 a null byte truncates the intended hostname, allowing domain spoofing, and null or CRLF in credentials can bypass authentication. In SOCKS4 embedded nulls in the userid or domain create protocol ambiguity and redirect connections to unintended targets. The fix validates these fields during encoding.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application builds SOCKS4/5 requests with externally influenced domain, user, or credential fields.

Background info

netty-codec-socks is vulnerable to Null Byte Injection in versions 4.1.0.Final - 4.1.136.Final and 4.2.0.Final - 4.2.16.Final.

How to fix this

Upgrade the io.netty:netty-codec-socks library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform