UDP server crash via off-by-one null terminator
Published Aug 14, 2023 · Updated Oct 9, 2024
Stack-based buffer overflow in async-sockets-cpp 0.3.1 and earlier allows remote attackers to crash UDP servers with malformed packets. ReceiveFrom passes the stack-buffer size to recvfrom, then writes a null terminator at tempBuffer[messageLength], one byte beyond the buffer when a datagram fills it. Any unauthenticated sender that can reach an affected UDP server can terminate its receiving thread or process, interrupting service.
Summary
What happened
Stack-based buffer overflow in async-sockets-cpp 0.3.1 and earlier allows remote attackers to crash UDP servers with malformed packets. ReceiveFrom passes the stack-buffer size to recvfrom, then writes a null terminator at tempBuffer[messageLength], one byte beyond the buffer when a datagram fills it. Any unauthenticated sender that can reach an affected UDP server can terminate its receiving thread or process, interrupting service.
The record
- CVE
- CVE-2023-40296
- Published
- Aug 14, 2023
- Updated
- Oct 9, 2024
- Vendor
- Unknown vendor
- Product
- Unknown product
- Classifications
- CWE-787, T1499.004
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Aug 14, 2023CVE publishedPublication date reported by the CVE source.
- Oct 9, 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?
What conditions does exploitation require?
What is affected?
Affected products and versions are unavailable in this record.
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.
Public exploit references
- Halcy0nic UDP crash proof of conceptproof of concept · demonstrated
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