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

- Severity: Medium 5.3 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.09%, higher than 66% of CVEs (2026-12-01)
- Published: 2020-05-15T18:52:52.000Z
- Modified: 2026-06-17T03:02:20.680Z
- Also known as: GHSA-c597-f74m-jgc2
- Weaknesses: CWE-295, CWE-297
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- Red Hat keycloak: keycloak versions before 10.0.0
- org.keycloak:keycloak-parent (Maven): before 10.0.0
- redhat keycloak: before 10.0.0
- redhat openstack: 10

## Every score

- redhat: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:P/I:N/A:N`

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-1758> (issue-tracking, vendor-advisory, web)
- <https://issues.redhat.com/browse/KEYCLOAK-13285> (permissions-required, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-1758> (advisory)

## Sources

- CVE List: [CVE-2020-1758](https://www.cve.org/CVERecord?id=CVE-2020-1758), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-c597-f74m-jgc2](https://github.com/advisories/GHSA-c597-f74m-jgc2), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2020-1758](https://nvd.nist.gov/vuln/detail/CVE-2020-1758), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-1758 · Whole record: https://cve.day/CVE-2020-1758.json · Rebuilt by cve.day 2026-11-25T22:57:52.443Z
