5.9medium
An issue was discovered in Mbed TLS before 2.24.0.
- Severity
- 5.9medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.86% (higher than 59% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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).
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| arm mbed_tls | before 2.24.0 | NVD |
All scores
| NVD | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 4.3medium CVSS:2.0 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Classification
What each source says
CVE List
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).
NVD (es)
Se ha detectado un problema en Mbed TLS versiones anteriores a 2.24.0. La comprobación de los certificados X.509 cuando se compara el nombre común esperado (el argumento cn de la función mbedtls_x509_crt_verify) con el nombre real del certificado es manejado inapropiadamente: cuando la extensión subjecAltName está presente, el nombre esperado es comparado con cualquier nombre de esa extensión independientemente de su tipo. Esto significa que un atacante podría hacerse pasar por un dominio de 4 o 16 bytes al obtener un certificado para la dirección IPv4 o IPv6 correspondiente (aunque esto requeriría que el atacante controlara esa dirección IP).
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-36477 changed 2024-08-04 | CVE Terms of Use |
| NVD | CVE-2020-36477 changed 2026-06-17 | Public domain |