Remote code execution via unchecked TLS length subtraction
Published Jan 9, 2023 · Updated Mar 6, 2025
Integer overflow in MatrixSSL 4.0.4 through 4.5.1 allows remote attackers to execute code using a crafted TLS 1.3 message. matrixSslDecodeTls13 subtracts parsedBytes from an unsigned len value without checking the remaining length, allowing wraparound before matrixSslReceivedData uses len in a memcpy from the socket input buffer. A reachable TLS 1.3 server requires no authentication or user interaction; exploitation can overwrite server memory or disclose RAM contents.
Summary
What happened
Integer overflow in MatrixSSL 4.0.4 through 4.5.1 allows remote attackers to execute code using a crafted TLS 1.3 message. matrixSslDecodeTls13 subtracts parsedBytes from an unsigned len value without checking the remaining length, allowing wraparound before matrixSslReceivedData uses len in a memcpy from the socket input buffer. A reachable TLS 1.3 server requires no authentication or user interaction; exploitation can overwrite server memory or disclose RAM contents.
The record
- CVE
- CVE-2022-43974
- Published
- Jan 9, 2023
- Updated
- Mar 6, 2025
- Vendor
- Unknown vendor
- Product
- Unknown product
- Classifications
- CWE-190, T1190
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jan 9, 2023CVE publishedPublication date reported by the CVE source.
- Mar 6, 2025Record 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?
What conditions does exploitation require?
What is affected?
Affected products and versions are unavailable in this record.
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
- Telekom crafted TLS 1.3 packetproof of concept · unverified
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