CVE-2020-35509: Keycloak vulnerable to Improper Certificate Validation
5.4
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.29407%
CWE
Published
8/24/2022
Updated
1/31/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| org.keycloak:keycloak-core | maven | < 14.0.0 | 14.0.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from missing timestamp validation in X509 direct grant authentication. The commit diff shows the fix added .validateTimestamps() to the validation chain in ValidateX509CertificateUsername.java. Prior to this fix, the certificate validation sequence only included checkRevocationStatus(), .validateKeyUsage(), and .validateExtendedKeyUsage(), but omitted critical time validity checks. This matches the CWE-295 description of improper certificate validation and explains why expired certificates were accepted.