# CVE-2022-31139: No security checking for UnsafeAccess.getInstance() in UnsafeAccessor

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.22%, higher than 69% of CVEs (2026-12-01)
- Published: 2022-07-11T18:25:11.000Z
- Modified: 2026-06-17T04:44:53.247Z
- Also known as: GHSA-cr6p-23cf-w9g9
- Weaknesses: CWE-200, CWE-863
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

UnsafeAccessor (UA) is a bridge to access jdk.internal.misc.Unsafe & sun.misc.Unsafe. Normally, if UA is loaded as a named module, the internal data of UA is protected by JVM and others can only access UA via UA's standard API. The main application can set up `SecurityCheck.AccessLimiter` for UA to limit access to UA. Starting with version 1.4.0 and prior to version 1.7.0, when `SecurityCheck.AccessLimiter` is set up, untrusted code can access UA without limitation, even when UA is loaded as a named module. This issue does not affect those for whom `SecurityCheck.AccessLimiter` is not set up. Version 1.7.0 contains a patch.

(As written by CVE List.)

## Affected

- Karlatemp UnsafeAccessor: >= 1.4.0, < 1.7.0
- io.github.karlatemp:unsafe-accessor (Maven): from 1.4.0 before 1.7.0
- unsafe_accessor_project unsafe_accessor: from 1.4.0 before 1.7.0

## Every score

- GitHub_M: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:P/I:N/A:N`

## References

- <https://github.com/Karlatemp/UnsafeAccessor/security/advisories/GHSA-cr6p-23cf-w9g9> (patch, third-party-advisory, web)
- <https://github.com/Karlatemp/UnsafeAccessor/commit/4ef83000184e8f13239a1ea2847ee401d81585fd> (patch, third-party-advisory, web)
- <https://github.com/Karlatemp/UnsafeAccessor/releases/tag/1.7.0> (release-notes, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-31139> (advisory)
- <https://github.com/Karlatemp/UnsafeAccessor> (package)

## Sources

- CVE List: [CVE-2022-31139](https://www.cve.org/CVERecord?id=CVE-2022-31139), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-cr6p-23cf-w9g9](https://github.com/advisories/GHSA-cr6p-23cf-w9g9), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2022-31139](https://nvd.nist.gov/vuln/detail/CVE-2022-31139), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-31139 · Whole record: https://cve.day/CVE-2022-31139.json · Rebuilt by cve.day 2026-11-25T22:58:12.807Z
