Vulnerability in Arm Mbed TLS
CVE-2020-36477
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).
Vulnerability class: Improper Certificate Validation
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.9 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N.
EPSS exploit prediction
EPSS 0.009, 59.1th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 3 other repositories (ARPSyndicate/cvemon, ShangzhiXu/Vulture, ShangzhiXu/VULTURE_Detector). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/ARMmbed/mbedtls/releases/tag/v2.24.0 (Third Party Advisory, Release Notes)
- github.com/ARMmbed/mbedtls/issues/3498 (Third Party Advisory)
- GLSA-202301-08 (vendor-advisory, Third Party Advisory)