Security Update for java-21-openjdk: Moderate Vulnerability in AlmaLinux
Summary
ALSA-2025:0426: Moderate: java-21-openjdk security update for AlmaLinux 8.10, 9.4 and 9.5. Affects java-21-openjdk versions < 1:21.0.6.0.7-1.el8. Fixed in 1:21.0.6.0.7-1.el8. How to fix ↓
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.
No signup required · Results in about 60 seconds
Background
The java-21-openjdk package provides the OpenJDK 21 Java Runtime Environment and Software Development Kit, enabling developers to build and run Java applications. It is widely used for its performance and compatibility with various Java applications. However, like any software, it can be susceptible to vulnerabilities that may compromise its security and functionality.
Vulnerability Detail
The vulnerability identified as CVE-2025-21502 pertains to an enhancement in array handling within the JDK. This issue could potentially allow an attacker to exploit the vulnerability, leading to unauthorized access or manipulation of data within Java applications. The impact of this vulnerability could range from data breaches to service disruptions, making it critical for users to address it promptly.
How To Fix
Minimum fixed version
1:21.0.6.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 →
Workaround
As a temporary workaround, users can limit the use of the affected features in their applications until the update is applied. It is advisable to review application code for any direct use of array handling that could be exploited and implement additional input validation where possible.
Conclusion
The java-21-openjdk package has a moderate vulnerability (CVE-2025-21502) that requires immediate attention. Users are encouraged to update to the patched version to safeguard their applications against potential exploits. Regular monitoring and timely updates are essential for maintaining software security.
See every vulnerability recorded for java-21-openjdk →
FAQ
CVE-2025-21502 is a security vulnerability in the java-21-openjdk package that enhances array handling, potentially allowing unauthorized access to data.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
Failing to update may expose your application to security risks, including data breaches and unauthorized access, which can have severe consequences.
Yes, Vulert can monitor and alert you in real-time for open-source vulnerabilities using just a manifest file like package-lock.json.
If immediate updates are not possible, review your application for vulnerabilities and implement additional security measures to mitigate risks.
Related vulnerabilities
Recent vulnerabilities recorded for java-21-openjdk.