Skip to content
Fencer Vulns
medium 5.3

CVE-2022-21540 json

Vulnerability in the Oracle Java SE, Oracle GraalVM Enterprise Edition product of Oracle Java SE (component: Hotspot).

published 2022-07-19 4 y ago modified 2026-09-08 2 mo ago also BIT-java-2022-21540 , BIT-java-min-2022-21540 , BIT-jre-2022-21540 , EUVD-2022-26764

cvss
5.3
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
4.2%
EPSS 4.2% chance of exploitation in 30 days, percentile 90%
public exploits
0
none known

Summary

Vulnerability in the Oracle Java SE, Oracle GraalVM Enterprise Edition product of Oracle Java SE (component: Hotspot). Supported versions that are affected are Oracle Java SE: 7u343, 8u333, 11.0.15.1, 17.0.3.1, 18.0.1.1; Oracle GraalVM Enterprise Edition: 20.3.6, 21.3.2 and 22.1.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).

Patch / fix

  • bitnami java 1.7.0, 1.8.0, 7.0.351, 8.0.341, 11.0.16, 17.0.4, 18.0.2
  • bitnami java-min 1.7.0, 1.8.0, 7.0.351, 8.0.341, 11.0.16, 17.0.4, 18.0.2
  • bitnami jre 1.7.0, 1.8.0, 7.0.351, 8.0.341, 11.0.16, 17.0.4, 18.0.2
  • oracle graalvm 20.3.7, 21.3.3, 22.1.1
  • oracle graalvm_enterprise 20.3.7, 21.3.3, 22.1.1
  • oracle java_se 1.7.0_351, 1.8.0_341, 7.0.351, 8.0.341, 11.0.16, 17.0.4, 18.0.2
  • oracle jdk 1.7.0_351, 1.8.0_341, 7.0.351, 8.0.341, 11.0.16, 17.0.4, 18.0.2
  • oracle jre 1.7.0_351, 1.8.0_341, 7.0.351, 8.0.341, 11.0.16, 17.0.4, 18.0.2
  • sun java 1.7.0_351, 1.8.0_341, 7.0.351, 8.0.341, 11.0.16, 17.0.4, 18.0.2
  • sun java_se 1.7.0_351, 1.8.0_341, 7.0.351, 8.0.341, 11.0.16, 17.0.4, 18.0.2
  • sun jdk 1.7.0_351, 1.8.0_341, 7.0.351, 8.0.341, 11.0.16, 17.0.4, 18.0.2
  • sun jre 1.7.0_351, 1.8.0_341, 7.0.351, 8.0.341, 11.0.16, 17.0.4, 18.0.2
  • oracle openjdk 1.7.0_351, 1.8.0_341, 7.0.351, 8.0.341, 11.0.16, 17.0.4, 18.0.2
  • sun openjdk 1.7.0_351, 1.8.0_341, 7.0.351, 8.0.341, 11.0.16, 17.0.4, 18.0.2
  • openjdk-17 Debian 12 17.0.4+8-1

debian advisories DEBIAN-CVE-2022-21540

  • openjdk-8 Ubuntu 18.04 LTS 8u342-b07-0ubuntu1~18.04
  • openjdk-8 Ubuntu 20.04 LTS 8u342-b07-0ubuntu1~20.04
  • openjdk-8 Ubuntu 22.04 LTS 8u342-b07-0ubuntu1~22.04
  • openjdk-17 Ubuntu 18.04 LTS 17.0.4+8-1~18.04
  • openjdk-17 Ubuntu 20.04 LTS 17.0.4+8-1~20.04
  • openjdk-17 Ubuntu 22.04 LTS 17.0.4+8-1~22.04
  • openjdk-18 Ubuntu 22.04 LTS 18.0.2+9-2~22.04
  • openjdk-lts Ubuntu 18.04 LTS 11.0.16+8-0ubuntu1~18.04

ubuntu advisories UBUNTU-CVE-2022-21540

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • java-17-openjdk RHEL 9 1:17.0.4.0.8-2.el9_0
  • java-17-openjdk-src RHEL 9 1:17.0.4.0.8-2.el9_0
  • java-17-openjdk-demo RHEL 9 1:17.0.4.0.8-2.el9_0
  • java-17-openjdk-jmods RHEL 9 1:17.0.4.0.8-2.el9_0
  • java-17-openjdk-javadoc RHEL 9 1:17.0.4.0.8-2.el9_0
  • java-17-openjdk-headless RHEL 9 1:17.0.4.0.8-2.el9_0
  • java-17-openjdk-fastdebug RHEL 9 1:17.0.4.0.8-2.el9_0
  • java-17-openjdk-slowdebug RHEL 9 1:17.0.4.0.8-2.el9_0

red hat advisories RHSA-2022:5736RHSA-2022:5726RHSA-2022:5709RHSA-2022:5697RHSA-2022:5681RHSA-2022:5696

  • java-1_8_0-ibm SLES for SAP 15 SP2, SLES for SAP 15 SP1, SLES for SAP 15 +13 more 1.8.0_sr7.20-150000.3.65.1
  • java-1_8_0-ibm SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES 12 SP5 +6 more 1.8.0_sr7.15-30.96.1
  • java-1_8_0-openj9 openSUSE Leap 15.4, openSUSE Leap 15.3 1.8.0.345-150200.3.24.1
  • java-1_8_0-ibm SLES for SAP 15 SP2, SLES for SAP 15 SP1, SLES for SAP 15 +13 more 1.8.0_sr7.11-150000.3.62.1
  • java-1_8_0-ibm SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES 12 SP5 +6 more 1.8.0_sr7.11-30.93.1
  • java-1_7_1-ibm SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES 12 SP5 +6 more 1.7.1_sr5.15-38.74.1
  • java-1_8_0-openjdk SLES for SAP 15 SP2, SLES for SAP 15 SP1, SLES for SAP 15 +13 more 1.8.0.345-150000.3.70.1
  • java-1_8_0-openjdk SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES 12 SP5 +5 more 1.8.0.345-27.78.1

suse advisories SUSE-SU-2022:4166-1SUSE-SU-2022:3152-1SUSE-SU-2022:3092-1SUSE-SU-2022:2949-1SUSE-SU-2022:2899-1SUSE-SU-2022:2898-1

  • java-11-openj9 Package Hub 15 SP6, openSUSE Leap 15.6 11.0.26.0-bp156.4.3.1
  • java-13-openjdk openSUSE Tumbleweed 13.0.12.0-1.1
  • java-15-openjdk openSUSE Tumbleweed 15.0.8.0-1.1
  • java-18-openjdk openSUSE Tumbleweed 18.0.2.0-1.1
  • java-11-openjdk openSUSE Tumbleweed 11.0.16.0-1.1
  • java-17-openjdk openSUSE Tumbleweed 17.0.4.0-1.1
  • java-1_8_0-openjdk openSUSE Tumbleweed 1.8.0.345-1.1
  • java-11-openj9 openSUSE Tumbleweed 11.0.16.0-1.1

opensuse advisories openSUSE-SU-2025:0066-1openSUSE-SU-2024:12201-1openSUSE-SU-2024:12202-1openSUSE-SU-2024:12203-1openSUSE-SU-2024:12207-1openSUSE-SU-2024:12208-1

  • java-17-openjdk AlmaLinux 9 1:17.0.4.0.8-2.el9_0
  • java-17-openjdk-src AlmaLinux 9 1:17.0.4.0.8-2.el9_0
  • java-17-openjdk-demo AlmaLinux 9 1:17.0.4.0.8-2.el9_0
  • java-17-openjdk-jmods AlmaLinux 9 1:17.0.4.0.8-2.el9_0
  • java-17-openjdk-javadoc AlmaLinux 9 1:17.0.4.0.8-2.el9_0
  • java-17-openjdk-headless AlmaLinux 9 1:17.0.4.0.8-2.el9_0
  • java-17-openjdk-fastdebug AlmaLinux 9 1:17.0.4.0.8-2.el9_0
  • java-17-openjdk-slowdebug AlmaLinux 9 1:17.0.4.0.8-2.el9_0

almalinux advisories ALSA-2022:5736ALSA-2022:5695ALSA-2022:5696ALSA-2022:5709ALSA-2022:5683

  • java-17-openjdk Rocky Linux 8 1:17.0.4.0.8-2.el8_6
  • java-1.8.0-openjdk Rocky Linux 8 1:1.8.0.342.b07-2.el8_6
  • java-11-openjdk Rocky Linux 8 1:11.0.16.0.8-1.el8_6

rocky linux advisories RLSA-2022:5726RLSA-2022:5696RLSA-2022:5683

  • openjdk8 Alpine 3.24, Alpine 3.23, Alpine 3.22 +7 more 8.345.01-r0
  • openjdk11 Alpine 3.15 11.0.17_p8-r0
  • openjdk11 Alpine 3.24, Alpine 3.23, Alpine 3.22 +6 more 11.0.16_p8-r0
  • openjdk13 Alpine 3.18, Alpine 3.17, Alpine 3.16 13.0.12_p4-r0
  • openjdk15 Alpine 3.18, Alpine 3.17, Alpine 3.16 15.0.8_p4-r0
  • openjdk17 Alpine 3.24, Alpine 3.23, Alpine 3.22 +6 more 17.0.4_p8-r0

alpine advisories ALPINE-CVE-2022-21540

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-21540 updated cvss 5.3

OpenJDK: class compilation issue (Hotspot, 8281859)

  • Red Hat Enterprise Linux 6 java-1.6.0-openjdk, java-1.7.0-openjdk, java-1.8.0-openjdk, java-1.6.0-openjdk-src, java-1.7.0-openjdk-src, java-1.8.0-openjdk-src, +7 more Red Hat Enterprise Linux 7 java-1.6.0-openjdk, java-1.7.0-openjdk, java-1.6.0-openjdk-src, java-1.7.0-openjdk-src, java-1.6.0-openjdk-demo, java-1.7.0-openjdk-demo, +4 more
    affected: no fix planned “Out of support scope”
  • Red Hat Build of OpenJDK 8u342
    fixed: vendor fix RHSA-2022:5754
  • Red Hat Build of OpenJDK 11.0.16
    fixed: vendor fix RHSA-2022:5755
  • Red Hat Build of OpenJDK 17.0.4
    fixed: vendor fix RHSA-2022:5757
  • Red Hat CodeReady Linux Builder (v. 9) java-17-openjdk-fastdebug 17.0.4.0.8-2.el9_0, java-17-openjdk-slowdebug 17.0.4.0.8-2.el9_0, java-11-openjdk-fastdebug 11.0.16.0.8-1.el9_0, java-11-openjdk-slowdebug 11.0.16.0.8-1.el9_0, java-17-openjdk-src-fastdebug 17.0.4.0.8-2.el9_0, java-17-openjdk-src-slowdebug 17.0.4.0.8-2.el9_0, +32 more
    fixed: vendor fix RHSA-2022:5709
  • Red Hat Enterprise Linux AppStream (v. 8) java-17-openjdk 17.0.4.0.8-2.el8_6, java-11-openjdk 11.0.16.0.8-1.el8_6, java-17-openjdk-src 17.0.4.0.8-2.el8_6, java-11-openjdk-src 11.0.16.0.8-1.el8_6, java-17-openjdk-demo 17.0.4.0.8-2.el8_6, java-1.8.0-openjdk 1.8.0.342.b07-2.el8_6, +17 more
    fixed: vendor fix RHSA-2022:5696
  • Red Hat Enterprise Linux AppStream (v. 9) java-17-openjdk 17.0.4.0.8-2.el9_0, java-11-openjdk 11.0.16.0.8-1.el9_0, java-17-openjdk-src 17.0.4.0.8-2.el9_0, java-11-openjdk-src 11.0.16.0.8-1.el9_0, java-17-openjdk-demo 17.0.4.0.8-2.el9_0, java-1.8.0-openjdk 1.8.0.342.b07-1.el9_0, +16 more
    fixed: vendor fix RHSA-2022:5709
  • Red Hat Enterprise Linux AppStream E4S (v. 8.1) java-11-openjdk 11.0.16.0.8-1.el8_1, java-11-openjdk-src 11.0.16.0.8-1.el8_1, java-1.8.0-openjdk 1.8.0.342.b07-1.el8_1, java-11-openjdk-demo 11.0.16.0.8-1.el8_1, java-11-openjdk-jmods 11.0.16.0.8-1.el8_1, java-11-openjdk-javadoc 11.0.16.0.8-1.el8_1, +8 more
    fixed: vendor fix RHSA-2022:5701
show 6 more
  • Red Hat Enterprise Linux AppStream EUS (v. 8.2) java-11-openjdk 11.0.16.0.8-1.el8_2, java-11-openjdk-src 11.0.16.0.8-1.el8_2, java-1.8.0-openjdk 1.8.0.342.b07-1.el8_2, java-11-openjdk-demo 11.0.16.0.8-1.el8_2, java-11-openjdk-jmods 11.0.16.0.8-1.el8_2, java-11-openjdk-javadoc 11.0.16.0.8-1.el8_2, +9 more
    fixed: vendor fix RHSA-2022:5700
  • Red Hat Enterprise Linux AppStream EUS (v.8.4) java-11-openjdk 11.0.16.0.8-1.el8_4, java-11-openjdk-src 11.0.16.0.8-1.el8_4, java-1.8.0-openjdk 1.8.0.342.b07-1.el8_4, java-11-openjdk-demo 11.0.16.0.8-1.el8_4, java-11-openjdk-jmods 11.0.16.0.8-1.el8_4, java-11-openjdk-javadoc 11.0.16.0.8-1.el8_4, +9 more
    fixed: vendor fix RHSA-2022:5697
  • Red Hat Enterprise Linux Client (v. 7) java-11-openjdk 11.0.16.0.8-1.el7_9, java-1.8.0-openjdk 1.8.0.342.b07-1.el7_9, java-11-openjdk-headless 11.0.16.0.8-1.el7_9, java-1.8.0-openjdk-headless 1.8.0.342.b07-1.el7_9 Red Hat Enterprise Linux Client Optional (v. 7) java-11-openjdk-src 11.0.16.0.8-1.el7_9, java-11-openjdk-demo 11.0.16.0.8-1.el7_9, java-11-openjdk-jmods 11.0.16.0.8-1.el7_9, java-11-openjdk-javadoc 11.0.16.0.8-1.el7_9, java-1.8.0-openjdk-src 1.8.0.342.b07-1.el7_9, java-1.8.0-openjdk-demo 1.8.0.342.b07-1.el7_9, +5 more Red Hat Enterprise Linux ComputeNode Optional (v. 7) java-11-openjdk-src 11.0.16.0.8-1.el7_9, java-11-openjdk-demo 11.0.16.0.8-1.el7_9, java-11-openjdk-jmods 11.0.16.0.8-1.el7_9, java-11-openjdk-javadoc 11.0.16.0.8-1.el7_9, java-1.8.0-openjdk-src 1.8.0.342.b07-1.el7_9, java-1.8.0-openjdk-demo 1.8.0.342.b07-1.el7_9, +5 more
    fixed: vendor fix RHSA-2022:5698
  • Red Hat Enterprise Linux CRB (v. 8) java-17-openjdk-fastdebug 17.0.4.0.8-2.el8_6, java-17-openjdk-slowdebug 17.0.4.0.8-2.el8_6, java-11-openjdk-fastdebug 11.0.16.0.8-1.el8_6, java-11-openjdk-slowdebug 11.0.16.0.8-1.el8_6, java-17-openjdk-src-fastdebug 17.0.4.0.8-2.el8_6, java-17-openjdk-src-slowdebug 17.0.4.0.8-2.el8_6, +34 more
    fixed: vendor fix RHSA-2022:5696
  • Red Hat Enterprise Linux CRB EUS (v.8.4) java-11-openjdk-fastdebug 11.0.16.0.8-1.el8_4, java-11-openjdk-slowdebug 11.0.16.0.8-1.el8_4, java-11-openjdk-src-fastdebug 11.0.16.0.8-1.el8_4, java-11-openjdk-src-slowdebug 11.0.16.0.8-1.el8_4, java-1.8.0-openjdk-fastdebug 1.8.0.342.b07-1.el8_4, java-1.8.0-openjdk-slowdebug 1.8.0.342.b07-1.el8_4, +20 more
    fixed: vendor fix RHSA-2022:5697
  • Red Hat Enterprise Linux Server (v. 7) java-11-openjdk 11.0.16.0.8-1.el7_9, java-1.8.0-openjdk 1.8.0.342.b07-1.el7_9, java-11-openjdk-headless 11.0.16.0.8-1.el7_9, java-1.8.0-openjdk-headless 1.8.0.342.b07-1.el7_9 Red Hat Enterprise Linux Server Optional (v. 7) java-11-openjdk-src 11.0.16.0.8-1.el7_9, java-11-openjdk-demo 11.0.16.0.8-1.el7_9, java-11-openjdk-jmods 11.0.16.0.8-1.el7_9, java-11-openjdk-javadoc 11.0.16.0.8-1.el7_9, java-1.8.0-openjdk-src 1.8.0.342.b07-1.el7_9, java-1.8.0-openjdk-demo 1.8.0.342.b07-1.el7_9, +5 more Red Hat Enterprise Linux Workstation (v. 7) java-11-openjdk 11.0.16.0.8-1.el7_9, java-1.8.0-openjdk 1.8.0.342.b07-1.el7_9, java-11-openjdk-headless 11.0.16.0.8-1.el7_9, java-1.8.0-openjdk-headless 1.8.0.342.b07-1.el7_9 Red Hat Enterprise Linux Workstation Optional (v. 7) java-11-openjdk-src 11.0.16.0.8-1.el7_9, java-11-openjdk-demo 11.0.16.0.8-1.el7_9, java-11-openjdk-jmods 11.0.16.0.8-1.el7_9, java-11-openjdk-javadoc 11.0.16.0.8-1.el7_9, java-1.8.0-openjdk-src 1.8.0.342.b07-1.el7_9, java-1.8.0-openjdk-demo 1.8.0.342.b07-1.el7_9, +5 more
    fixed: vendor fix RHSA-2022:5698

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
yes
Technical impact
partial
Assessed
14 mo ago

Exploit prediction

4.17% chance of exploitation in the next 30 days, higher than 90% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
OSV 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Affected packages

ecosystem package affected fixed in
bitnami java
<1.7.0
>=1.8.0, <1.8.0
>=7.0.0, <7.0.351
>=8.0.0, <8.0.341
>=9.0.0, <11.0.16
>=12.0.0, <17.0.4
>=18.0.0, <18.0.2
1.7.0
1.8.0
7.0.351
8.0.341
11.0.16
17.0.4
18.0.2
bitnami java-min
<1.7.0
>=1.8.0, <1.8.0
>=7.0.0, <7.0.351
>=8.0.0, <8.0.341
>=9.0.0, <11.0.16
>=12.0.0, <17.0.4
>=18.0.0, <18.0.2
1.7.0
1.8.0
7.0.351
8.0.341
11.0.16
17.0.4
18.0.2
bitnami jre
<1.7.0
>=1.8.0, <1.8.0
>=7.0.0, <7.0.351
>=8.0.0, <8.0.341
>=9.0.0, <11.0.16
>=12.0.0, <17.0.4
>=18.0.0, <18.0.2
1.7.0
1.8.0
7.0.351
8.0.341
11.0.16
17.0.4
18.0.2

Affected products

  • Oracle Corporation Java SE JDK and JRE

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Updated Java versions.