Description
This release of Mbed TLS provides new features, bug fixes and minor enhancements. This release includes fixes for security issues.
Security Advisories
For full details, please see the following links:
- TLS 1.3 transform setup resource leak (CVE-2026-93843)
- TLS 1.3 session ticket rejection resource leak (CVE-2026-115491)
- Client impersonation using a TLS 1.3 ticket in TLS 1.2 session resumption (CVE-2026-93831)
- TLS 1.3 HRR can bypass SNI-based client authentication (CVE-2026-116375)
- TLS client completes a TLS 1.3 handshake without secret keying material (CVE-2026-115490)
- Strict name matching in certificate revocation (CVE-2026-116462)
- ECJPAKE serialization can write beyond undersized output buffers (CVE-2026-90469)
- CRL append allocation failure can invalidate trusted revocation state (CVE-2026-90475)
- Client-authentication bypass through cross-SNI session resumption (CVE-2026-93776)
- Use-after-free in TLS 1.2 clients in renegotiation with variable buffer length (CVE-2026-93844)
- TLS 1.2 server and client accept certificates using curves disallowed by the configured policy (CVE-2026-90471)
- TLS 1.2 server accepts client CertificateVerify algorithms outside configured sig_algs (CVE-2026-93777)
- TLS 1.2 renegotiation can disclose memory during output buffer resize (CVE-2026-115488)
- Subject Alternative Name type confusion in certificate verification (CVE-2026-90470)
- Non-null-terminated output from
mbedtls_x509_dn_gets()(CVE-2026-115489) - Unbounded iteration count in PKCS5/PKCS12 (CVE-2026-50582)
- Spectre-PHT bypass of hardware AES and GCM (CVE-2026-115493)
- Spectre-PHT side channel in the cipher module (CVE-2026-93833)
- Spectre-PHT side channel in ECDSA (CVE-2026-93835)
- Secret-dependent branches in p256-m P-256 arithmetic (CVE-2026-93845)
- Spectre-PHT side channel in PSA ECC operations (CVE-2026-93842)
- AES timing side channel through flash reads to ROM table (CVE-2026-115492)
Release Notes
Features
- Add the
MBEDTLS_CONFIG_BASE_FILE,MBEDTLS_CONFIG_NAME,
MBEDTLS_CONFIG_SETandMBEDTLS_CONFIG_UNSETCMake options for
selecting and customizing compile-time configurations. Fixes #10838. - Re-add mbedtls_x509_oid_get_md_alg() to the public API. This function
gets the hash algorithm associated with the given algorithm OID. - Re-add mbedtls_x509_get_sig_alg() to the public API. This function gets
the signature algorithm associated with a given OID and parameters.
Security
-
Fix a resource leak in TLS 1.3 transform setup when importing the
decryption traffic key fails after the encryption traffic key has already
been imported. Fixes #10917. CVE-2026-93843 -
Fix a memory leak when a TLS 1.3 server receives a valid session ticket
but has no compatible PSK key exchange mode enabled. Repeated connections
could exhaust server memory and cause a denial of service. Reported by
Duong Gia Huy. CVE-2026-115491. -
Fixed a security issue in TLS 1.2 session resumption by rejecting session
tickets issued for a different TLS version. A TLS 1.3 session ticket could
previously be accepted during TLS 1.2 session resumption, causing the
server to use an all-zero master secret. This could result in client
authentication being bypassed and allow client impersonation. Found and
reported by k01n; Ada Logics in collaboration with Anthropic;
Mohammad Seet and Rayan Al Garni; Seungheon Oh;
MiniMax M3.1-Flash (M31Flash); Matthew Sanders (Cosmic Canopy LLC, Kama).
CVE-2026-93831. -
Fix TLS 1.3 server handling of the second ClientHello after a
HelloRetryRequest. An attacker could change SNI between the two
ClientHellos and bypass per-host client-authentication requirements
configured through the SNI callback. Reset state derived from the first
ClientHello before processing the second and reject inconsistent SNI,
cipher suite and key-share parameters. Found and reported independently
by saikumar279 and Duong Gia Huy.
CVE-2026-116375 -
Fix a TLS client vulnerability caused by accepting the TLS 1.3 version
(0x0304) in the legacy_version field of a TLS 1.2 ServerHello. A
malicious server could cause the client to skip TLS 1.3 ServerHello
post-processing and key establishment, then complete a handshake without
the configured PSK or an ephemeral shared secret contributing to the
session keys. This affects both PSK-only handshakes and handshakes using
ephemeral key exchange, and can compromise the confidentiality and
integrity of the connection. In some client configurations, this could
also permit server impersonation. Reported by Ada Logics in
collaboration with Anthropic. CVE-2026-115490. -
Fix incorrect bounds check while parsing ECDHE-RSA/ECDHE-ECDSA
ClientKeyExchange in TLS 1.2 servers. This can result in an out-of-bounds
read (possible crash, DoS) in configurations with a very small
MBEDTLS_SSL_IN_CONTENT_LEN. Reported by Naveed (nvxbug). -
Document that CRL name matching does not fully normalize names.
Reported by Satoru Kanno (GMO CONNECT Inc.). CVE-2026-116462 -
Fix a remotely exploitable buffer overflow in TLS in some configurations
where ECJPAKE is enabled. CVE-2026-90469 -
Fix an out-of-bounds read when parsing truncated TLS 1.2 ECJPAKE peer
messages. Reported by Brandon Arrendondo, found using aurora-lint.
Independently reported by x4evexnol. -
When parsing a CRL, if the chain is not empty and the allocation of a new
element fails, do not clear an existing element. CVE-2026-90475 -
Fix a client-authentication bypass in TLS servers that use SNI to support
several virtual hosts with different client-authentication policies and
use session resumption. When several virtual hosts share an SSL
configuration and its session cache or ticket keys, a malicious client
can establish a resumable session with a virtual host that does not
require a client certificate, then resume that session with a different
virtual host that requires client authentication. The resumed handshake
does not enforce the stricter authentication policy, allowing
unauthenticated access to the protected virtual host. This issue affects
session ID-based resumption and session tickets.Servers with distinct client-authentication contexts must partition their
resumption state. The new mbedtls_ssl_set_hs_session_cache_context() and
mbedtls_ssl_set_hs_session_ticket_context() functions let an SNI callback
select the appropriate session cache or ticket context for the current
client-authentication context.Server applications must select, through the SNI callback, distinct
contexts for virtual hosts with different authentication policies, or
invalidate sessions when those policies change. Existing applications
that continue to share resumption state between different authentication
contexts remain vulnerable.Reported independently by Younghyo Cho (CIS Lab, Seoultech),
Jaehun Lee (Pohang University of Science and Technology (POSTECH)),
Bhabani Sankar Das, and Han Qiu (Southeast University), with analysis
by Shuaigangran Yue (Southeast University, QAX corp.).
CVE-2026-93776. -
Fix a use-after-free in TLS 1.2 clients when renegotiation starts while
unread application data remains buffered, with variable buffer lengths
enabled and a maximum fragment length negotiated. Reported by Álvaro Merino
Argumanez (realvarx). CVE-2026-93844 -
Reject signatures using elliptic curves disallowed by the
policy configured via mbedtls_ssl_conf_groups().
Reported by jjfz123 on GitHub.
CVE-2026-90471 -
Reject handshakes with signature algorithms disabled via
mbedtls_ssl_conf_sig_algs() in the TLS 1.2 server.
Reported by Ramesh Adhikari and Saikumar Andure (saikumar279).
CVE-2026-93777 -
Fix a potential information disclosure during TLS 1.2 renegotiation when
MBEDTLS_SSL_VARIABLE_BUFFER_LENGTH is enabled. If outgoing data is pending
while the output buffer is resized, a peer could receive memory outside
the output buffer. CVE-2026-115488 -
When verifying a certificate chain and passing a URI as the cn argument to
the verify function, the URI was incorrectly matched against DNS wildcards
if found in the certificate. For example, a certificate for a DNS name of
"*.example.com" would be accepted for "sip:voip.example.com" or
"https://unqualified-host-name/abc.example.com" contrary to the statement
in our documentation that URIs require an exact match, and to the
requirements from RFC 9525. Found by saikumar279. CVE-2026-90470. -
In mbedtls_x509_dn_gets(), output a null terminator even when the
output string is empty (corresponding to a certificate with an empty
subject or issuer). Reported by A. Pol (coredump.ws). CVE-2026-115489
Bugfix
- Reject serialized TLS 1.2 sessions whose session ID length exceeds 32,
instead of accepting an out-of-range length that is later used to read
past the end of the 32-byte session ID buffer. - Reject serialized SSL contexts whose ALPN protocol length exceeds the
remaining serialized data, instead of reading past the end of the buffer
in mbedtls_ssl_context_load(). - Fix corruption of DER certificates generated by the
cert_write
sample program on Windows. #10152 - Reject numeric OID components that exceed the range of unsigned int
instead of silently encoding a different value. Fixes #10910. - Accept a basicConstraints extension that omits cA and contains only
pathLenConstraint, interpreting it as cA=FALSE as specified by RFC 5280.
This restores compatibility with certificates emitted by some devices
without accepting them as CA certificates. Fixes #11006. - Fix a buffer over-read when parsing a TLS 1.2 ClientHello or
CertificateRequest that is truncated inside the two-byte length field
of the ciphersuite list (server side) or of the certificate
authorities list (client side): the length checks preceding those
fields reserved too few bytes, so the length field could be read past
the end of the message. Such messages are now rejected before the
read. - The TLS 1.2 client now rejects a CertificateRequest message whose
supported_signature_algorithms list has an odd length. - Accept X.509 certificates whose AuthorityKeyIdentifier extension is an
empty SEQUENCE. All of its fields are optional, so such certificates
are syntactically valid, but they were rejected with
MBEDTLS_ERR_X509_INVALID_EXTENSIONS. This affected, for example, the
root certificate that some antivirus products install for HTTPS
scanning. Reported by CodingMarkus. Fixes #10253. - Fix failure of cmake -DENABLE_PROGRAMS=OFF. Fixes #10587.
Who should update
We recommend all users should update to take advantage of the bug fixes contained in this release at an appropriate point in their development lifecycle.
Note
❕ mbedtls-4.3.0.tar.bz2 is our official release file. source.tar.gz and source.zip are automatically generated snapshots that GitHub is generating. They do not include submodules or generated files, and cannot be configured.
Checksum
The SHA256 hashes for the archives are:
1c87cba094cb40f097ebe0eba440a74939b71dab4e1d0d566bc90749ff381d18 mbedtls-4.3.0.tar.bz2