CVE-2022-3916
Java vulnerability analysis and mitigation

Overview

A vulnerability (CVE-2022-3916) was discovered in Keycloak's offlineaccess scope functionality. The issue was identified and disclosed in November 2022, affecting Keycloak and Red Hat Single Sign-On implementations. The vulnerability stems from a lack of root session validation and the reuse of session IDs across root and user authentication sessions ([Red Hat Bugzilla](https://bugzilla.redhat.com/showbug.cgi?id=2141404)).

Technical details

The vulnerability exists in the offline_access scope implementation where session IDs are reused across root and user authentication sessions without proper root session validation. This particularly affects shared computer environments where cookies remain after user logout. When a subsequent user authenticates to the application, it shares the same root session ID, and upon using the refresh token, they can receive a token for the previous user's session (CVE Mitre).

Impact

The vulnerability enables an attacker to obtain unauthorized access to a previously authenticated user's session. On shared computers, if a user logs out without clearing their cookies in an application using the offlineaccess scope, a subsequent user could potentially gain access to the original user's session through the refresh token mechanism ([Red Hat Bugzilla](https://bugzilla.redhat.com/showbug.cgi?id=2141404)).

Mitigation and workarounds

Red Hat has addressed this vulnerability through multiple security updates across different platforms. Fixes were released in December 2022 through various security advisories (RHSA-2022:8961, RHSA-2022:8962, RHSA-2022:8963) for Red Hat Single Sign-On 7.6.1 and subsequent versions. Users are advised to update to the patched versions and ensure proper cookie management practices (Red Hat Errata).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-55749HIGH8.7
  • JavaJava
  • org.xwiki.platform:xwiki-platform-tool-jetty-resources
NoYesDec 01, 2025
CVE-2025-64775HIGH7.5
  • JavaJava
  • javapackages-tools:201801::guice-servlet
NoYesDec 01, 2025
CVE-2025-13806MEDIUM6.9
  • JavaJava
  • org.nutz:nutzboot-parent
NoNoDec 01, 2025
CVE-2025-66453MEDIUM5.5
  • JavaJava
  • org.mozilla:rhino
NoYesDec 03, 2025
CVE-2025-13472MEDIUM5.3
  • JavaJava
  • com.blazemeter.plugins:blazemeterjenkinsplugin
NoYesDec 03, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management