CVE-2024-45158: mbedtls · n/a
Affects mbedtlsSource CVE Database V5
Not known to be exploited · CVSS 9.8 Critical : upgrade to 3.6.1 as a priority.
Data as of 26 Oct 2026, 07:57 UTC
- EPSS
- 0.6% chance of exploitation in 30 days – higher than 52% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 3.6.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 5 Sep 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.
What to do
Upgrade mbed-tls/mbedtls to 3.6.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubmbed-tls/mbedtlspkg:github/mbed-tls/mbedtlsOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Organizations should immediately identify all systems and applications using Mbed TLS versions prior to 3.6.1, especially those that directly invoke mbedtls_ecdsa_der_to_raw() or mbedtls_ecdsa_raw_to_der(). The primary mitigation is to upgrade to Mbed TLS 3.6.1 or later, where the vulnerability is patched. For environments where immediate upgrade is not feasible, review application code to ensure these functions are not called directly with untrusted or unchecked 'bits' parameters. Enable PSA support if possible, as it restricts the affected code paths. Implement strict input validation and bounds checking on parameters passed to cryptographic functions. Employ runtime protections such as stack canaries, address space layout randomization (ASLR), and control flow integrity (CFI) to reduce exploitation risk. Monitor network traffic for anomalous patterns that could indicate attempts to exploit this vulnerability. Finally, maintain up-to-date threat intelligence to respond rapidly if exploits emerge.
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.)