GHSA-389x-839f-4rhx
Denial of Service attack on windows app using Netty
At a glance
- Published
- Updated
- CVE
- CVE-2025-25193
- CVSS_V3
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
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 packages
| Package | Versions |
|---|---|
| Maven · io.netty:netty-common | introduced 0, fixed 4.1.118.Final |
References
- https://github.com/netty/netty/security/advisories/GHSA-389x-839f-4rhx WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-25193 ADVISORY
- https://github.com/netty/netty/commit/d1fbda62d3a47835d3fb35db8bd42ecc205a5386 WEB
- https://github.com/netty/netty PACKAGE
- https://security.netapp.com/advisory/ntap-20250221-0006 WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — GitHub Advisory Database |