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.
CVE-2021-21295
This medium-severity CVE scores 5.9 under NVD CVSS v3. EPSS exploit probability: 0.4%, top 41% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- Lower severity and no public exploit yet
A fix is available — apply it.
- CVSS v3
- 5.9
- EG Score
- 5.9(medium)
- EPSS
- 97.0%
- KEV
- Not listed
Published
March 9, 2021
Last Modified
November 21, 2024
References (182)
- security-advisories@githubhttps://github.com/Netflix/zuul/pull/980
- security-advisories@githubhttps://github.com/netty/netty/commit/89c241e3b1795ff257af4ad6eadc616cb2fb3dc4
- security-advisories@githubhttps://github.com/netty/netty/security/advisories/GHSA-wm47-8v5p-wjpj
- security-advisories@githubhttps://lists.apache.org/thread.html/r02e467123d45006a1dda20a38349e9c74c3a4b53e2e07be0939ecb3f%40%3Cdev.ranger.apache.org%3E
- security-advisories@githubhttps://lists.apache.org/thread.html/r040a5e4d9cca2f98354b58a70b27099672276f66995c4e2e39545d0b%40%3Cissues.hbase.apache.org%3E
- security-advisories@githubhttps://lists.apache.org/thread.html/r04a3e0d9f53421fb946c60cc54762b7151dc692eb4e39970a7579052%40%3Ccommits.servicecomb.apache.org%3E
- security-advisories@githubhttps://lists.apache.org/thread.html/r0b09f3e31e004fe583f677f7afa46bd30110904576c13c5ac818ac2c%40%3Cissues.flink.apache.org%3E
- security-advisories@githubhttps://lists.apache.org/thread.html/r15f66ada9a5faf4bac69d9e7c4521cedfefa62df9509881603791969%40%3Cjira.kafka.apache.org%3E
- security-advisories@githubhttps://lists.apache.org/thread.html/r16c4b55ac82be72f28adad4f8061477e5f978199d5725691dcc82c24%40%3Ccommits.servicecomb.apache.org%3E
- security-advisories@githubhttps://lists.apache.org/thread.html/r1908a34b9cc7120e5c19968a116ddbcffea5e9deb76c2be4fa461904%40%3Cdev.zookeeper.apache.org%3E
- security-advisories@githubhttps://lists.apache.org/thread.html/r1bca0b81193b74a451fc6d687ab58ef3a1f5ec40f6c61561d8dd9509%40%3Cissues.zookeeper.apache.org%3E
- security-advisories@githubhttps://lists.apache.org/thread.html/r22adb45fe902aeafcd0a1c4db13984224a667676c323c66db3af38a1%40%3Ccommits.zookeeper.apache.org%3E
- security-advisories@githubhttps://lists.apache.org/thread.html/r22b2f34447d71c9a0ad9079b7860323d5584fb9b40eb42668c21eaf1%40%3Cissues.hbase.apache.org%3E
- security-advisories@githubhttps://lists.apache.org/thread.html/r268850f26639ebe249356ed6d8edb54ee8943be6f200f770784fb190%40%3Cissues.hbase.apache.org%3E
- security-advisories@githubhttps://lists.apache.org/thread.html/r27b7e5a588ec826b15f38c40be500c50073400019ce7b8adfd07fece%40%3Cissues.hbase.apache.org%3E
Vendor Advisories for CVE-2021-21295(2)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Patch Availability(10)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| ubuntu | libnetty-java (1:4.0.34-1ubuntu0.1~esm1) @ xenial | 2026-05-26 | ubuntu |
| redhat | candlepin-0:4.1.13-1.el8sat | 2022-07-05 | redhat |
| redhat | netty | 2021-12-14 | redhat |
| redhat | patch | 2021-09-30 | redhat |
| redhat | eap7-netty-0:4.1.63-1.Final_redhat_00001.1.el8eap | 2021-09-23 | redhat |
| redhat | eap7-netty-0:4.1.63-1.Final_redhat_00001.1.el7eap | 2021-09-23 | redhat |
| redhat | eap7-yasson-0:1.0.9-1.redhat_00001.1.el7eap | 2021-05-19 | redhat |
| redhat | eap7-yasson-0:1.0.9-1.redhat_00001.1.el8eap | 2021-05-19 | redhat |
| redhat | eap7-yasson-0:1.0.9-1.redhat_00001.1.el6eap | 2021-05-19 | redhat |
| redhat | qpid-proton-0:0.33.0-8.el8 | 2021-05-06 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(3 across 1 ecosystem)
Maven(3)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| io.netty:netty | 3.10.0.Final ... 4.0.0.Alpha8 (71 versions) | — | — |
| io.netty:netty-codec-http2 | 4.1.0.Beta4 ... 4.1.9.Final (72 versions) | 4.1.60.Final | — |
| org.jboss.netty:netty | 3.0.0.CR1 ... 3.2.9.Final (39 versions) | — | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Additional Vendor Advisories
(17)
Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.
- Red HatRHSA-2021:0943MODERATE2021-03-09
RHSA-2021:0943 — Moderate
- Red HatRHSA-2021:0986MODERATE2021-03-09
RHSA-2021:0986 — Moderate
- Red HatRHSA-2021:1511MODERATE2021-03-09
RHSA-2021:1511 — Moderate
- Red HatRHSA-2021:2046MODERATE2021-03-09
RHSA-2021:2046 — Moderate
- Red HatRHSA-2021:2047MODERATE2021-03-09
RHSA-2021:2047 — Moderate
- Red HatRHSA-2021:2048MODERATE2021-03-09
RHSA-2021:2048 — Moderate
- Red HatRHSA-2021:2051MODERATE2021-03-09
RHSA-2021:2051 — Moderate
- Red HatRHSA-2021:2070MODERATE2021-03-09
RHSA-2021:2070 — Moderate
- Red HatRHSA-2021:2139MODERATE2021-03-09
RHSA-2021:2139 — Moderate
- Red HatRHSA-2021:2689MODERATE2021-03-09
RHSA-2021:2689 — Moderate
- Red HatRHSA-2021:2755MODERATE2021-03-09
RHSA-2021:2755 — Moderate
- Red HatRHSA-2021:3225MODERATE2021-03-09
RHSA-2021:3225 — Moderate
- Red HatRHSA-2021:3656MODERATE2021-03-09
RHSA-2021:3656 — Moderate
- Red HatRHSA-2021:3658MODERATE2021-03-09
RHSA-2021:3658 — Moderate
- Red HatRHSA-2021:3700MODERATE2021-03-09
RHSA-2021:3700 — Moderate
- Red HatRHSA-2021:3880MODERATE2021-03-09
RHSA-2021:3880 — Moderate
- UbuntuUSN-6049-1MEDIUM
Netty vulnerabilities
Data Freshness Timeline
(refreshed 7× in last 7d / 43× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-11 08:25 UTCEPSS rescore
- 2026-07-09 19:07 UTCEPSS rescore
- 2026-07-08 15:12 UTCEPSS rescore
- 2026-07-07 13:43 UTCEPSS rescore
- 2026-07-06 16:25 UTCEPSS rescore
- 2026-07-05 02:28 UTCEPSS rescore
- 2026-07-05 02:28 UTCEPSS rescore
- 2026-07-04 06:29 UTCEPSS rescore
- 2026-07-04 06:29 UTCEPSS rescore
- 2026-07-02 16:57 UTCEPSS rescore
- 2026-07-01 15:03 UTCEPSS rescore
- 2026-07-01 07:48 UTCOSV refresh
- 2026-06-30 23:20 UTCEPSS rescore
- 2026-06-30 23:20 UTCEPSS rescore
- 2026-06-28 14:05 UTCEPSS rescore
- 2026-06-28 04:54 UTCEPSS rescore
- 2026-06-28 04:54 UTCEPSS rescore
- 2026-06-27 03:06 UTCEPSS rescore
- 2026-06-27 03:06 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
Show 54 moreShow fewer
- 2026-06-22 14:24 UTCEPSS rescore
- 2026-06-22 14:23 UTCEPSS rescore
- 2026-06-21 14:54 UTCEPSS rescore
- 2026-06-21 14:54 UTCEPSS rescore
- 2026-06-21 01:58 UTCEPSS rescore
- 2026-06-21 01:57 UTCEPSS rescore
- 2026-06-19 19:24 UTCEPSS rescore
- 2026-06-19 19:24 UTCEPSS rescore
- 2026-06-18 17:51 UTCEPSS rescore
- 2026-06-18 17:51 UTCEPSS rescore
- 2026-06-17 17:51 UTCEPSS rescore
- 2026-06-16 17:50 UTCEPSS rescore
- 2026-06-15 17:46 UTCEPSS rescore
- 2026-06-14 23:15 UTCEPSS rescore
- 2026-06-13 22:58 UTCEPSS rescore
- 2026-06-13 12:13 UTCOSV refresh
- 2026-06-12 23:10 UTCEPSS rescore
- 2026-06-12 23:10 UTCEPSS rescore
- 2026-06-11 13:58 UTCEPSS rescore
- 2026-06-10 22:16 UTCEPSS rescore
- 2026-06-10 22:16 UTCEPSS rescore
- 2026-06-10 13:20 UTCEPSS rescore
- 2026-06-08 14:15 UTCEPSS rescore
- 2026-06-08 14:15 UTCEPSS rescore
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-05 22:45 UTCEPSS rescore
- 2026-06-05 22:45 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-05 06:08 UTCEPSS rescore
- 2026-06-04 13:10 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-01 13:50 UTCEPSS rescore
- 2026-06-01 13:50 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 00:15 UTCEPSS rescore
- 2026-05-31 00:15 UTCEPSS rescore
- 2026-05-29 13:42 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-27 13:39 UTCEPSS rescore
- 2026-05-26 20:00 UTCEG score recompute
- 2026-05-26 20:00 UTCVendor advisory
- 2026-05-26 13:42 UTCEPSS rescore
- 2026-05-26 13:42 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-24 16:49 UTCEPSS rescore
Frequently asked(5)
What is CVE-2021-21295?
When was CVE-2021-21295 disclosed?
Is CVE-2021-21295 actively exploited?
What is the CVSS score of CVE-2021-21295?
How do I remediate CVE-2021-21295?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2021-21295
Is Your Infrastructure Affected by CVE-2021-21295?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.