CVE-2022-31139
Java vulnerability analysis and mitigation

Overview

UnsafeAccessor (UA) is a bridge to access jdk.internal.misc.Unsafe & sun.misc.Unsafe that was found to have a security vulnerability (CVE-2022-31139) affecting versions 1.4.0 through 1.7.0. When UA is loaded as a named module, the internal data should be protected by JVM and others should only access UA via UA's standard API. The vulnerability was discovered and disclosed in July 2022 (GitHub Advisory).

Technical details

The vulnerability exists in the security checking mechanism of UnsafeAccess.getInstance(). When SecurityCheck.AccessLimiter is set up, untrusted code can access UA without limitation, even when UA is loaded as a named module. This bypasses the intended security restrictions that should be enforced by the JVM to protect internal data (GitHub Release).

Impact

The vulnerability allows untrusted code to gain unauthorized access to UA's internal functionality, bypassing security restrictions that should be enforced by the JVM. This could potentially lead to unauthorized access to low-level system operations that should be restricted (GitHub Advisory).

Mitigation and workarounds

The vulnerability was patched in version 1.7.0 of UnsafeAccessor. Users are recommended to upgrade to this version or later. The fix implements proper security checking for UnsafeAccess.getInstance(). For those who cannot upgrade immediately, it's worth noting that the vulnerability only affects systems where SecurityCheck.AccessLimiter is set up (GitHub Release).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-55749HIGH8.7
  • JavaJava
  • org.xwiki.platform:xwiki-platform-tool-jetty-resources
NoYesDec 01, 2025
CVE-2025-64775HIGH7.5
  • JavaJava
  • javapackages-tools:201801::guice-servlet
NoYesDec 01, 2025
CVE-2025-13806MEDIUM6.9
  • JavaJava
  • org.nutz:nutzboot-parent
NoNoDec 01, 2025
CVE-2025-66453MEDIUM5.5
  • JavaJava
  • org.mozilla:rhino
NoYesDec 03, 2025
CVE-2025-13472MEDIUM5.3
  • JavaJava
  • com.blazemeter.plugins:blazemeterjenkinsplugin
NoYesDec 03, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management