Remote code execution via oversized handshake key copy
Published Oct 7, 2023 · Updated Sep 19, 2024
Heap buffer overflow in Mbed TLS 3.2.0 through 3.4.x allows remote attackers to execute code through a crafted TLS handshake. TLS 1.3 handshake parsing copies an ECDH or FFDH public key of up to 65,535 bytes into a shorter handshake buffer; affected TLS 1.2 servers similarly copy up to 255 bytes. Exploitation requires a non-PSK TLS 1.3 client or server, or a TLS 1.2 server built with MBEDTLS_USE_PSA_CRYPTO and ECDH signature suites; the default configuration is not affected.
Summary
What happened
Heap buffer overflow in Mbed TLS 3.2.0 through 3.4.x allows remote attackers to execute code through a crafted TLS handshake. TLS 1.3 handshake parsing copies an ECDH or FFDH public key of up to 65,535 bytes into a shorter handshake buffer; affected TLS 1.2 servers similarly copy up to 255 bytes. Exploitation requires a non-PSK TLS 1.3 client or server, or a TLS 1.2 server built with MBEDTLS_USE_PSA_CRYPTO and ECDH signature suites; the default configuration is not affected.
The record
- CVE
- CVE-2023-45199
- Published
- Oct 7, 2023
- Updated
- Sep 19, 2024
- Vendor
- TrustedFirmware.org
- Product
- Mbed TLS
- Classifications
- CWE-120, T1190
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Oct 7, 2023CVE publishedPublication date reported by the CVE source.
- Sep 19, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <3.5
- Affected versionversion=3.2x <=3.4x
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo