CVE-2023-45199
Critical · 9.8CVSS
9.8
EPSS
1.3%
Published
Oct 7, 2023
CISA due date
—
Cloudanix analysis
A problem in a common encryption tool used by many programs lets attackers remotely take control of affected computers over the internet.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Full Compromise
- Component
- Library
- Class
- Buffer Overflow
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Buffer overflow in Mbed TLS during TLS processing allows an unauthenticated remote attacker to overwrite memory and achieve arbitrary code execution.
Why it matters to the business
Compromise of systems relying on this encryption library can result in full remote takeover, exposing sensitive data and disrupting operations across dependent products and services.
How an attack unfolds
An attacker sends specially crafted network packets to a service using the vulnerable library; the malformed input triggers the buffer overflow during TLS handshake or record processing, enabling shellcode injection and remote code execution without credentials.
How to fix it
Upgrade Mbed TLS to a fixed version containing commit 1ec69067fa1351427f904362c1221b31538c8b57 (version 3.5 or later) in all affected products and rebuild dependent applications.
How to confirm the fix worked
Verify the installed library version against the fixed commit, recompile applications with the updated library, and perform regression testing on TLS connections to confirm absence of the overflow.
Typical attack path
- Identify network-exposed services using the vulnerable Mbed TLS version
- Craft and send malicious TLS packets targeting the overflow condition
- Overwrite memory structures to redirect execution flow
- Inject and execute arbitrary code on the target system
How to detect it
Review application and TLS library logs for unusual handshake failures or crashes around the time of suspected activity; examine process memory dumps or core files for signs of buffer manipulation during TLS record handling.
What your security team should do
- Prioritize inventory of all products using Mbed TLS 3.2.x-3.4.x and schedule immediate upgrades
- Monitor EPSS trend for rising exploitation likelihood and apply patches within standard change windows
- Implement network segmentation and TLS inspection where upgrades cannot be applied quickly
The record
Mbed TLS 3.2.x through 3.4.x before 3.5 has a Buffer Overflow that can lead to remote Code execution.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| 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 | No fix |
| Ubuntu:25.04 | mbedtls | 0 | No fix |
| 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 |
| openSUSE:Tumbleweed | mbedtls | 0 | 3.5.0-1.1 |
Related vulnerabilities
- 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
- CVE-2024-45158 An issue was discovered in Mbed TLS 3.6 before 3.6.1. Also affects mbedtls
- CVE-2024-45159 An issue was discovered in Mbed TLS 3.x before 3.6.1. 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
- CVE-2024-28836 An issue was discovered in Mbed TLS 3.5.x before 3.6.0. Also affects mbedtls
- CVE-2024-28755 An issue was discovered in Mbed TLS 3.5.x before 3.6.0. Also affects mbedtls
- CVE-2024-30166 In Mbed TLS 3.3.0 through 3.5.2 before 3.6.0, a malicious client can cause information… Also affects mbedtls
- 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