MediumGHSA-389x-839f-4rhxCVE-2025-25193

Denial of Service attack on windows app using Netty

Published 10 Feb 2025 · Updated 10 Sept 2026

Is your project on an affected io.netty:netty-common?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
<4.1.118.Final
Fixed in
4.1.118.Final
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=io.netty:netty-common -DdepVersion=4.1.118.Final -DforceVersion=true

Details

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

Is GHSA-389x-839f-4rhx in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected io.netty:netty-common, and gives you the command that fixes it.

More advisories for io.netty:netty-common

  • MediumCVE-2024-47535Denial of Service attack on windows app using netty · 12 Nov 2024
io.netty:netty-common security overview

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.