GHSA-pq65-77rc-7r8c

Suggest an improvement
Source
https://github.com/advisories/GHSA-pq65-77rc-7r8c
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-pq65-77rc-7r8c/GHSA-pq65-77rc-7r8c.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-pq65-77rc-7r8c
Aliases
  • CVE-2026-9796
Published
2026-05-28T06:31:09Z
Modified
2026-08-19T00:45:06Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
Summary
Keycloak has a Time-of-check Time-of-use (TOCTOU) Race Condition
Details

A flaw was found in Keycloak. An authenticated administrator with the manage-clients role can exploit a Time-of-check to time-of-use (TOCTOU) vulnerability in the name-based admin role checks. This allows the attacker to escalate their privileges to realm-admin for all users within the realm, granting them extensive control over the system. The composite role relationship persists even after the attacker's own permissions are revoked and across system reboots.

Database specific
{
    "cwe_ids":  [
        "CWE-367"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-07-01T21:24:41Z",
    "nvd_published_at":  "2026-05-28T05:16:41Z",
    "severity":  "MODERATE"
}
References

Affected packages

Maven / org.keycloak:keycloak-server

Package

Name
org.keycloak:keycloak-server
View open source insights on deps.dev
Purl
pkg:maven/org.keycloak/keycloak-server

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
26.6.4

Affected versions

1.*
1.0-alpha-1-12062013
1.0-rc-1
1.0-rc-2
1.0-final
1.0.1.Final
1.0.2.Final
1.0.3.Final
1.0.4.Final
1.0.5.Final
1.1.0.Beta1
1.1.0.Beta2
1.1.0.Final
1.1.1.Final
1.2.0.Beta1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-pq65-77rc-7r8c/GHSA-pq65-77rc-7r8c.json"