Improper validation of certificate with host mismatch in Keycloak - CVE-2025-3501
Published: April 30, 2025
Vulnerability identifier: #VU108075
CSH Severity: Medium
CVSS v4: 6.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-3501
CWE-ID: CWE-297
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vulnerability details
The vulnerability allows a remote attacker to bypass implemented security restrictions.
The vulnerability exists due to an error in org.keycloak.protocol.services package, when setting a verification policy to "ALL", which causes the application to skip trust store certificate verification. A remote attacker can perform MitM attack.
Affected software
Keycloak
Red Hat build of Keycloak
Red Hat build of Keycloak
How to mitigate CVE-2025-3501
Install updates from vendor's website.
Keycloak - update to 26.2.2
Red Hat build of Keycloak - addressed in versions 26.0.11, 26.2.5
Red Hat build of Keycloak - addressed in versions 26.0.11, 26.2.5