Improper Validation of Specified Quantity in Input Affecting io.netty:netty-common package, versions [,4.1.118)[4.2.0.Alpha1,4.2.0.RC3)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-IONETTY-8707740
  • published11 Feb 2025
  • disclosed10 Feb 2025
  • creditChris Vest

Introduced: 10 Feb 2025

NewCVE-2025-25193  (opens in a new tab)
CWE-1284  (opens in a new tab)

How to fix?

Upgrade io.netty:netty-common to version 4.1.118, 4.2.0.RC3 or higher.

Overview

Affected versions of this package are vulnerable to Improper Validation of Specified Quantity in Input in BufferedReader.readLine(), which does not count null bytes when calculating the acceptable size of an input stream. An attacker can cause the application to crash by creating a large file in C:\etc\os-release or C:\usr\lib\os-release which the application attempts to load. If the file exceeds the JVM's memory limit (1 GB by default) the application will crash when loading it into memory.

Note: This vulnerability affects only Windows environments and is a bypass for the previously reported and fixed CVE-2024-47535.

CVSS Scores

version 4.0
version 3.1