CVE-2021-43666
Mbed TLS vulnerability analysis and mitigation

Overview

A Denial of Service (DoS) vulnerability was discovered in mbed TLS 3.0.0 and earlier versions, specifically in the mbedtls_pkcs12_derivation function. The vulnerability (CVE-2021-43666) was identified when processing an input password with a length of 0, causing the function to enter an infinite loop and fail to exit (NVD, GitHub Issue).

Technical details

The vulnerability exists in the mbedtls_pkcs12_derivation function of mbed TLS when processing PKCS12 derivations. When an input password with zero length is provided to the function, it enters an infinite loop state, preventing the function from completing its execution. The vulnerability has been assigned a CVSS v3.1 score of 7.5 (HIGH) and a CVSS v2.0 score of 5.0 (MEDIUM), indicating its significant security impact (NVD).

Impact

The primary impact of this vulnerability is the potential for Denial of Service attacks. When exploited, the vulnerability can cause the affected application to become unresponsive, as the mbedtls_pkcs12_derivation function enters an infinite loop and fails to return either a result or an error code (GitHub Issue).

Exploitability

The vulnerability can be triggered by providing a zero-length password to the mbedtls_pkcs12_derivation function. A proof-of-concept exists demonstrating the issue through a test case where an empty password array is passed to the function, causing it to enter an infinite loop (GitHub Issue).

Mitigation and workarounds

The vulnerability has been fixed in subsequent releases of mbed TLS. Users are recommended to upgrade their mbed TLS installations to versions after 3.0.0. For Debian 10 (buster) users, the fix is available in version 2.16.9-0~deb10u1 (Debian LTS).

Additional resources


SourceThis report was generated using AI

Related Mbed TLS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-54441NONEN/A
  • Mbed TLS logoMbed TLS
  • mbedtls-devel
NoYesJul 23, 2026
CVE-2026-54435NONEN/A
  • Mbed TLS logoMbed TLS
  • mbedtls
NoYesJul 23, 2026
CVE-2026-50713NONEN/A
  • Mbed TLS logoMbed TLS
  • mbedtls
NoYesJul 23, 2026
CVE-2026-50640NONEN/A
  • Mbed TLS logoMbed TLS
  • mbedtls-doc
NoYesJul 23, 2026
CVE-2026-50588NONEN/A
  • Mbed TLS logoMbed TLS
  • mbedtls-doc
NoYesJul 23, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management