PT-2020-6587 · Io.Netty+6 · Netty-Codec-Http2+6

Published

2020-02-25

·

Updated

2026-04-01

·

CVE-2021-21409

CVSS v3.1

5.9

Medium

VectorAV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Name of the Vulnerable Software and Affected Versions io.netty:netty-codec-http2 versions prior to 4.1.61.Final
Description The issue is related to a lack of proper validation of the content-length header in HTTP/2 requests. If a request only uses a single Http2HeaderFrame with the endStream set to true, the content-length header is not correctly validated. This could lead to request smuggling if the request is proxied to a remote peer and translated to HTTP/1.1. An attacker can smuggle requests inside the body as it gets downgraded from HTTP/2 to HTTP/1.1.
Recommendations For versions prior to 4.1.61.Final, update to version 4.1.61.Final to resolve the issue. As a temporary workaround, users can perform validation by themselves by implementing a custom ChannelInboundHandler that is put in the ChannelPipeline behind Http2StreamFrameToHttpObjectCodec. Validation can also be done by the user before proxying the request by validating the header.

Fix

DoS

HTTP Request/Response Smuggling

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

BDU:2022-00315
BIT-ZOOKEEPER-2021-21295
CLEANSTART-2026-CI66802
CVE-2021-21409
DSA-4885-1
GHSA-F256-J965-7F32
GHSA-WM47-8V5P-WJPJ
MGASA-2021-0374
OESA-2021-1161
OPENSUSE-SU-2022_1315-1
OPENSUSE-SU-2024:14442-1
RHSA-2021:1511
RHSA-2021:2692
RHSA-2021:2693
RHSA-2021:2694
RHSA-2021:3656
RHSA-2021:3658
RHSA-2022:5498
RLSA-2022:5498
SUSE-SU-2022:1315-1
USN-6049-1

Affected Products

Astra Linux
Linuxmint
Red Os
Rocky Linux
Suse
Ubuntu
Netty-Codec-Http2