CVE-2024-23775
High · 7.5CVSS
7.5
EPSS
1.1%
Published
Jan 31, 2024
CISA due date
—
Cloudanix analysis
A bug in a common security library lets attackers remotely crash devices or services that check digital certificates, without needing any login credentials.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Integer overflow in mbedtls_x509_set_extension() allows crafted X.509 extension data to trigger memory corruption and denial of service.
Why it matters to the business
Systems relying on Mbed TLS for certificate validation can be crashed remotely, causing service outages and operational disruption until patched.
How an attack unfolds
An attacker crafts a malicious X.509 certificate containing an extension that triggers the integer overflow when parsed by mbedtls_x509_set_extension, resulting in a crash or DoS condition without authentication.
How to fix it
Upgrade armmbed/mbedtls to version 2.28.7 or later for the 2.x branch and 3.5.2 or later for the 3.x branch; apply commit 555f84735aecdbd76a566cf087ec8425dfb0c8ab.
How to confirm the fix worked
Confirm deployed version is at or above the fixed releases, recompile and test certificate parsing with boundary-value extension lengths, and monitor for crashes in mbedtls_x509 functions.
Typical attack path
- Locate services or devices using vulnerable Mbed TLS versions for X.509 processing
- Generate a certificate with a specially crafted extension field
- Deliver the certificate over a network protocol that triggers parsing
- Invoke mbedtls_x509_set_extension during validation
- Trigger the overflow leading to process termination or DoS
How to detect it
Review application and system logs for segmentation faults or crashes during certificate parsing, correlate with inbound X.509 data containing large or malformed extensions, and inspect process dumps for mbedtls_x509_set_extension activity.
What your security team should do
- Immediately upgrade all instances of Mbed TLS to the fixed versions
- Scan codebases and dependencies for use of mbedtls_x509_set_extension
- Implement network-level rate limiting on certificate-heavy endpoints
- Add monitoring for abnormal termination of processes using Mbed TLS
The record
Integer Overflow vulnerability in Mbed TLS 2.x before 2.28.7 and 3.x before 3.5.2, allows attackers to cause a denial of service (DoS) via mbedtls_x509_set_extension().
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Alpine:v3.16 | mbedtls | 0 | 2.28.7-r0 |
| Alpine:v3.17 | mbedtls | 0 | 2.28.7-r0 |
| Alpine:v3.18 | mbedtls | 0 | 2.28.7-r0 |
| Alpine:v3.19 | mbedtls | 0 | 2.28.7-r0 |
| Alpine:v3.20 | mbedtls | 0 | 2.28.7-r0 |
| Alpine:v3.21 | mbedtls | 0 | 2.28.7-r0 |
| Alpine:v3.22 | mbedtls | 0 | 2.28.7-r0 |
| Debian:11 | mbedtls | 0 | No fix |
| Debian:12 | mbedtls | 0 | No fix |
| Debian:13 | mbedtls | 0 | 2.28.7-1 |
| Debian:14 | mbedtls | 0 | 2.28.7-1 |
| Ubuntu:16.04:LTS | mbedtls | 0 | No fix |
| Ubuntu:18.04:LTS | mbedtls | 0 | No fix |
| Ubuntu:20.04:LTS | mbedtls | 0 | No fix |
| Ubuntu:22.04:LTS | mbedtls | 0 | No fix |
| Ubuntu:24.04:LTS | mbedtls | 0 | No fix |
| Ubuntu:24.10 | mbedtls | 0 | 2.28.8-1 |
| Ubuntu:Pro:16.04:LTS | mbedtls | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | mbedtls | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | mbedtls | 0 | No fix |
Related vulnerabilities
- CVE-2024-28960 An issue was discovered in Mbed TLS 2.18.0 through 2.28.x before 2.28.8 and 3.x before… Also affects mbedtls
- CVE-2024-23170 An issue was discovered in Mbed TLS 2.x before 2.28.7 and 3.x before 3.5.2. Also affects mbedtls
- CVE-2023-43615 Mbed TLS 2.x before 2.28.5 and 3.x before 3.5.0 has a Buffer Overflow. Also affects mbedtls
- CVE-2022-35409 An issue was discovered in Mbed TLS before 2.28.1 and 3.x before 3.2.0. Also affects mbedtls
- CVE-2021-44732 Mbed TLS before 3.0.1 has a double free in certain out-of-memory conditions, as… Also affects mbedtls
- CVE-2024-45157 An issue was discovered in Mbed TLS before 2.28.9 and 3.x before 3.6.1, in which the… Also affects mbedtls
- JLSEC-2025-187 Mbed TLS before 2.28.10 and 3.x before 3.6.3, in some cases of failed memory allocation… Also affects mbedtls
- CVE-2024-49195 Mbed TLS 3.5.x through 3.6.x before 3.6.2 has a buffer underrun in pkwrite when writing… Also affects mbedtls