cve.bz

CVE-2021-21295 HTTP Request Smuggling

5.9 mediumEPSS 19%Fix available

Medium (5.9). EPSS 19% estimated probability of exploitation activity in the next 30 days. Fixed in io.netty:netty-codec-http2 4.1.60.Final.

On this page
Netty is an open-source, asynchronous event-driven network application framework for rapid development of maintainable high performance protocol servers & clients. In Netty (io.netty:netty-codec-http2) before version 4.1.60.Final there is a vulnerability that enables request smuggling. If a Content-Length header is present in the original HTTP/2 request, the field is not validated by `Http2MultiplexHandler` as it is propagated up. This is fine as long as the request is not proxied through as HTTP/1.1. If the request comes in as an HTTP/2 stream, gets converted into the HTTP/1.1 domain objects (`HttpRequest`, `HttpContent`, etc.) via `Http2StreamFrameToHttpObjectCodec `and then sent up to the child channel's pipeline and proxied through a remote peer as HTTP/1.1 this may result in request smuggling. In a proxy case, users may assume the content-length is validated somehow, which is not the case. If the request is forwarded to a backend channel that is a HTTP/1.1 connection, the Content-Length now has meaning and needs to be checked. An attacker can smuggle requests inside the body as it gets downgraded from HTTP/2 to HTTP/1.1. For an example attack refer to the linked GitHub Advisory. Users are only affected if all of this is true: `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. This has been patched in 4.1.60.Final As a workaround, the user can do the validation by themselves by implementing a custom `ChannelInboundHandler` that is put in the `ChannelPipeline` behind `Http2StreamFrameToHttpObjectCodec`.

Severity

CVSS 3.1

5.9 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS
19% (unchanged from 19% a week ago; 19% 30 days ago) estimated probability of exploitation activity in the next 30 days; 97th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-10-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-444 Inconsistent Interpretation of HTTP Requests (HTTP Request Smuggling)
OWASP Top 10
A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-21295 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-21295?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-21295?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-21295 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2021-21295

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2021-21295](https://cve.bz/cve/badge/CVE-2021-21295.svg)](https://cve.bz/cve/CVE-2021-21295)

HTML:

<a href="https://cve.bz/cve/CVE-2021-21295"><img src="https://cve.bz/cve/badge/CVE-2021-21295.svg" alt="CVE-2021-21295"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
netty:nettybefore 4.1.60
debian:debian_linux10.0
quarkus:quarkusthrough 1.13.7
apache:kudubefore 1.16.0
apache:zookeeper3.5.9
oracle:communications_cloud_native_core_policy1.14.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-wm47-8v5p-wjpjMavenio.netty:netty-codec-http2>=4.0.0 <4.1.60.Final4.1.60.Final
GHSA-wm47-8v5p-wjpjMavenorg.jboss.netty:nettyall versionsno fix published
GHSA-wm47-8v5p-wjpjMavenio.netty:nettyall versionsno fix published

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10netty1:4.1.33-1+deb10u2DSA-4885-1
Debian12, 13, 14netty1:4.1.48-3DEBIAN-CVE-2021-21295
Ubuntu22.04:LTSnetty1:4.1.48-4+deb11u1build0.22.04.1UBUNTU-CVE-2021-21295 USN-6049-1
UbuntuPro:16.04:LTSnetty1:4.0.34-1ubuntu0.1~esm1UBUNTU-CVE-2021-21295 USN-6049-1
UbuntuPro:18.04:LTSnetty1:4.1.7-4ubuntu0.1+esm2UBUNTU-CVE-2021-21295 USN-6049-1
UbuntuPro:20.04:LTSnetty1:4.1.45-1ubuntu0.1~esm1UBUNTU-CVE-2021-21295 USN-6049-1
Red Hata_mq_clients:2::el7qpid-proton, qpid-proton-c, qpid-proton-cpp and 9 more0:0.33.0-6.el7_9RHSA-2021:1511
Red Hata_mq_clients:2::el8qpid-proton, qpid-proton-c, qpid-proton-cpp and 14 more0:0.33.0-8.el8RHSA-2021:1511
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-artemis-wildfly-integration0:1.0.4-1.redhat_00001.1.el6eapRHSA-2021:2046
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-bouncycastle, eap7-bouncycastle-mail, eap7-bouncycastle-pkix and 1 more0:1.68.0-2.redhat_00005.1.el6eapRHSA-2021:2046
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-hal-console0:3.2.14-1.Final_redhat_00001.1.el6eapRHSA-2021:2046
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-infinispan, eap7-infinispan-core, eap7-infinispan-commons and 6 more0:9.4.22-3.Final_redhat_00001.1.el6eapRHSA-2021:2046
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-ironjacamar, eap7-ironjacamar-jdbc, eap7-ironjacamar-core-api and 6 more0:1.4.30-1.Final_redhat_00001.1.el6eapRHSA-2021:2046
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-jboss-genericjms0:2.0.9-1.Final_redhat_00001.1.el6eapRHSA-2021:2046
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-jboss-marshalling, eap7-jboss-marshalling-river0:2.0.11-1.Final_redhat_00001.1.el6eapRHSA-2021:2046
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-jboss-server-migration, eap7-jboss-server-migration-cli, eap7-jboss-server-migration-core and 19 more0:1.7.2-6.Final_redhat_00007.1.el6eapRHSA-2021:2046
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-jboss-weld-3.1-api, eap7-jboss-weld-3.1-api-weld-api, eap7-jboss-weld-3.1-api-weld-spi0:3.1.0-6.SP3_redhat_00001.1.el6eapRHSA-2021:2046
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-jgroups-kubernetes0:1.0.16-1.Final_redhat_00001.1.el6eapRHSA-2021:2046
84 more for Red Hat in the JSON and on Red Hat's page.
openSUSELeap 15.2netty4.1.13-lp152.3.3.1openSUSE-SU-2021:0448-1
openSUSELeap 15.3netty4.1.75-150200.4.6.2SUSE-SU-2022:1271-1
openSUSETumbleweednetty4.1.60-1.4openSUSE-SU-2024:11085-1
Rocky Linux8libdb0:5.3.28-42.el8_4RLSA-2022:5498

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat OpenStack Platform's OpenDaylight will not be updated for this flaw because it was deprecated as of OpenStack Platform 14 and is only receiving security fixes for Important and Critical flaws.

ProductPackageStateAdvisory
AMQ Clients 2.y for RHEL 7qpid-proton-0:0.33.0-6.el7_9Fixed 2021-05-06RHSA-2021:1511
AMQ Clients 2.y for RHEL 8qpid-proton-0:0.33.0-8.el8Fixed 2021-05-06RHSA-2021:1511
Red Hat AMQ 7.8.2nettyFixed 2021-07-12RHSA-2021:2689
Red Hat AMQ 7.9.0Fixed 2021-09-30RHSA-2021:3700
Red Hat AMQ Online 1.7.0 GAnettyFixed 2021-03-25RHSA-2021:0986
Red Hat AMQ Streams 1.8.0nettyFixed 2021-08-19RHSA-2021:3225
Red Hat build of Eclipse Vert.x 4.0.3nettyFixed 2021-03-31RHSA-2021:0943
Red Hat build of Quarkus 2.2.3nettyFixed 2021-10-20RHSA-2021:3880
Red Hat Data Grid 8.2.0nettyFixed 2021-05-26RHSA-2021:2139
Red Hat EAP-XP 2.0.0 via EAP 7.3.x basenettyFixed 2021-07-15RHSA-2021:2755
Red Hat build of QuarkusnettyAffected
Red Hat Decision Manager 7nettyNot affected
Red Hat JBoss A-MQ 6nettyOut of support scope
Red Hat JBoss Data Grid 7nettyOut of support scope
Red Hat JBoss Enterprise Application Platform 5nettyOut of support scope
Red Hat JBoss Enterprise Application Platform 6nettyOut of support scope
Red Hat JBoss Enterprise Application Platform Expansion PacknettyAffected
Red Hat JBoss Fuse 6nettyOut of support scope
Red Hat JBoss Operations Network 3nettyOut of support scope
Red Hat OpenShift Application RuntimesnettyWill not fix
79 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-21295.

Attack patterns (CAPEC)

  • CAPEC-33 HTTP Request Smuggling Likelihood: Medium · Severity: High
  • CAPEC-273 HTTP Response Smuggling Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON