MODERATE 6.5

CVE-2023-1664

Keycloak Untrusted Certificate Validation vulnerability

Description

A flaw was found in keycloak-core. This flaw considers the scenario when using X509 Client Certificate Authenticatior with the option "Revalidate Client Certificate". A user may be able to choose, if directly connect to keycloak (not passing via reverse proxy) a specific certificate. If there's a configuration error in KC_SPI_TRUSTSTORE_FILE_FILE the authenticator allows even with the "Cannot validate client certificate trust: Truststore not available" message as there's no certificate to trust against.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.keycloak » keycloak-core
< 21.1.2
21.1.2

Blast radius

1affected artifacts
237affected versions
1,361dependent artifacts (est.)
47,271dependent versions

66% of the dependent artifacts (900) still pull an affected version in their latest release.

DepthDependent versions
Direct
11,551
2 hops
15,962
3 hops
12,944
4 hops
3,725
5 hops
2,492
6 hops
597

Most used dependents

Computed from the dependency graph of build 20261125.2201 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.

References

Advisorynvd.nist.gov
Packagegithub.com
Webgithub.com
Webaccess.redhat.com
Webbugzilla.redhat.com