# CVE-2020-36477: An issue was discovered in Mbed TLS before 2.24.0.

- Severity: Medium 5.9 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/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): 0.86%, higher than 59% of CVEs (2026-12-01)
- Published: 2021-08-23T00:00:00.000Z
- Modified: 2026-06-17T03:15:34.560Z
- Weaknesses: CWE-295
- Assigned by: mitre

## Description

An issue was discovered in Mbed TLS before 2.24.0. The verification of X.509 certificates when matching the expected common name (the cn argument of mbedtls_x509_crt_verify) with the actual certificate name is mishandled: when the subjecAltName extension is present, the expected name is compared to any name in that extension regardless of its type. This means that an attacker could impersonate a 4-byte or 16-byte domain by getting a certificate for the corresponding IPv4 or IPv6 address (this would require the attacker to control that IP address, though).

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- arm mbed_tls: before 2.24.0

## Every score

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

## References

- <https://github.com/ARMmbed/mbedtls/releases/tag/v2.24.0> (release-notes, third-party-advisory)
- <https://github.com/ARMmbed/mbedtls/issues/3498> (third-party-advisory)
- <https://security.gentoo.org/glsa/202301-08> (third-party-advisory, vendor-advisory)

## Sources

- CVE List: [CVE-2020-36477](https://www.cve.org/CVERecord?id=CVE-2020-36477), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2020-36477](https://nvd.nist.gov/vuln/detail/CVE-2020-36477), Public domain, modified 2026-06-17

---

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