CVE-2022-21296: Infoleak
It was discovered that the XMLEntityManager class implementation in the JAXP component of OpenJDK did not properly perform access checks. A Java application using SAX XML parser in certain configuration could be tricked into disclosing information when parsing a specially-crafted XML file.
Other sources
Vulnerability in the Oracle Java SE, Oracle GraalVM Enterprise Edition product of Oracle Java SE (component: JAXP). 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 read access to a subset of Oracle Java SE, Oracle GraalVM Enterprise Edition accessible data. 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 (Confidentiality impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N).
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/javato a version that resolves this vulnerability.Fixed in 11-openjdk-1:11.0.14.0.9-1.el7_9 - Upgrade
Upgrade
redhat/javato a version that resolves this vulnerability.Fixed in 1.8.0-openjdk-1:1.8.0.322.b06-1.el7_9 - Upgrade
Upgrade
redhat/javato a version that resolves this vulnerability.Fixed in 17-openjdk-1:17.0.2.0.8-4.el8_5 - Upgrade
Upgrade
redhat/javato a version that resolves this vulnerability.Fixed in 11-openjdk-1:11.0.14.0.9-2.el8_5 - Upgrade
Upgrade
redhat/javato a version that resolves this vulnerability.Fixed in 1.8.0-openjdk-1:1.8.0.322.b06-2.el8_5 - Upgrade
Upgrade
redhat/javato a version that resolves this vulnerability.Fixed in 11-openjdk-1:11.0.14.0.9-1.el8_1 - Upgrade
Upgrade
redhat/javato a version that resolves this vulnerability.Fixed in 1.8.0-openjdk-1:1.8.0.322.b06-1.el8_1 - Upgrade
Upgrade
redhat/javato a version that resolves this vulnerability.Fixed in 11-openjdk-1:11.0.14.0.9-1.el8_2 - Upgrade
Upgrade
redhat/javato a version that resolves this vulnerability.Fixed in 1.8.0-openjdk-1:1.8.0.322.b06-1.el8_2 - Upgrade
Upgrade
redhat/javato a version that resolves this vulnerability.Fixed in 11-openjdk-1:11.0.14.0.9-2.el8_4 - Upgrade
Upgrade
redhat/javato a version that resolves this vulnerability.Fixed in 1.8.0-openjdk-1:1.8.0.322.b06-2.el8_4 - Upgrade
Upgrade
debian/openjdk-11to a version that resolves this vulnerability.Fixed in 11.0.16+8-1~deb10u1Fixed in 11.0.21+9-1~deb10u1Fixed in 11.0.20+8-1~deb11u1Fixed in 11.0.21+9-1~deb11u1Fixed in 11.0.22~6ea-1 - Upgrade
Upgrade
debian/openjdk-17to a version that resolves this vulnerability.Fixed in 17.0.7+7-1~deb11u1Fixed in 17.0.9+9-1~deb11u1Fixed in 17.0.9+9-1~deb12u1Fixed in 17.0.9+9-2Fixed in 17.0.10~6ea-1 - Upgrade
Upgrade
debian/openjdk-8to a version that resolves this vulnerability.Fixed in 8u392-ga-1 - Upgrade
Upgrade
Oracle Java SE / Oracle GraalVM Enterprise Edition (JAXP - XMLEntityManager)to a version that resolves this vulnerability.Fixed in 7u321 - Upgrade
Upgrade
Oracle Java SE / Oracle GraalVM Enterprise Edition (JAXP - XMLEntityManager)to a version that resolves this vulnerability.Fixed in 8u311 - Upgrade
Upgrade
Oracle Java SE / Oracle GraalVM Enterprise Edition (JAXP - XMLEntityManager)to a version that resolves this vulnerability.Fixed in 11.0.13 - Upgrade
Upgrade
Oracle Java SE / Oracle GraalVM Enterprise Edition (JAXP - XMLEntityManager)to a version that resolves this vulnerability.Fixed in 17.0.1 - Upgrade
Upgrade
Oracle Java SE / Oracle GraalVM Enterprise Edition (JAXP - XMLEntityManager)to a version that resolves this vulnerability.Fixed in 20.3.4 - Upgrade
Upgrade
Oracle Java SE / Oracle GraalVM Enterprise Edition (JAXP - XMLEntityManager)to a version that resolves this vulnerability.Fixed in 21.3.0
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is the severity of CVE-2022-21296?
CVE-2022-21296 has been classified as a medium severity vulnerability.
How do I fix CVE-2022-21296?
To fix CVE-2022-21296, upgrade to the patched versions of OpenJDK as specified in the remediation details.
What software versions are affected by CVE-2022-21296?
CVE-2022-21296 affects multiple versions of OpenJDK, including 1.8, 11, and 17, prior to their respective fixed releases.
What is the impact of CVE-2022-21296?
The impact of CVE-2022-21296 can lead to information disclosure when processing specially-crafted XML files.
Is CVE-2022-21296 exploitable in all configurations?
CVE-2022-21296 is exploitable in specific configurations of Java applications that use the SAX XML parser.