CVE-2025-25193
Denial of Service attack on windows app using Netty
Description
Summary
An unsafe reading of environment file could potentially cause a denial of service in Netty. When loaded on an Windows application, Netty attemps to load a file that does not exist. If an attacker creates such a large file, the Netty application crash.
Details
A similar issue was previously reported in https://github.com/netty/netty/security/advisories/GHSA-xq3w-v528-46rv This issue was fixed, but the fix was incomplete in that null-bytes were not counted against the input limit.
PoC
The PoC is the same as for https://github.com/netty/netty/security/advisories/GHSA-xq3w-v528-46rv with the detail that the file should only contain null-bytes; 0x00.
When the null-bytes are encountered by the InputStreamReader, it will issue replacement characters in its charset decoding, which will fill up the line-buffer in the BufferedReader.readLine(), because the replacement character is not a line-break character.
Impact
Impact is the same as https://github.com/netty/netty/security/advisories/GHSA-xq3w-v528-46rv
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| io.netty » netty-common | < 4.1.118.Final | 4.1.118.Final |
Blast radius
62% of the dependent artifacts (33,889) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 63,471 |
| 2 hops | 265,537 |
| 3 hops | 650,520 |
| 4 hops | 561,492 |
| 5 hops | 346,593 |
| 6 hops | 244,108 |
Most used dependents
- org.testcontainers » testcontainers4,109 usages
- io.netty » netty-all3,584 usages
- org.apache.hadoop » hadoop-common3,482 usages
- org.apache.spark » spark-sql3,174 usages
- org.springframework.boot » spring-boot-starter-data-redis3,154 usages
- org.apache.kafka » kafka-clients3,135 usages
- org.apache.spark » spark-core2,899 usages
- org.springframework.boot » spring-boot-starter-webflux2,764 usages
- io.netty » netty-handler2,213 usages
- com.android.tools.build » gradle2,197 usages
- io.netty » netty-buffer2,121 usages
- io.vertx » vertx-core2,116 usages
- org.seleniumhq.selenium » selenium-java2,089 usages
- org.apache.zookeeper » zookeeper2,044 usages
- com.typesafe.play » play-test1,902 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
- Webhttps://github.com/netty/netty/security/advisories/GHSA-389x-839f-4rhx
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2025-25193
- Webhttps://github.com/netty/netty/commit/d1fbda62d3a47835d3fb35db8bd42ecc205a5386
- Packagehttps://github.com/netty/netty
- Webhttps://security.netapp.com/advisory/ntap-20250221-0006
