# JLSEC-2025-212: An issue was discovered in Mbed TLS before 2.24.0

- Severity: Medium 5.9 (CVSS:3.1, scored by Julia Security Advisories) `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
- Published: 2025-11-21T15:59:04.054Z
- Modified: 2026-07-23T22:30:19.640Z
- Related: CVE-2020-36477

## 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 Julia Security Advisories.)

## Affected

- MbedTLS_jll (Julia): before 2.24.0+0

## Every score

- Julia Security Advisories: CVSS:2.0 `AV:N/AC:M/Au:N/C:N/I:P/A:N`
- Julia Security Advisories: 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`

## References

- <https://github.com/ARMmbed/mbedtls/issues/3498> (web)
- <https://github.com/ARMmbed/mbedtls/releases/tag/v2.24.0> (web)
- <https://security.gentoo.org/glsa/202301-08> (web)

## Sources

- Julia Security Advisories: [JLSEC-2025-212](https://osv.dev/vulnerability/JLSEC-2025-212), CC-BY-4.0, modified 2026-07-23

---

Page: https://cve.day/JLSEC-2025-212 · Whole record: https://cve.day/JLSEC-2025-212.json · Rebuilt by cve.day 2026-11-25T22:56:25.771Z
