CVE-2026-2092: Keycloak Unauthorized Access Vulnerability

HIGH
Advisory Identifier: GHSA-794g-x443-36f7
CVSS 7.7
CWE-1287
Published
Advisory Summary

CVE-2026-2092 is a HIGH (CVSS 7.7) unauthorized access vulnerability (CWE-1287: Improper Validation of Specified Type of Input) affecting Keycloak libraries in the Maven ecosystem. The issue involves unauthorized access via improper validation of encrypted saml assertions. Remediation is available in the latest vendor maintenance releases.

CVE-2026-2092 at a Glance

CVE Identifier CVE-2026-2092
GHSA Identifier GHSA-794g-x443-36f7
Severity HIGH
CVSS v3.1 Base Score 7.7
CWE Classification CWE-1287: Improper Validation of Specified Type of Input
Affected Product Keycloak
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.7

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2026-2092

To remediate this vulnerability, upgrade all affected Keycloak dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.keycloak:keycloak-services fixed: Latest secure release
<dependency>
    <groupId>org.keycloak</groupId>
    <artifactId>keycloak-services</artifactId>
    <version>Latest secure release</version>
</dependency>
org.keycloak:keycloak-services fixed: Latest secure release
<dependency>
    <groupId>org.keycloak</groupId>
    <artifactId>keycloak-services</artifactId>
    <version>Latest secure release</version>
</dependency>
org.keycloak:keycloak-services fixed: Latest secure release
<dependency>
    <groupId>org.keycloak</groupId>
    <artifactId>keycloak-services</artifactId>
    <version>Latest secure release</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.keycloak

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2026-2092, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.keycloak

Analyze the terminal output to locate any version of Keycloak in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.keycloak command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-1287: Improper Validation of Specified Type of Input, where the product receives input that is expected to be of a certain type, but it does not validate or incorrectly validates that the input is actually of the expected type. In Keycloak, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Keycloak's SAML broker endpoint does not properly validate encrypted assertions when the overall SAML response is not signed. An attacker with a valid signed SAML assertion can exploit this by crafting a malicious SAML response, injecting an encrypted assertion for an arbitrary principal, leading to unauthorized access and potential information disclosure.

CVE-2026-2092 Affected Keycloak Versions

3 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
org.keycloak:keycloak-services
Maven
≤ 26.2.5
org.keycloak:keycloak-services
Maven
≥ 26.3.0
≤ 26.4.7
org.keycloak:keycloak-services
Maven
≥ 26.5.0

References

Frequently Asked Questions

What is CVE-2026-2092?
CVE-2026-2092 is a security vulnerability in Keycloak involving Unauthorized access via improper validation of encrypted SAML assertions under CWE-1287: Improper Validation of Specified Type of Input.
Which Keycloak versions are affected?
Affected versions include releases prior to current release patches across affected packages: org.keycloak:keycloak-services.
What version fixes CVE-2026-2092?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is keycloak-services affected?
Yes, org.keycloak:keycloak-services is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2026-2092?
CVE-2026-2092 has a CVSS v3.1 base score of 7.7 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L.
What CWE is associated with CVE-2026-2092?
CVE-2026-2092 is classified under CWE-1287: Improper Validation of Specified Type of Input (The product receives input that is expected to be of a certain type, but it does not validate or incorrectly validates that the input is actually of the expected type.).
How can I check Maven dependencies for CVE-2026-2092?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.keycloak'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-794g-x443-36f7",
  "modified" : "2026-07-02T20:42:23Z",
  "published" : "2026-07-02T20:42:23Z",
  "aliases" : [ "CVE-2026-2092" ],
  "summary" : "Keycloak: Unauthorized access via improper validation of encrypted SAML assertions",
  "details" : "Keycloak's SAML broker endpoint does not properly validate encrypted assertions when the overall SAML response is not signed. An attacker with a valid signed SAML assertion can exploit this by crafting a malicious SAML response, injecting an encrypted assertion for an arbitrary principal, leading to unauthorized access and potential information disclosure.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.keycloak:keycloak-services"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "26.2.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.keycloak:keycloak-services"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "26.3.0"
      }, {
        "last_affected" : "26.4.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.keycloak:keycloak-services"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "26.5.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "< 26.5.5"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/keycloak/keycloak/security/advisories/GHSA-794g-x443-36f7"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-2092"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/keycloak/keycloak/pull/46929"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/keycloak/keycloak/commit/b40a25908d937bb0563ea516487bc2c7c1d92508"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2026:3925"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2026:3926"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2026:3947"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2026:3948"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2026-2092"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2437296"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/keycloak/keycloak"
  }, {
    "type" : "WEB",
    "url" : "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-2092.json"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1287" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-07-02T20:42:23Z",
    "nvd_published_at" : null
  }
}