CVE-2022-31139
HIGH 7.5CVSS 3.1UnsafeAccessor 1.4.0 until 1.7.0 has no security checking for UnsafeAccess.getInstance()
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.
- Published
- 11 Jul 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-200CWE-863
- Also known as
- GHSA-cr6p-23cf-w9g9
- Sources
- NVDJSONOSV GHSA-cr6p-23cf-w9g9JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | unsafe_accessor_project | unsafe_accessorcpe:2.3:a:unsafe_accessor_project:unsafe_accessor:*:*:*:*:*:*:*:* |
>= 1.4.0, < 1.7.0 | 1.7.0 |
| OSV | Maven | io.github.karlatemp:unsafe-accessor | >= 1.4.0, < 1.7.0 | 1.7.0 |
References
- 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://github.com/Karlatemp/UnsafeAccessor/security/advisories/GHSA-cr6p-23cf-w9g9 · Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-31139 · ADVISORY
- https://github.com/Karlatemp/UnsafeAccessor · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 11 Jul 2022)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 12 Jul 2022)