CVE-2026-42586

Netty: CRLF Injection in Netty Redis Codec Encoder

State
Published
Severity
6.8 Medium
Published
May 13, 2026
Updated
May 14, 2026
Reserved
Apr 28, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.16.8 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:NGitHub_M

Weaknesses

  • CWE-93 Improper Neutralization of CRLF Sequences ('CRLF Injection')

Affected Products

ProductVersions
nettynetty
  • >= 4.2.0.Alpha1, < 4.2.13.FinalAffected
  • < 4.1.133.FinalAffected
netty-codec-redisio.netty
  • >= 4.2.0.Alpha1, < 4.2.13.FinalAffected
  • < 4.1.133.FinalAffected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.