Mbed-TLS.mbedtls is vulnerable to Use After Free
89
High Risk
The function mbedtls_x509_string_to_names() documents its head argument as an output parameter but internally calls a deep free on it. Applications that follow the documentation keep pointers to memory that the function frees, leading to use-after-free or double-free when they later use or release those pointers. Depending on the allocator this can escalate to arbitrary code execution, and the bundled cert_write and cert_req sample programs are affected. The fix rejects a non-NULL pointer target so the unexpected free no longer occurs.
You are affected if you are using a version that falls within the vulnerable range and your application calls mbedtls_x509_string_to_names() while relying on its documented output behavior.
Mbed-TLS.mbedtls is vulnerable to Use After Free in versions 1.0.0 - 3.6.3.
Upgrade the Mbed-TLS.mbedtls library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant