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
    • 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-2021-21295

CVE-2021-21295: Netty HTTP/2 Request Smuggling Flaw

CVE-2021-21295 is a request smuggling vulnerability in Netty's HTTP/2 codec that occurs during HTTP/2 to HTTP/1.1 conversion. Attackers can exploit unvalidated Content-Length headers in proxy scenarios to smuggle malicious requests.

Published: February 25, 2026

CVE-2021-21295 Overview

CVE-2021-21295 is an HTTP Request Smuggling vulnerability in Netty, the popular open-source asynchronous event-driven network application framework. The vulnerability exists in the io.netty:netty-codec-http2 component prior to version 4.1.60.Final, where the Content-Length header is not validated by Http2MultiplexHandler when HTTP/2 requests are converted and proxied as HTTP/1.1.

When an HTTP/2 stream is received and converted to HTTP/1.1 domain objects (HttpRequest, HttpContent, etc.) via Http2StreamFrameToHttpObjectCodec, and then forwarded to a backend HTTP/1.1 connection, the unvalidated Content-Length header can be exploited. An attacker can smuggle additional requests inside the body of a legitimate request as the protocol is downgraded from HTTP/2 to HTTP/1.1.

Critical Impact

Attackers can bypass security controls, poison web caches, hijack user sessions, and perform unauthorized actions by smuggling malicious requests through proxy servers using unvalidated Content-Length headers during HTTP/2 to HTTP/1.1 protocol conversion.

Affected Products

  • Netty versions prior to 4.1.60.Final
  • NetApp OnCommand API Services
  • NetApp OnCommand Workflow Automation
  • Debian Linux 10.0
  • Quarkus (affected versions)
  • Apache Kudu (affected versions)
  • Apache ZooKeeper 3.5.9
  • Oracle Communications Cloud Native Core Policy 1.14.0

Discovery Timeline

  • 2021-03-09 - CVE-2021-21295 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-21295

Vulnerability Analysis

This vulnerability is classified as CWE-444 (Inconsistent Interpretation of HTTP Requests, also known as HTTP Request Smuggling). The flaw occurs in environments where Netty acts as a proxy, converting HTTP/2 traffic to HTTP/1.1 for backend communication.

The attack is possible when all three conditions are met: HTTP2MultiplexCodec or Http2FrameCodec is used, Http2StreamFrameToHttpObjectCodec is used to convert to HTTP/1.1 objects, and these HTTP/1.1 objects are forwarded to another remote peer. In such configurations, the Content-Length header from the original HTTP/2 request propagates without validation through the conversion pipeline.

HTTP/2's binary framing protocol inherently handles message boundaries differently than HTTP/1.1, which relies on Content-Length or Transfer-Encoding headers. When the unvalidated Content-Length is passed to an HTTP/1.1 backend, the backend server interprets the message boundaries according to that header, allowing attackers to embed smuggled requests within the message body.

Root Cause

The root cause is the absence of Content-Length validation in the Http2MultiplexHandler when HTTP/2 frames are converted to HTTP/1.1 objects. While HTTP/2 uses framing for message delineation, the Content-Length header becomes semantically significant once converted to HTTP/1.1. The Http2StreamFrameToHttpObjectCodec preserves the original headers without verifying that the Content-Length matches the actual payload size, creating a desynchronization opportunity between the proxy and backend server.

Attack Vector

The attack requires network access to a vulnerable Netty-based proxy that converts HTTP/2 to HTTP/1.1. An attacker crafts an HTTP/2 request with a manipulated Content-Length header that doesn't match the actual body length. When this request is forwarded to the HTTP/1.1 backend, the backend interprets the Content-Length literally, reading either too much or too little of the connection stream. The remainder (or excess) is interpreted as the beginning of a new request, allowing the attacker to inject arbitrary HTTP requests that bypass front-end security controls.

java
// Security patch in codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectDecoder.java
// Merge pull request from GHSA-wm47-8v5p-wjpj

 package io.netty.handler.codec.http;
 
 import static io.netty.util.internal.ObjectUtil.checkPositive;
-import static io.netty.util.internal.StringUtil.COMMA;
 
 import io.netty.buffer.ByteBuf;
 import io.netty.buffer.Unpooled;

Source: Netty Commit 89c241e

Detection Methods for CVE-2021-21295

Indicators of Compromise

  • Unusual HTTP/2 to HTTP/1.1 proxy behavior with mismatched Content-Length values in backend server logs
  • Unexpected requests appearing in backend server logs that were not initiated by legitimate clients
  • Web cache poisoning indicators where cached responses contain unexpected or malicious content
  • Session anomalies where users receive responses intended for other sessions

Detection Strategies

  • Monitor proxy logs for Content-Length header mismatches between HTTP/2 frontend and HTTP/1.1 backend connections
  • Implement deep packet inspection to detect HTTP request smuggling patterns in traffic between proxy tiers
  • Deploy web application firewalls (WAF) with HTTP desync detection capabilities
  • Audit application dependencies for Netty versions prior to 4.1.60.Final using software composition analysis tools

Monitoring Recommendations

  • Enable verbose logging on Netty-based proxies to capture Content-Length header values during protocol conversion
  • Set up alerts for abnormal request patterns on backend HTTP/1.1 servers that may indicate smuggled requests
  • Monitor for unexpected administrative actions or data access that could result from smuggled requests bypassing authentication
  • Track dependency versions across all applications using Netty to identify vulnerable deployments

How to Mitigate CVE-2021-21295

Immediate Actions Required

  • Upgrade Netty to version 4.1.60.Final or later immediately across all affected systems
  • Audit all applications using Netty's HTTP/2 codec components to identify vulnerable proxy configurations
  • Review network architecture to identify HTTP/2 to HTTP/1.1 conversion points that may be vulnerable
  • Implement the custom ChannelInboundHandler workaround if immediate patching is not possible

Patch Information

The vulnerability has been patched in Netty version 4.1.60.Final. The fix ensures proper validation of Content-Length headers during the HTTP/2 to HTTP/1.1 conversion process. Organizations should update their Netty dependencies by modifying their build configuration (Maven, Gradle, etc.) to use version 4.1.60.Final or later. Additional vendor-specific patches are available from Oracle, Debian, and NetApp.

Workarounds

  • Implement a custom ChannelInboundHandler that validates Content-Length headers and place it in the ChannelPipeline behind Http2StreamFrameToHttpObjectCodec
  • Configure backend HTTP/1.1 servers to reject requests with suspicious Content-Length mismatches
  • Consider temporarily disabling HTTP/2 to HTTP/1.1 conversion if the functionality is not critical
  • Deploy a WAF rule to detect and block HTTP request smuggling attempts at the network perimeter
java
// Custom ChannelInboundHandler workaround example placement
// Add validation handler behind Http2StreamFrameToHttpObjectCodec in the pipeline
pipeline.addAfter(
    "http2StreamFrameToHttpObjectCodec",
    "contentLengthValidator",
    new ContentLengthValidationHandler()
);

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechNetty

  • SeverityMEDIUM

  • CVSS Score5.9

  • EPSS Probability0.39%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-444
  • Technical References
  • Netty Security Advisory

  • Apache Ranger Developer Thread

  • Apache HBase Developer Thread

  • Apache ServiceComb Developer Thread

  • Apache Flink Developer Thread

  • Apache Kafka Jira Thread

  • Apache ServiceComb Developer Thread

  • Apache Zookeeper Developer Thread

  • Apache Zookeeper Issues Thread

  • Apache Zookeeper Commits Thread

  • Apache HBase Issues Thread

  • Apache HBase Issues Thread

  • Apache HBase Issues Thread

  • Apache Zookeeper Issues Thread

  • Apache ServiceComb Developer Thread

  • Apache Zookeeper Notifications Thread

  • Apache Zookeeper Issues Thread

  • Apache Zookeeper Developer Thread

  • Apache HBase Issues Thread

  • Apache Kafka Jira Thread

  • Apache Jackrabbit Developer Thread

  • Apache Zookeeper Issues Thread

  • Apache ServiceComb Developer Thread

  • Apache Kudu Issues Thread

  • Apache Zookeeper Notifications Thread

  • Apache Zookeeper Notifications Thread

  • Apache ServiceComb Developer Thread

  • Apache Pulsar Commits Thread

  • Apache Kafka Jira Thread

  • Apache Flink Issues Thread

  • Apache Kafka Jira Thread

  • Apache Kafka Developer Thread

  • Apache Flink Issues Thread

  • Apache Zookeeper Issues Thread

  • Apache Zookeeper Notifications Thread

  • Apache Zookeeper Commits Thread

  • Apache Zookeeper Notifications Thread

  • Apache HBase Issues Thread

  • Apache ServiceComb Commits Thread

  • Apache Zookeeper Commits Thread

  • Apache BookKeeper Issues Thread

  • Apache Ranger Developer Thread

  • Apache Zookeeper Commits Thread

  • Apache Flink Issues Thread

  • Apache HBase Issues Thread

  • Apache ServiceComb Commits Thread

  • Apache Zookeeper Notifications Thread

  • Apache Kafka Jira Thread

  • Apache HBase Developer Thread

  • Apache Kafka Jira Thread

  • Apache Pulsar Commits Thread

  • Apache Flink Developer Thread

  • Apache Kudu Issues Thread

  • Apache HBase Issues Thread

  • Apache ServiceComb Commits Thread

  • Apache Zookeeper Commits Thread

  • Apache ServiceComb Commits Thread

  • Apache Zookeeper Issues Thread

  • Apache Zookeeper Issues Thread

  • Apache Zookeeper Issues Thread

  • Apache Zookeeper Issues Thread

  • Apache Kafka Jira Thread

  • Apache ServiceComb Commits Thread

  • Apache Kudu Issues Thread

  • Apache Pulsar Commits Thread

  • Apache HBase Commits Thread

  • Apache ServiceComb Commits Thread

  • Apache Zookeeper Issues Thread

  • Apache Zookeeper Notifications Thread

  • Apache Zookeeper Issues Thread

  • NetApp Security Advisory

  • Debian Security Advisory

  • Oracle Security Alert

  • Lists Apache

  • Lists Apache

  • Lists Apache

  • Lists Apache

  • Lists Apache

  • Lists Apache

  • Lists Apache

  • Lists Apache

  • Lists Apache

  • Lists Apache

  • Lists Apache

  • Lists Apache

  • Lists Apache

  • Security Netapp

  • Debian
  • Vendor Resources
  • GitHub Pull Request

  • Netty Commit Update

  • Oracle
  • Related CVEs
  • CVE-2026-33870: Netty HTTP Request Smuggling Vulnerability

  • CVE-2025-58056: Netty Request Smuggling Vulnerability

  • CVE-2022-41915: Netty HTTP Response Splitting Vulnerability

  • CVE-2021-21409: Netty HTTP/2 Request Smuggling Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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