CVE-2025-24970: Netty handler SslHandler Doesn't Correctly Validate Packets Vulnerability
HIGHCVE-2025-24970 is a HIGH (CVSS 7.5) sslhandler doesn't correctly validate packets vulnerability (CWE-20: Improper Input Validation) affecting Netty handler libraries in the Maven ecosystem. The issue involves sslhandler doesn't correctly validate packets which can lead to native crash when using native sslengine. Remediation is available by upgrading affected packages to version 4.1.118.Final.
CVE-2025-24970 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-2025-24970
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.118.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-2025-24970, 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.118.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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. 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-2025-24970 Affected Netty handler Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
io.netty:netty-handler
|
Maven |
≥ 4.1.91.Final
< 4.1.118.Final
|
4.1.118.Final
|
References
Frequently Asked Questions
What is CVE-2025-24970?
Which Netty handler versions are affected?
What version fixes CVE-2025-24970?
Is netty-handler affected?
What is the CVSS score of CVE-2025-24970?
What CWE is associated with CVE-2025-24970?
How can I check Maven dependencies for CVE-2025-24970?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-4g8c-wm8x-jfhw",
"modified" : "2025-04-16T19:30:03Z",
"published" : "2025-02-10T17:38:10Z",
"aliases" : [ "CVE-2025-24970" ],
"summary" : "SslHandler doesn't correctly validate packets which can lead to native crash when using native SSLEngine",
"details" : "### Impact\nWhen a special crafted packet is received via SslHandler it doesn't correctly handle validation of such a packet in all cases which can lead to a native crash.\n\n### Workarounds\nAs workaround its possible to either disable the usage of the native SSLEngine or changing the code from:\n\n```\nSslContext context = ...;\nSslHandler handler = context.newHandler(....);\n```\n\nto:\n\n```\nSslContext context = ...;\nSSLEngine engine = context.newEngine(....);\nSslHandler handler = new SslHandler(engine, ....);\n```",
"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.1.91.Final"
}, {
"fixed" : "4.1.118.Final"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 4.1.117.Final"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/netty/netty/security/advisories/GHSA-4g8c-wm8x-jfhw"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-24970"
}, {
"type" : "WEB",
"url" : "https://github.com/netty/netty/commit/87f40725155b2f89adfde68c7732f97c153676c4"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/netty/netty"
}, {
"type" : "WEB",
"url" : "https://security.netapp.com/advisory/ntap-20250221-0005"
}, {
"type" : "WEB",
"url" : "https://www.vicarius.io/vsociety/posts/cve-2025-24970-netty-vulnerability-detection"
}, {
"type" : "WEB",
"url" : "https://www.vicarius.io/vsociety/posts/cve-2025-24970-netty-vulnerability-mitigation"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-02-10T17:38:10Z",
"nvd_published_at" : "2025-02-10T22:15:38Z"
}
}