{"id":"CVE-2022-31139","aliases":["CVE-2022-31139","GHSA-cr6p-23cf-w9g9"],"related":[],"kind":"vulnerability","state":"published","title":"No security checking for UnsafeAccess.getInstance() in UnsafeAccessor","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Overview\n\nAffected versions have no limit to using unsafe-accessor. Can be ignored if `SecurityCheck.AccessLimiter` not setup\n\n### Details\n\nIf UA was loaded as a named module, the internal data of UA will be protected by JVM and others can only access UA via UA's standard api.\nMain application can setup `SecurityCheck.AccessLimiter` for UA to limit accesses to UA.\nUntrusted code can access UA without lmitation in affected versions even UA was loaded as a named module.\n\n### References\n\n[The commit to fix](https://github.com/Karlatemp/UnsafeAccessor/commit/4ef83000184e8f13239a1ea2847ee401d81585fd)","format":"markdown","source":"ghsa"},{"lang":"es","text":"UnsafeAccessor (UA) es un puente para acceder a jdk.internal.misc.Unsafe y sun.misc.Unsafe. Normalmente, si UA es cargado como un módulo con nombre, los datos internos de UA están protegidos por la JVM y otros sólo pueden acceder a UA por medio de la API estándar de UA. La aplicación principal puede configurar \"SecurityCheck.AccessLimiter\" para UA para limitar el acceso a UA. A partir de la versión 1.4.0 y versiones anteriores a 1.7.0, cuando es configurado \"SecurityCheck.AccessLimiter\", el código que no es confiable puede acceder a la UA sin limitaciones, incluso cuando la UA es cargado como un módulo con nombre. Este problema no afecta a aquellos para los que no ha sido configurado \"SecurityCheck.AccessLimiter\". La versión 1.7.0 contiene un parche","source":"nvd"}],"published":"2022-07-11T18:25:11.000Z","modified":"2026-06-17T04:44:53.247Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:N/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-200","CWE-863"],"affected":[{"ranges":[{"version":">= 1.4.0, < 1.7.0","status":"affected"}],"vendor":"Karlatemp","product":"UnsafeAccessor","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"1.4.0","status":"affected","fixed":"1.7.0"}],"ecosystem":"Maven","package":"io.github.karlatemp:unsafe-accessor","purl":"pkg:maven/io.github.karlatemp/unsafe-accessor","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"1.4.0","fixed":"1.7.0"}],"vendor":"unsafe_accessor_project","product":"unsafe_accessor","cpe":"cpe:2.3:a:unsafe_accessor_project:unsafe_accessor:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/Karlatemp/UnsafeAccessor/security/advisories/GHSA-cr6p-23cf-w9g9","tags":["patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/Karlatemp/UnsafeAccessor/commit/4ef83000184e8f13239a1ea2847ee401d81585fd","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/Karlatemp/UnsafeAccessor/releases/tag/1.7.0","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31139","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/Karlatemp/UnsafeAccessor","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-04-23T14:03:44.162Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-31139","url":"https://www.cve.org/CVERecord?id=CVE-2022-31139","licence":"CVE Terms of Use","modified":"2025-04-23T18:03:51.382Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-cr6p-23cf-w9g9","url":"https://github.com/advisories/GHSA-cr6p-23cf-w9g9","licence":"CC-BY-4.0","modified":"2024-02-16T08:19:20.597Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-31139","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31139","licence":"Public domain","modified":"2026-06-17T04:44:53.247Z"}],"updatedAt":"2026-11-25T22:58:12.807Z","epss":{"score":0.01223,"percentile":0.69604,"date":"2026-12-01T12:00:22.000Z"}}