Skip to content

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

MediumCVSS 5.9 EPSS 0.86%
Published
Updated
Exploit status
No public exploit known
Technology
UbuntuDebian

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

Upgrade path

7 packages: 4 fixed, 3 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/mbedtls(Ubuntu 16.04) = 2.1.2-1; = 2.2.0-1; = 2.2.1-1; = 2.2.1-2 +4 more No fix listed No fix yet
ubuntu/mbedtls(Ubuntu Pro 18.04) = 2.5.1-1ubuntu1; = 2.6.0-1; = 2.7.0-2; = 2.8.0-1 +2 more No fix listed No fix yet
ubuntu/mbedtls(Ubuntu Pro 20.04) = 2.16.2-1; = 2.16.3-1; = 2.16.4-1ubuntu2; = 2.16.4-1ubuntu2+esm1 +1 more No fix listed No fix yet
Arm Ltd mbed tls < 2.24.0 2.24.0 Fixed
debian/mbedtls(Debian 12) < 2.28.0-0.3 2.28.0-0.3 Fixed
debian/mbedtls(Debian 13) < 2.28.0-0.3 2.28.0-0.3 Fixed
debian/mbedtls(Debian 14) < 2.28.0-0.3 2.28.0-0.3 Fixed

Affected products

ProductAffected versionsFixed in
debian/mbedtls(Debian:12) < 2.28.0-0.3 2.28.0-0.3
debian/mbedtls(Debian:13) < 2.28.0-0.3 2.28.0-0.3
debian/mbedtls(Debian:14) < 2.28.0-0.3 2.28.0-0.3
Arm Ltd mbed tls < 2.24.0 2.24.0
ubuntu/mbedtls(Ubuntu:16.04) All versions No fix listed
ubuntu/mbedtls(Ubuntu:16.04) = 2.1.2-1 No fix listed
ubuntu/mbedtls(Ubuntu:16.04) = 2.2.0-1 No fix listed
ubuntu/mbedtls(Ubuntu:16.04) = 2.2.1-1 No fix listed
ubuntu/mbedtls(Ubuntu:16.04) = 2.2.1-2 No fix listed
ubuntu/mbedtls(Ubuntu:16.04) = 2.2.1-2ubuntu0.1 No fix listed
ubuntu/mbedtls(Ubuntu:16.04) = 2.2.1-2ubuntu0.2 No fix listed
ubuntu/mbedtls(Ubuntu:16.04) = 2.2.1-2ubuntu0.3 No fix listed
ubuntu/mbedtls(Ubuntu:Pro:18.04) All versions No fix listed
ubuntu/mbedtls(Ubuntu:Pro:18.04) = 2.5.1-1ubuntu1 No fix listed
ubuntu/mbedtls(Ubuntu:Pro:18.04) = 2.6.0-1 No fix listed
ubuntu/mbedtls(Ubuntu:Pro:18.04) = 2.7.0-2 No fix listed
ubuntu/mbedtls(Ubuntu:Pro:18.04) = 2.8.0-1 No fix listed
ubuntu/mbedtls(Ubuntu:Pro:18.04) = 2.8.0-1ubuntu0.1~esm1 No fix listed
ubuntu/mbedtls(Ubuntu:Pro:20.04) All versions No fix listed
ubuntu/mbedtls(Ubuntu:Pro:20.04) = 2.16.2-1 No fix listed
ubuntu/mbedtls(Ubuntu:Pro:20.04) = 2.16.3-1 No fix listed
ubuntu/mbedtls(Ubuntu:Pro:20.04) = 2.16.4-1ubuntu2 No fix listed
ubuntu/mbedtls(Ubuntu:Pro:20.04) = 2.16.4-1ubuntu2+esm1 No fix listed

References