{"id":"CVE-2022-31139","published":"2022-07-11T18:25:11Z","modified":"2025-04-23T18:03:51Z","title":"No security checking for UnsafeAccess.getInstance() in UnsafeAccessor","vendor":"Karlatemp","product":"UnsafeAccessor","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01204,"percentile":0.69011,"provenance":"source"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"references":[{"url":"https://github.com/Karlatemp/UnsafeAccessor/security/advisories/GHSA-cr6p-23cf-w9g9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Karlatemp/UnsafeAccessor/commit/4ef83000184e8f13239a1ea2847ee401d81585fd","tags":["x_refsource_MISC"]},{"url":"https://github.com/Karlatemp/UnsafeAccessor/releases/tag/1.7.0","tags":["x_refsource_MISC"]}],"priority":{"score":17.9,"factors":[{"name":"EPSS percentile","points":13.8},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"karlatemp","affectedVersions":[{"vendor":"Karlatemp","product":"UnsafeAccessor","versions":[">= 1.4.0, < 1.7.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-23T14:03:44.162939Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"io.github.karlatemp:unsafe-accessor","vulnerableRanges":[">=1.4.0, <1.7.0"],"patched":["1.7.0"],"from":["GHSA-cr6p-23cf-w9g9"],"provenance":"source"}],"summary":{"text":"The UnsafeAccessor library (by Karlatemp) has a flaw in its UnsafeAccess.getInstance() path, where the security check that should restrict access to its internal Unsafe bridge is missing in versions from 1.4.0 up to but not including 1.7.0. An attacker who can run untrusted code in an application that has configured a SecurityCheck.AccessLimiter can reach the library's internals without being blocked by that limiter, though the attack is only reachable when that limiter is set up and requires a high-complexity condition with no authentication or user interaction needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:45:29Z"},"euvd":{"id":"EUVD-2022-6324","exploited":false,"provenance":"source"}}