WaratekVRT Sign in

CVE-2022-21540 Oracle Java SE

Affected softwareOracle Java SE
Affected versionsOracle 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, 22.1.0
Severity5.3 Medium CVSS 3.1
Fixed inOracle Critical Patch Update July 2022
WeaknessUse after free (CWE-416)
Published19 Jul 2022
Updated3 Nov 2026

Description

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).

Exploitation status

No public exploit

No exploit has been reported in the sources we check. Published 4 years ago.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment exploitation: none
  • Indexed PoC none indexed
  • EPSS 4.2% chance in 30 days

Waratek protection

Outside Waratek scope

A Java vulnerability, but not one Waratek protects. It affects only Java on a user's desktop (applets, Web Start, JavaFX, the installer), sits in a product the Waratek agent can't be installed into, or is in a package we don't expect in business applications. The decision below says which.

  • Protection none
  • Action not pursued none
  • Review automated AI triage
  • Record active
Decided by A researcher's recorded decision for this specific CVE
Finding An AI triage run set this CVE's status to Outside Waratek scope.

Waratek research note

written 2026-11-13

Written by a Waratek engineer who reviewed this CVE. Their decision sets the status above, ahead of every automated rule except a withdrawal.

Comments

The flaw is inside the JDK's just-in-time compiler. When it compiled certain code, it could hand that code a class the code was not allowed to reach, so untrusted code could read a small amount of data it should not see. No public exploit exists. Oracle fixed it in native C++ in ciEnv.cpp (ciEnv::get_constant_by_index_impl); that work runs inside HotSpot below bytecode and never crosses an ARMR hook, so agent rules and virtual patches cannot reach it. Upgrade the JDK to a release that includes JDK-8281859, such as 8u342, 11.0.16 or 17.0.4 or later.

Affected software and releases

Oracle advisories

AdvisoryTypeQuarterProducts Oracle names in its risk matrix
Oracle Critical Patch Update July 2022 ↗ CPU 2022-Q3 Oracle Java SE / Hotspot (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, 22.1.0)
Oracle's 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.

Oracle components and versions

FamilyComponentVersions, as Oracle lists themRead as
Oracle Java SE Hotspot 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, 22.1.0 7.0.343.0 · 8.0.333.0 · 11.0.15.0 · 17.0.3.0 · 18.0.1.0 · 20.3.6.0 · 21.3.2.0 · 22.1.0.0

Products and versions

15 products, 156 version entries
SourceVendorProductSchemeAffected versions
nvd azul zulu generic 6.47 · 7.54 · 8.62 · 11.56 · 13.48 · 15.40 · 17.34 · 18.30
nvd debian debian linux generic 10.0 · 11.0
nvd fedoraproject fedora generic 36
nvd netapp 7-mode transition tool generic any version
nvd netapp active iq unified manager generic any version
nvd netapp cloud insights acquisition unit generic any version
nvd netapp cloud secure agent generic any version
nvd netapp hci compute node generic any version
nvd netapp hci management node generic any version
nvd netapp oncommand insight generic any version
nvd netapp solidfire generic any version
nvd oracle graalvm javase 20.3.6 · 21.3.2 · 22.1.0
nvd oracle jdk javase 1.7.0:update343 · 1.8.0:update333 · 11.0.15.1 · 17.0.3.1 · 18.0.1.1
nvd oracle jre javase 1.7.0:update343 · 1.8.0:update333 · 11.0.15.1 · 17.0.3.1 · 18.0.1.1
nvd oracle openjdk javase 7 · 7:update1 · 7:update2 · 7:update3 · 7:update4 · 7:update5 · 7:update6 · 7:update7 · 7:update9 · 7:update10 · 7:update11 · 7:update13 · 7:update15 · 7:update17 · 7:update21 · 7:update25 · 7:update40 · 7:update45 · 7:update51 · 7:update55 · 7:update60 · 7:update65 · 7:update67 · 7:update72 · 7:update76 · 7:update80 · 7:update85 · 7:update91 · 7:update95 · 7:update97 · 7:update99 · 7:update101 · 7:update111 · 7:update121 · 7:update131 · 7:update141 · 7:update151 · 7:update161 · 7:update171 · 7:update181 · 7:update191 · 7:update201 · 7:update211 · 7:update221 · 7:update231 · 7:update241 · 7:update251 · 7:update261 · 7:update271 · 7:update281 · 7:update291 · 7:update301 · 7:update311 · 7:update321 · 8 · 8:milestone1 · 8:milestone2 · 8:milestone3 · 8:milestone4 · 8:milestone5 · 8:update5 · 8:milestone6 · 8:milestone7 · 8:milestone8 · 8:milestone9 · 8:update11 · 8:update20 · 8:update25 · 8:update31 · 8:update40 · 8:update45 · 8:update51 · 8:update60 · 8:update65 · 8:update66 · 8:update71 · 8:update72 · 8:update73 · 8:update74 · 8:update77 · 8:update91 · 8:update92 · 8:update101 · 8:update102 · 8:update111 · 8:update112 · 8:update121 · 8:update131 · 8:update141 · 8:update151 · 8:update152 · 8:update161 · 8:update162 · 8:update171 · 8:update172 · 8:update181 · 8:update191 · 8:update192 · 8:update201 · 8:update202 · 8:update211 · 8:update212 · 8:update221 · 8:update222 · 8:update231 · 8:update232 · 8:update241 · 8:update242 · 8:update252 · 8:update262 · 8:update271 · 8:update281 · 8:update282 · 8:update291 · 8:update301 · 8:update302 · 8:update312 · 8:update322 · 8:update332 · ≥ 11.0.0.0 and ≤ 11.0.15.0 · ≥ 13.0.0.0 and ≤ 13.0.11.0 · ≥ 15.0.0.0 and ≤ 15.0.7.0 · ≥ 17.0.0.0 and ≤ 17.0.3.0 · 18

References

URLTags
https://access.redhat.com/errata/RHSA-2022:5681 ADVISORY, RHSA-2022:5681
https://access.redhat.com/security/cve/CVE-2022-21540 REPORT, RHSA-2022:5681
https://access.redhat.com/errata/RHSA-2022:5683 ADVISORY, RHSA-2022:5683
https://access.redhat.com/errata/RHSA-2022:5684 ADVISORY, RHSA-2022:5684
https://access.redhat.com/errata/RHSA-2022:5685 ADVISORY, RHSA-2022:5685
https://access.redhat.com/errata/RHSA-2022:5687 ADVISORY, RHSA-2022:5687
https://access.redhat.com/errata/RHSA-2022:5695 ADVISORY, RHSA-2022:5695
https://access.redhat.com/errata/RHSA-2022:5696 ADVISORY, RHSA-2022:5696
https://access.redhat.com/errata/RHSA-2022:5697 ADVISORY, RHSA-2022:5697
https://access.redhat.com/errata/RHSA-2022:5698 ADVISORY, RHSA-2022:5698

Timeline

Published2022-07-19By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.
Last VRT activity2026-11-03Most recent commit touching this CVE's classification, patch or rule file.
Classification created2026-11-13First commit adding this CVE's research note.