Netty
Netty: CRLF Injection in Netty Redis Codec Encoder
Netty is an asynchronous, event-driven network application framework. Prior to 4.2.13.Final and 4.1.133.Final, the Netty Redis codec encoder (RedisEncoder) writes user-controlled string content directly to the network output buffer without validating or sanitizing CRLF (\r\n) characters. Since the Redis Serialization Protocol (RESP) uses CRLF as the command/response delimiter, an attacker who can control the content of a Redis message can inject arbitrary Redis commands or forge fake responses. This vulnerability is fixed in 4.2.13.Final and 4.1.133.Final.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 4.2.0.Alpha1, < 4.2.13.Final
- < 4.1.133.Final
Fixed in 4.2.13.Final, 4.1.133.Final
- >= 4.2.0.Alpha1, < 4.2.13.Final
- < 4.1.133.Final
Fixed in 4.2.13.Final, 4.1.133.Final
Mitigation
Upgrade netty to 4.2.13.Final or 4.1.133.Final or later.
Upgrade netty-codec-redis to 4.2.13.Final or 4.1.133.Final or later.
References
- Vendor advisory github.com/netty/netty/security/advisories/GHS…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.