{"id":"JLSEC-2025-212","aliases":["JLSEC-2025-212"],"related":["CVE-2020-36477"],"kind":"vulnerability","state":"published","title":"An issue was discovered in Mbed TLS before 2.24.0","summary":"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).","summaryFormat":"markdown","summarySource":"jlsec","descriptions":[{"lang":"en","text":"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).","format":"markdown","source":"jlsec"}],"published":"2025-11-21T15:59:04.054Z","modified":"2026-07-23T22:30:19.640Z","severity":{"scorer":"Julia Security Advisories","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"Julia Security Advisories","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N"},{"scorer":"Julia Security Advisories","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","score":5.9,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.24.0+0"}],"ecosystem":"Julia","package":"MbedTLS_jll","purl":"pkg:julia/MbedTLS_jll?uuid=c8ffd9c3-330d-5841-b78e-0817d7145fa1","source":"jlsec"}],"references":[{"url":"https://github.com/ARMmbed/mbedtls/issues/3498","tags":["web"],"sources":["jlsec"]},{"url":"https://github.com/ARMmbed/mbedtls/releases/tag/v2.24.0","tags":["web"],"sources":["jlsec"]},{"url":"https://security.gentoo.org/glsa/202301-08","tags":["web"],"sources":["jlsec"]}],"credits":[],"sources":[{"source":"jlsec","name":"Julia Security Advisories","id":"JLSEC-2025-212","url":"https://osv.dev/vulnerability/JLSEC-2025-212","licence":"CC-BY-4.0","modified":"2026-07-23T22:30:19.640Z"}],"updatedAt":"2026-11-25T22:56:25.771Z"}