CVE-2020-7238: Netty handler HTTP Request Smuggling Vulnerability
HIGHCVE-2020-7238 is a HIGH (CVSS 7.5) http request smuggling vulnerability (CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')) affecting Netty handler libraries in the Maven ecosystem. The issue involves http request smuggling in netty. Remediation is available by upgrading affected packages to version 4.1.45.
CVE-2020-7238 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).
How to Fix CVE-2020-7238
To remediate this vulnerability, upgrade all affected Netty handler dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-handler</artifactId>
<version>4.1.45</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=io.netty
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2020-7238, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=io.netty
Analyze the terminal output to locate any version of Netty handler in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.1.45), your application is affected.
Note: The mvn dependency:tree -Dincludes=io.netty command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling'), where the product acts as an intermediary http agent (such as a proxy or firewall) in the data flow between two entities such as a client and server, but it does not interpret malformed http requests or responses in ways that are consistent with how the messages will be processed by those entities that are at the ultimate destination. In Netty handler, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2020-7238 Affected Netty handler Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
io.netty:netty-handler
|
Maven |
≥ 4.1.43
< 4.1.45
|
4.1.45
|
References
Frequently Asked Questions
What is CVE-2020-7238?
Which Netty handler versions are affected?
What version fixes CVE-2020-7238?
Is netty-handler affected?
What is the CVSS score of CVE-2020-7238?
What CWE is associated with CVE-2020-7238?
How can I check Maven dependencies for CVE-2020-7238?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-ff2w-cq2g-wv5f",
"modified" : "2021-08-19T17:32:40Z",
"published" : "2020-02-21T18:55:50Z",
"aliases" : [ "CVE-2020-7238" ],
"summary" : "HTTP Request Smuggling in Netty",
"details" : "Netty 4.1.43.Final allows HTTP Request Smuggling because it mishandles Transfer-Encoding whitespace (such as a [space]Transfer-Encoding:chunked line) and a later Content-Length header. This issue exists because of an incomplete fix for CVE-2019-16869.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "io.netty:netty-handler"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.1.43"
}, {
"fixed" : "4.1.45"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 4.1.44"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-7238"
}, {
"type" : "WEB",
"url" : "https://github.com/jdordonezn/CVE-2020-72381/issues/1"
}, {
"type" : "WEB",
"url" : "https://github.com/netty/netty/issues/9861"
}, {
"type" : "WEB",
"url" : "https://github.com/netty/netty/pull/9865"
}, {
"type" : "WEB",
"url" : "https://www.debian.org/security/2021/dsa-4885"
}, {
"type" : "WEB",
"url" : "https://netty.io/news"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TS6VX7OMXPDJIU5LRGUAHRK6MENAVJ46"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2020/09/msg00003.html"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2020/02/msg00018.html"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2020/02/msg00017.html"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/rc8d554aad889d12b140d9fd7d2d6fc2e8716e9792f6f4e4b2cdc2d05@%3Ccommits.cassandra.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/r131e572d003914843552fa45c4398b9903fb74144986e8b107c0a3a7@%3Ccommits.cassandra.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2020:0811"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2020:0806"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2020:0805"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2020:0804"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2020:0606"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2020:0605"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2020:0601"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2020:0567"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2020:0497"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-444" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-02-20T20:54:49Z",
"nvd_published_at" : "2020-01-27T17:15:00Z"
}
}