CVE-2020-1758 Improper Certificate Validation and Improper Validation of Certificate with Host Mismatch in Keycloak

Medium 5.3 Published Updated

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.

Weakness: CWE-295, CWE-297

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.

PackageAffectedFixed in
org.keycloak:keycloak-parent MavenAll versions10.0.0
org.keycloak:keycloak-parent MavenAll versions10.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.

All Redhat Keycloak vulnerabilities

Sources

Also known as GHSA-c597-f74m-jgc2.

Is CVE-2020-1758 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free