Application crash via unchecked STUN attribute lengths
Published May 26, 2023 · Updated Feb 13, 2025
Heap buffer and integer overflows in Sofia-SIP 1.13.14 and earlier allow remote attackers to crash applications via crafted STUN packets. The stun_parse_attr_error_code and stun_parse_attr_uint32 functions read four-byte values and derive allocation or copy lengths without first requiring four bytes of attribute data. Exploitation requires an application to pass attacker-controlled STUN traffic to the affected parser and can cause an out-of-bounds read, excessive allocation, or process termination.
Summary
What happened
Heap buffer and integer overflows in Sofia-SIP 1.13.14 and earlier allow remote attackers to crash applications via crafted STUN packets. The stun_parse_attr_error_code and stun_parse_attr_uint32 functions read four-byte values and derive allocation or copy lengths without first requiring four bytes of attribute data. Exploitation requires an application to pass attacker-controlled STUN traffic to the affected parser and can cause an out-of-bounds read, excessive allocation, or process termination.
The record
- CVE
- CVE-2023-32307
- Published
- May 26, 2023
- Updated
- Feb 13, 2025
- Vendor
- FreeSWITCH
- Product
- Sofia-SIP
- Classifications
- CWE-787, CWE-190, CWE-122, T1499
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- May 26, 2023CVE publishedPublication date reported by the CVE source.
- Feb 13, 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?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=< 1.13.15
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
- Upstream STUN parser 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