# CVE-2024-45157: 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.

- Severity: Medium 5.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2024-09-05T00:00:00.000Z
- Modified: 2026-06-17T07:53:40.820Z
- Weaknesses: CWE-696
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- trustedfirmware mbed_tls: from 2.26.0 before 2.28.9; from 3.2.0 before 3.6.1

## Every score

- CISA-ADP: CVSS:3.1 5.1 Medium `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 5.1 Medium `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://mbed-tls.readthedocs.io/en/latest/security-advisories/> (vendor-advisory)
- <https://github.com/Mbed-TLS/mbedtls/releases/> (release-notes)
- <https://mbed-tls.readthedocs.io/en/latest/security-advisories/mbedtls-security-advisory-2024-08-1/> (vendor-advisory)

## Sources

- CVE List: [CVE-2024-45157](https://www.cve.org/CVERecord?id=CVE-2024-45157), CVE Terms of Use, modified 2025-03-14
- NVD: [CVE-2024-45157](https://nvd.nist.gov/vuln/detail/CVE-2024-45157), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-45157 · Whole record: https://cve.day/CVE-2024-45157.json · Rebuilt by cve.day 2026-11-25T22:58:45.126Z
