Loop with Unreachable Exit Condition ('Infinite Loop') Affecting openjdk-jre package, versions [1.8.0,1.8.421)[11.0.0,11.0.24)[17.0.0,17.0.12)[21.0.0,21.0.4)[22.0.0,22.0.2)


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.05% (19th percentile)

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-UPSTREAM-OPENJDKJRE-7462097
  • published17 Jul 2024
  • disclosed16 Jul 2024
  • creditUnknown

Introduced: 16 Jul 2024

CVE-2024-21138  (opens in a new tab)
CWE-835  (opens in a new tab)

How to fix?

Upgrade openjdk-jre to version 8.421, 11.0.24, 17.0.12, 21.0.4, 22.0.2 or higher.

Overview

openjdk-jre is a free and open-source implementation of the Java Platform, Standard Edition (Java SE).

Affected versions of this package are vulnerable to Loop with Unreachable Exit Condition ('Infinite Loop') due to excessive symbol length. An attacker can cause the application to enter an infinite loop by manipulating input data to include overly long symbols.

Exploiting this vulnerability is possible by using the Hotspot APIs through a web service which supplies data to this API. This vulnerability also applies to Java deployments, typically in clients running sandboxed Java Web Start applications or sandboxed Java applets, that load and run untrusted code (e.g., code that comes from the internet) and rely on the Java sandbox for security.

CVSS Scores

version 4.0
version 3.1