Sofia-SIP is an open-source SIP User-Agent library, compliant with the IETF RFC3261 specification. In affected versions Sofia-SIP **lacks both message length and attributes length checks** when it handles STUN packets, leading to controllable heap-over-flow. For example, in stun_parse_attribute(), after we get the attribute's type and length value, the length will be used directly to copy from the heap, regardless of the message's left size. Since network users control the overflowed length, and the data is written to heap chunks later, attackers may achieve remote code execution by heap grooming or other exploitation methods. The bug was introduced 16 years ago in sofia-sip 1.12.4 (plus some patches through 12/21/2006) to in tree libs with git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3774 d0543943-73ff-0310-b7d9-9358b9ac24b2. Users are advised to upgrade. There are no known workarounds for this vulnerability.
CVSS Details
- CVSS 3.1 Base Score: 9.8
- CVSS 3.1 Vector: (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alpine Linux | alpine-linux-upgrade-sofia-sip | Aug 22, 2024 | Jan 19, 2023 | |
| Debian | debian-upgrade-sofia-sip | Jan 31, 2023 | Jan 19, 2023 | |
| Gentoo Linux | gentoo-linux-upgrade-net-libs-sofia-sip | Jul 9, 2024 | Jan 19, 2023 | |
| Ubuntu | ubuntu-pro-upgrade-libsofia-sip-ua-glib3ubuntu-pro-upgrade-libsofia-sip-ua0ubuntu-pro-upgrade-sofia-sip-binubuntu-upgrade-libsofia-sip-ua-glib3ubuntu-upgrade-libsofia-sip-ua0ubuntu-upgrade-sofia-sip-bin | Mar 22, 2023 | Jan 19, 2023 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub