Important: java-21-openjdk security update

java-21-openjdk Updated 02 Oct 2025

Summary

26/07/2024
N/A
Yes i
High
7.4

RLSA-2024:4573: Important: java-21-openjdk security update. Affects java-21-openjdk versions < 1:21.0.4.0.7-1.el8. Fixed in 1:21.0.4.0.7-1.el8. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The java-21-openjdk packages provide the OpenJDK 21 Java Runtime Environment and the OpenJDK 21 Java Software Development Kit. These packages are used for running Java applications and developing Java-based software. The vulnerability affects the java-21-openjdk package in Rocky Linux 8 and Rocky Linux 9.

Vulnerability Detail

The vulnerability in the java-21-openjdk package is categorized as important. It includes the following security issues:

  1. RangeCheckElimination array index overflow (CVE-2024-21147): This vulnerability can lead to an array index overflow, potentially resulting in arbitrary code execution.

  2. Potential UTF8 size overflow (CVE-2024-21131): This vulnerability can cause a size overflow in UTF8 encoding, leading to memory corruption and potential code execution.

  3. Excessive symbol length can lead to infinite loop (CVE-2024-21138): This vulnerability allows an attacker to create a symbol with an excessive length, causing an infinite loop and denial of service.

  4. Range Check Elimination (RCE) pre-loop limit overflow (CVE-2024-21140): This vulnerability can be exploited to overflow the pre-loop limit in Range Check Elimination, potentially leading to arbitrary code execution.

  5. Out-of-bounds access in 2D image handling (CVE-2024-21145): This vulnerability allows an attacker to access out-of-bounds memory in 2D image handling, potentially resulting in information disclosure or code execution.

How To Fix

Minimum fixed version

1:21.0.4.0.7-1.el8

This is the first release that contains the fix.

sudo dnf update java-21-openjdk

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Conclusion

The java-21-openjdk package in Rocky Linux is affected by multiple important vulnerabilities that can lead to various security risks. It is crucial to update the package to the fixed versions to mitigate these vulnerabilities and ensure the security of Java applications and software developed using OpenJDK 21.

See every vulnerability recorded for java-21-openjdk →

Share this vulnerability

FAQ

These vulnerabilities can lead to arbitrary code execution, memory corruption, denial of service, information disclosure, and potential security breaches.

At the time of this report, there are no known public exploits for these vulnerabilities. However, it is important to apply the security update as soon as possible to mitigate any potential risks.

Yes, all versions of the java-21-openjdk package prior to 1:21.0.4.0.7-1.el8 for Rocky Linux 8 and 1:21.0.4.0.7-1.el9 for Rocky Linux 9 are affected by these vulnerabilities.

Yes, these vulnerabilities can be exploited remotely if the affected system is running a vulnerable version of the java-21-openjdk package and is accessible over the network.

Currently, there are no known workarounds for these vulnerabilities. It is recommended to update the java-21-openjdk package to the fixed versions mentioned earlier.

Related vulnerabilities

Recent vulnerabilities recorded for java-21-openjdk.

How To Fix

Minimum fixed version

1:21.0.4.0.7-1.el8

This is the first release that contains the fix.

sudo dnf update java-21-openjdk

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback