# CVE-2024-45158: An issue was discovered in Mbed TLS 3.6 before 3.6.1.

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- 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): 1.25%, higher than 69% of CVEs (2026-11-30)
- Published: 2024-09-05T00:00:00.000Z
- Modified: 2026-06-17T07:53:40.977Z
- Weaknesses: CWE-121
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: mitre

## Description

An issue was discovered in Mbed TLS 3.6 before 3.6.1. A stack buffer overflow in mbedtls_ecdsa_der_to_raw() and mbedtls_ecdsa_raw_to_der() can occur when the bits parameter is larger than the largest supported curve. In some configurations with PSA disabled, all values of bits are affected. (This never happens in internal library calls, but can affect applications that call these functions directly.)

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- mbed mbedtls: from 3.6 before 3.6.1
- trustedfirmware mbed_tls: 3.6.0

## 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-2/> (vendor-advisory)

## Sources

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

---

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