CVE-2020-1758 Improper Certificate Validation and Improper Validation of Certificate with Host Mismatch in Keycloak
Attackers can intercept SMTP emails via man-in-the-middle attacks due to missing TLS hostname verification in Keycloak.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2020-1758?
CVE-2020-1758 is a medium-severity vulnerability in Redhat Keycloak, published on 15 May 2020. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
A flaw was found in Keycloak in versions before 10.0.0, where it does not perform the TLS hostname verification while sending emails using the SMTP server. This flaw allows an attacker to perform a man-in-the-middle (MITM) attack.
Which versions are affected by CVE-2020-1758?
2 open source packages ship an affected version, including org.keycloak:keycloak-parent. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
org.keycloak:keycloak-parent Maven | All versions | 10.0.0 |
org.keycloak:keycloak-parent Maven | All versions | 10.0.0 |
Products include Redhat Keycloak, Redhat Openstack.
How do I fix CVE-2020-1758?
Upgrade org.keycloak:keycloak-parent to 10.0.0 or later.
Is CVE-2020-1758 being exploited?
There is no known exploitation of CVE-2020-1758 in the wild and no public exploit code.
Other vulnerabilities in Redhat Keycloak
- CVE-2022-4361 Keycloak vulnerable to cross-site scripting when validating URI-schemes on SAML and OIDC
- CVE-2022-1245 Keycloak vulnerable to privilege escalation on Token Exchange feature
- CVE-2021-20195 keycloak Self Stored Cross-site Scripting vulnerability
- CVE-2019-14910 Keycloak Authentication Error
- CVE-2019-14909 Keycloak Authentication Error
Sources
Also known as GHSA-c597-f74m-jgc2.