Red Hat Build of Keycloak
Org.keycloak.protocol.services: keycloak hostname verification
A flaw was found in Keycloak. By setting a verification policy to 'ALL', the trust store certificate verification is skipped, which is unintended.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 25.0.0, < 25.*
- >= 26.0.0, < 26.0.11
- >= 26.2.0, < 26.2.2
Fixed in 25.*, 26.0.11, 26.2.2
Fixed in 26.0.11-2
Fixed in 26.0-12
Fixed in 26.0-13
Fixed in 26.2.5-1
Fixed in 26.2-4
Fixed in 26.2-4
Mitigation
Upgrade the affected product to 25.* or 26.0.11 or 26.2.2 or later.
Upgrade Red Hat build of Keycloak 26.0 to 26.0.11-2 or later.
Upgrade Red Hat build of Keycloak 26.0 to 26.0-12 or later.
Upgrade Red Hat build of Keycloak 26.0 to 26.0-13 or later.
Upgrade Red Hat build of Keycloak 26.2 to 26.2.5-1 or later.
Upgrade Red Hat build of Keycloak 26.2 to 26.2-4 or later.
Upgrade Red Hat build of Keycloak 26.2 to 26.2-4 or later.
Workaround
Use the correct TLS configuration and avoid using "--tls-hostname-verifier=any".
References
- Vendor advisory access.redhat.com/errata/RHSA-2025:4335
- Vendor advisory access.redhat.com/errata/RHSA-2025:4336
- Vendor advisory access.redhat.com/errata/RHSA-2025:8672
2 more
- Vendor advisory access.redhat.com/errata/RHSA-2025:8690
- Patch github.com/keycloak/keycloak/pull/39366
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.