The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-42586

CVE-2026-42586: Netty Redis Codec RCE Vulnerability

CVE-2026-42586 is a remote code execution vulnerability in Netty's Redis codec encoder that allows CRLF injection attacks. This article covers the technical details, affected versions, security impact, and mitigation.

Published: May 14, 2026

CVE-2026-42586 Overview

CVE-2026-42586 is a CRLF injection vulnerability [CWE-93] in the Netty asynchronous network application framework. The flaw affects the Redis codec encoder (RedisEncoder) in Netty versions prior to 4.2.13.Final and 4.1.133.Final. The encoder writes user-controlled string content directly to the network output buffer without validating or sanitizing carriage return and line feed (\r\n) characters. Because the Redis Serialization Protocol (RESP) uses CRLF as the command and response delimiter, an attacker who controls the content of a Redis message can inject arbitrary Redis commands or forge responses. Netty maintainers fixed the issue in releases 4.2.13.Final and 4.1.133.Final.

Critical Impact

Attackers controlling Redis message content can inject arbitrary Redis commands or forge fake responses, compromising data integrity in applications using the Netty Redis codec.

Affected Products

  • Netty 4.2.x versions prior to 4.2.13.Final
  • Netty 4.1.x versions prior to 4.1.133.Final
  • Applications using the Netty RedisEncoder to construct Redis Serialization Protocol messages

Discovery Timeline

  • 2026-05-13 - CVE-2026-42586 published to NVD
  • 2026-05-13 - Last updated in NVD database

Technical Details for CVE-2026-42586

Vulnerability Analysis

The vulnerability resides in the Netty RedisEncoder class, which serializes Redis Serialization Protocol (RESP) messages onto the wire. RESP uses the CRLF sequence (\r\n) as the structural delimiter between protocol elements such as bulk strings, command arguments, and response framing. The RedisEncoder writes user-supplied string content to the output buffer without filtering or rejecting embedded CRLF byte sequences. An attacker who influences the content of a Redis message can therefore break out of the intended protocol field and append additional RESP elements.

The impact depends on the direction of the affected traffic. On the client side, injected CRLF sequences can append additional commands to a single logical request, smuggling operations through a trusted Redis client. On the server side, an application using RedisEncoder to produce responses can be coerced into emitting forged response framing, misleading the receiving client about command results.

Root Cause

The root cause is missing output neutralization of CRLF metacharacters in a protocol encoder [CWE-93: Improper Neutralization of CRLF Sequences]. The encoder treats application-supplied strings as opaque payloads but writes them into a context where CRLF carries protocol semantics. No length-prefix enforcement or character rejection prevents the embedded delimiters from being interpreted by the peer.

Attack Vector

Exploitation requires that an attacker influence string values passed to the RedisEncoder. Typical attack paths include user-controlled keys, values, or arguments that an application forwards to Redis without first stripping CRLF characters. The attacker crafts input containing \r\n followed by a valid RESP fragment representing an unauthorized command such as FLUSHALL, CONFIG SET, or arbitrary key manipulation. When the encoder serializes the message, the peer parses the injected fragment as a separate, attacker-chosen protocol unit.

No verified public exploit code is available. Refer to the GitHub Security Advisory GHSA-rgrr-p7gp-5xj7 for technical details from the Netty maintainers.

Detection Methods for CVE-2026-42586

Indicators of Compromise

  • Redis server logs showing unexpected commands such as FLUSHALL, CONFIG, SCRIPT, or DEBUG originating from application clients that should not issue them.
  • Application logs containing user-supplied strings that include raw \r\n byte sequences prior to being passed to Redis client code.
  • Network captures of Redis traffic where a single application request frame contains multiple RESP commands separated by CRLF.

Detection Strategies

  • Inventory all Java applications using Netty and identify those that depend on io.netty:netty-codec-redis at versions earlier than 4.2.13.Final or 4.1.133.Final.
  • Add application-layer logging around Redis client calls to record argument values and flag entries containing CR (0x0D) or LF (0x0A) bytes.
  • Deploy network monitoring on Redis ports (default 6379) to alert on RESP frames where a bulk string length declaration does not match the actual byte count consumed before the next CRLF.

Monitoring Recommendations

  • Forward Redis MONITOR output or slowlog entries to a centralized logging pipeline and alert on administrative commands issued by non-administrative service accounts.
  • Enable software composition analysis in CI/CD to fail builds that pull vulnerable Netty versions transitively.
  • Track outbound connections from application servers to Redis instances and baseline command profiles per service.

How to Mitigate CVE-2026-42586

Immediate Actions Required

  • Upgrade Netty to 4.2.13.Final or 4.1.133.Final or later, ensuring transitive dependencies are also updated.
  • Audit application code paths that pass user-supplied data to the Netty Redis client and reject or strip CRLF characters before encoding.
  • Restrict Redis instances to authenticated, network-segmented access so injection cannot pivot to administrative operations.

Patch Information

The Netty maintainers fixed the vulnerability in versions 4.2.13.Final and 4.1.133.Final. Both branches receive parallel maintenance, so applications on the 4.1.x line do not need to migrate to 4.2.x to obtain the fix. Patch details are documented in the Netty Security Advisory GHSA-rgrr-p7gp-5xj7.

Workarounds

  • Validate all string inputs passed to RedisEncoder and reject values containing \r (0x0D) or \n (0x0A) bytes.
  • Wrap the Redis client API with a sanitization layer that enforces RESP-safe payloads before serialization.
  • Apply Redis ACLs to limit the commands available to application service accounts, reducing the blast radius of any injected command.
bash
# Maven dependency update example
# Update pom.xml to use the patched Netty version
# <dependency>
#   <groupId>io.netty</groupId>
#   <artifactId>netty-codec-redis</artifactId>
#   <version>4.1.133.Final</version>
# </dependency>
mvn versions:set-property -Dproperty=netty.version -DnewVersion=4.1.133.Final
mvn dependency:tree | grep netty

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechNetty

  • SeverityMEDIUM

  • CVSS Score6.8

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-93
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-42582: Netty Buffer Overflow Vulnerability

  • CVE-2026-44248: Netty MQTT Decoder DoS Vulnerability

  • CVE-2026-42587: Netty Decompression DoS Vulnerability

  • CVE-2026-42585: Netty Request Smuggling Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English