UnsafeAccessor 1.4.0 until 1.7.0 has no security checking for UnsafeAccess.getInstance()GHSA-cr6p-23cf-w9g9
MEDIUMFix: Karlatemp/UnsafeAccessor@4ef8300GHSA-cr6p-23cf-w9g9 is a medium-severity (CVSS 5.9) Information Exposure vulnerability in io.github.karlatemp:unsafe-accessor. A fix is available for io.github.karlatemp:unsafe-accessor — see the affected versions and patch details below.
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for GHSA-cr6p-23cf-w9g9.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
io.github.karlatemp:unsafe-accessorReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
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.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | io.github.karlatemp:unsafe-accessor | ≥ 1.4.0&&< 1.7.0 | 1.7.0io.github.karlatemp:unsafe-accessor:1.7.0 |
Affected Products
unsafe accessorunsafe_accessor_projectDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for io.github.karlatemp:unsafe-accessor, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update io.github.karlatemp:unsafe-accessor to 1.7.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-cr6p-23cf-w9g9 is resolved across your whole dependency graph.
Workarounds
Put an independent control in front of the weakness: restrict the affected endpoint or interface to trusted networks, require an additional authentication factor or proxy-level check, and invalidate existing sessions and credentials in case the flaw has already been used.
Frequently Asked Questions
Is GHSA-cr6p-23cf-w9g9 in your dependencies?
Find it across Maven, including transitive dependencies.