CVE-2024-45157 Weak cryptography in n/a

Medium 5.1 Published Updated

Mbed TLS fails to use the configured HMAC_DRBG algorithm under specific conditions, potentially weakening cryptographic randomness.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-45157?

CVE-2024-45157 is a medium-severity vulnerability in n/a, published on 5 Sep 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

An issue was discovered in Mbed TLS before 2.28.9 and 3.x before 3.6.1, in which the user-selected algorithm is not used. Unlike previously documented, enabling MBEDTLS_PSA_HMAC_DRBG_MD_TYPE does not cause the PSA subsystem to use HMAC_DRBG: it uses HMAC_DRBG only when MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG and MBEDTLS_CTR_DRBG_C are disabled.

Weakness: CWE-696

Which versions are affected by CVE-2024-45157?

It affects 1 product.

Linux distribution packages (1)
mbedtls-2 openSUSE:TumbleweedAll versions2.28.9-1.1

Products include Trustedfirmware Mbed Tls.

How do I fix CVE-2024-45157?

Upgrade to a fixed version.

Is CVE-2024-45157 being exploited?

There is no known exploitation of CVE-2024-45157 in the wild and no public exploit code.

Sources

Also known as ALPINE-CVE-2024-45157, DEBIAN-CVE-2024-45157, GHSA-cvp8-hm87-hr8x, JLSEC-2025-226, UBUNTU-CVE-2024-45157, openSUSE-SU-2024:14304-1.

Is CVE-2024-45157 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free