CVE-2022-21340: Medium severity IBM Security Guardium vulnerability
A flaw was found in the way the Attributes class in the Libraries component of OpenJDK performed reading of attributes with very long values from JAR file manifests. A specially-crafted JAR archive could cause a Java application reading its manifest to use excessive amount of system resources and hang.
Other sources
An unspecified vulnerability in Java SE related to the Libraries component could allow an unauthenticated attacker to cause a denial of service resulting in a low availability impact using unknown attack vectors.
— IBM
Vulnerability in the Oracle Java SE, Oracle GraalVM Enterprise Edition product of Oracle Java SE (component: Libraries). Supported versions that are affected are Oracle Java SE: 7u321, 8u311, 11.0.13, 17.0.1; Oracle GraalVM Enterprise Edition: 20.3.4 and 21.3.0. Easily exploitable vulnerability allows unauthenticated attacker with network access via multiple protocols to compromise Oracle Java SE, Oracle GraalVM Enterprise Edition. Successful attacks of this vulnerability can result in unauthorized ability to cause a partial denial of service (partial DOS) of Oracle Java SE, Oracle GraalVM Enterprise Edition. Note: This vulnerability 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. This vulnerability can also be exploited by using APIs in the specified Component, e.g., through a web service which supplies data to the APIs. CVSS 3.1 Base Score 5.3 (Availability impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L).
Affected Software
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is the severity of CVE-2022-21340?
The severity of CVE-2022-21340 is rated as high due to its potential to cause excessive resource consumption.
How do I fix CVE-2022-21340?
To fix CVE-2022-21340, upgrade to the recommended patched versions of OpenJDK as specified by your vendor, such as 11-openjdk-1:11.0.14.0.9-2.el8_5 or equivalent.
Which Java versions are affected by CVE-2022-21340?
CVE-2022-21340 affects multiple Java versions, including OpenJDK 7, 8, 11, and 17, as well as provided IBM and Oracle versions.
What impact does CVE-2022-21340 have on systems?
CVE-2022-21340 can lead to denial of service conditions by causing Java applications to use excessive system resources.
Are there any workarounds for CVE-2022-21340?
While applying the patch is the best mitigation, temporarily limiting the size of JAR files and monitoring resource usage can help mitigate the issue.