CVE-2026-42586 Details
Description
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.
A CRLF injection vulnerability has been identified in the Netty Redis codec encoder, specifically in versions prior to 4.2.13.Final and 4.1.133.Final. The issue arises because the encoder writes user-controlled string content directly to the network output buffer without validating or sanitizing CRLF characters. This lack of validation allows an attacker to inject arbitrary Redis commands or forge fake responses, exploiting the fact that the Redis Serialization Protocol uses CRLF as a delimiter. The vulnerability is present in the 'io.netty.handler.codec.redis.RedisEncoder' component, as well as in related message classes that do not validate input before it is sent over the network.
To address this vulnerability, it is recommended to validate CRLF characters in the message constructors of 'InlineCommandRedisMessage', 'SimpleStringRedisMessage', and 'ErrorRedisMessage', as well as in the 'RedisEncoder' class before writing messages to the output buffer.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 14, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/netty/netty/security/advisories/GHSA-rgrr-p7gp-5xj7 | CISA-ADP | ExploitMitigationVendor Advisory |
| https://github.com/netty/netty/security/advisories/GHSA-rgrr-p7gp-5xj7 | [email protected] | ExploitMitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-93 | Improper Neutralization of CRLF Sequences ('CRLF Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| netty netty | < 4.1.133 >= 4.2.0, < 4.2.13 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 18, 2026 | Initial Analysis | [email protected] |
| May 14, 2026 | CVE Modified | CISA-ADP |
| May 13, 2026 | New CVE Received | [email protected] |