medium5.4
CVE-2020-35509
Keycloak vulnerable to Improper Certificate Validation
Impact
keycloak accepts an expired certificate by the direct-grant authenticator because of missing time stamp validations. The highest threat from this vulnerability is to data confidentiality and integrity. This issue was partially fixed in version [13.0.1](https://github.com/keycloak/keycloak/pull/6330) and more completely fixed in version [14.0.0](https://github.com/keycloak/keycloak/pull/8067).
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| maven | org.keycloak:keycloak-core | < 14.0.0 | 14.0.0 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Redhat | Keycloak | Versions 11.0.3, 12.0.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://access.redhat.com/security/cve/cve-2020-35509
- https://github.com/advisories/GHSA-rpj2-w6fr-79hc
- https://nvd.nist.gov/vuln/detail/CVE-2020-35509
- https://github.com/keycloak/keycloak/pull/6330
- https://github.com/keycloak/keycloak/pull/8067
- https://github.com/keycloak/keycloak/commit/478319348bdfdb9b6d39122f41edf2af79f679bb
- https://bugzilla.redhat.com/show_bug.cgi?id=1912427
- https://github.com/keycloak/keycloak/blob/4f330f4a57cbfcf6202b60546518261c66e59a35/services/src/main/java/org/keycloak/authentication/authenticators/x509/ValidateX509CertificateUsername.java#L74-L76