CVE-2016-4970: Netty handler Loop With Unreachable Exit Condition Vulnerability
HIGHCVE-2016-4970 is a HIGH (CVSS 7.5) loop with unreachable exit condition vulnerability (CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')) affecting Netty handler libraries in the Maven ecosystem. The issue involves loop with unreachable exit condition in netty. Remediation is available by upgrading affected packages to version 4.0.37.Final, 4.1.1.Final.
CVE-2016-4970 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:N/A:H).
How to Fix CVE-2016-4970
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.0.37.Final</version>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-handler</artifactId>
<version>4.1.1.Final</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-2016-4970, 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.0.37.Final), 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-835: Loop with Unreachable Exit Condition ('Infinite Loop'), where the product contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop. 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-2016-4970 Affected Netty handler Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
io.netty:netty-handler
|
Maven |
≥ 4.0.0.Alpha1
< 4.0.37.Final
|
4.0.37.Final
|
|
io.netty:netty-handler
|
Maven |
≥ 4.1.0.Beta1
< 4.1.1.Final
|
4.1.1.Final
|
References
Frequently Asked Questions
What is CVE-2016-4970?
Which Netty handler versions are affected?
What version fixes CVE-2016-4970?
Is netty-handler affected?
What is the CVSS score of CVE-2016-4970?
What CWE is associated with CVE-2016-4970?
How can I check Maven dependencies for CVE-2016-4970?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rv63-gqm8-9w8q",
"modified" : "2022-07-06T19:54:08Z",
"published" : "2022-05-13T01:11:43Z",
"aliases" : [ "CVE-2016-4970" ],
"summary" : "Loop with Unreachable Exit Condition in Netty",
"details" : "handler/ssl/OpenSslEngine.java in Netty 4.0.x before 4.0.37.Final and 4.1.x before 4.1.1.Final allows remote attackers to cause a denial of service (infinite loop).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "io.netty:netty-handler"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0.Alpha1"
}, {
"fixed" : "4.0.37.Final"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "io.netty:netty-handler"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.1.0.Beta1"
}, {
"fixed" : "4.1.1.Final"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2016-4970"
}, {
"type" : "WEB",
"url" : "https://github.com/netty/netty/pull/5364"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1343616"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/netty/netty"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/afaa5860e3a6d327eb96c3d82cbd2f5996de815a16854ed1ad310144@%3Ccommits.cassandra.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://wiki.opendaylight.org/view/Security_Advisories"
}, {
"type" : "WEB",
"url" : "http://netty.io/news/2016/06/07/4-0-37-Final.html"
}, {
"type" : "WEB",
"url" : "http://netty.io/news/2016/06/07/4-1-1-Final.html"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2017-0179.html"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2017-1097.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-835" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-07-06T19:54:08Z",
"nvd_published_at" : "2017-04-13T14:59:00Z"
}
}