CVE-2026-2092: Keycloak Unauthorized Access Vulnerability
HIGHCVE-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
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).
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.
<dependency>
<groupId>org.keycloak</groupId>
<artifactId>keycloak-services</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.keycloak</groupId>
<artifactId>keycloak-services</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.keycloak</groupId>
<artifactId>keycloak-services</artifactId>
<version>Latest secure release</version>
</dependency>
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
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?
Which Keycloak versions are affected?
What version fixes CVE-2026-2092?
Is keycloak-services affected?
What is the CVSS score of CVE-2026-2092?
What CWE is associated with CVE-2026-2092?
How can I check Maven dependencies for CVE-2026-2092?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}