CVE-2025-30691
Description
A flaw was found in the OpenJDK compiler. An unauthenticated remote attacker can exploit an integer overflow during loop-limit calculations by supplying crafted input to compiler interfaces or executing untrusted code. Successful exploitation can allow unauthorized read and write access to sensitive application data.
Statement
A flaw was found in the OpenJDK just-in-time (JIT) compiler where a change to loop-limit adjustments introduced a possible overflow in the computation of loop limits. This Moderate-impact vulnerability is difficult to exploit: an unauthenticated attacker with network access who is able to supply data to the affected compiler APIs, for example through a web service that feeds data to those APIs, could gain unauthorized read access and unauthorized update, insert, or delete access to a subset of Java SE accessible data. The flaw is primarily a concern for Java deployments, typically in clients, that load and run untrusted code (such as sandboxed Java Web Start applications or sandboxed Java applets) and rely on the Java sandbox for security. Red Hat Product Security rates this flaw as Moderate impact with CVSS 4.8 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N), consistent with the upstream Oracle severity. The OpenJDK packages in Red Hat Enterprise Linux (java-1.8.0-openjdk, java-17-openjdk, and java-21-openjdk), the Red Hat Build of OpenJDK, and the OpenJDK used by Red Hat Insights are affected; fixes are being pursued for these products and have already been delivered through the errata process for many affected streams. IBM Java 1.8.0 and IBM Semeru Certified JDK 21 builds in Red Hat Enterprise Linux, as well as the OpenJDK builds shipped in Red Hat In-Vehicle OS, are not affected because the vulnerable code is not present in those builds. Older OpenJDK streams that are out of support scope (for example java-1.6.0-openjdk and java-1.7.0-openjdk in RHEL 6 and 7 Extended Life Cycle Support) will not receive fixes.
Mitigation
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability. For supported affected products, updated OpenJDK packages that remediate this flaw have been delivered through Red Hat errata; users are advised to install the latest available updates.
Common Vulnerability Scoring System (CVSS) Score Details
Info alert:Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).
CVSS v3 Score Breakdown
| Red Hat | NVD | cve.org | |
|---|---|---|---|
| Base Score | 4.8 | N/A | 4.8 |
| Attack Vector | Network | N/A | Network |
| Attack Complexity | High | N/A | High |
| Privileges Required | None | N/A | None |
| User Interaction | None | N/A | None |
| Scope | Unchanged | N/A | Unchanged |
| Confidentiality | Low | N/A | Low |
| Integrity Impact | Low | N/A | Low |
| Availability Impact | None | N/A | None |
Vector
Red Hat: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
cve.org: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Understanding the Weakness (CWE)
Integrity,Confidentiality,Availability
Technical Impact: Modify Memory; Execute Unauthorized Code or Commands
Buffer overflows often can be used to execute arbitrary code, which is usually outside the scope of the product's implicit security policy. This can often be used to subvert any other security service.
Availability
Technical Impact: Modify Memory; DoS: Crash, Exit, or Restart; DoS: Resource Consumption (CPU)
Buffer overflows generally lead to crashes. Other attacks leading to lack of availability are possible, including putting the product into an infinite loop.
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.