CVE-2023-22741
published critical CVSS 3.1 · 9.8heap-over-flow in stun_parse_attribute in sofia-sip
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| freeswitch | — | sofia-sip< 1.13.11 | Affected | Not stated | GitHub_M |
| Alpine Linux | edge | sofia-sip | Fixed | 1.13.11-r0 | Package fix record |
| Debian | bullseye | sofia-sip | Advisory build | 1.12.11+20110422.1-2.1+deb11u1 | DSA-5410-1 |
| Ubuntu | bionic | sofia-sip | Advisory build | 1.12.11+20110422.1-2.1+deb10u3build0.18.04.1 | USN-5932-1 |
| Alpine Linux | v3.14 | sofia-sip | Fixed | 1.13.11-r0 | Package fix record |
| Alpine Linux | v3.15 | sofia-sip | Fixed | 1.13.11-r0 | Package fix record |
| Alpine Linux | v3.16 | sofia-sip | Fixed | 1.13.11-r0 | Package fix record |
| Alpine Linux | v3.17 | sofia-sip | Fixed | 1.13.11-r0 | Package fix record |
Show 23 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.18 | sofia-sip | Fixed | 1.13.11-r0 | Package fix record |
| Alpine Linux | v3.19 | sofia-sip | Fixed | 1.13.11-r0 | Package fix record |
| Alpine Linux | v3.20 | sofia-sip | Fixed | 1.13.11-r0 | Package fix record |
| Alpine Linux | v3.21 | sofia-sip | Fixed | 1.13.11-r0 | Package fix record |
| Alpine Linux | v3.22 | sofia-sip | Fixed | 1.13.11-r0 | Package fix record |
| Alpine Linux | v3.23 | sofia-sip | Fixed | 1.13.11-r0 | Package fix record |
| Alpine Linux | v3.24 | sofia-sip | Fixed | 1.13.11-r0 | Package fix record |
| Debian | buster | sofia-sip | Advisory build | 1.12.11+20110422.1-2.1+deb10u2 | DLA-3292-1 |
| Ubuntu | focal | sofia-sip | Advisory build | 1.12.11+20110422.1-2.1+deb10u3ubuntu0.20.04.1 | USN-5932-1 |
| Ubuntu | jammy | sofia-sip | Advisory build | 1.12.11+20110422.1-2.1+deb10u3ubuntu0.22.04.1 | USN-5932-1 |
| Ubuntu | xenial | sofia-sip | Advisory build | 1.12.11+20110422.1-2.1+deb10u3ubuntu0.16.04.1~esm1 | USN-5932-1 |
| Ubuntu | bionic | libsofia-sip-ua-glib3 | Advisory build | 1.12.11+20110422.1-2.1+deb10u3build0.18.04.1 | USN-5932-1 |
| Ubuntu | bionic | libsofia-sip-ua0 | Advisory build | 1.12.11+20110422.1-2.1+deb10u3build0.18.04.1 | USN-5932-1 |
| Ubuntu | bionic | sofia-sip-bin | Advisory build | 1.12.11+20110422.1-2.1+deb10u3build0.18.04.1 | USN-5932-1 |
| Ubuntu | focal | libsofia-sip-ua-glib3 | Advisory build | 1.12.11+20110422.1-2.1+deb10u3ubuntu0.20.04.1 | USN-5932-1 |
| Ubuntu | focal | libsofia-sip-ua0 | Advisory build | 1.12.11+20110422.1-2.1+deb10u3ubuntu0.20.04.1 | USN-5932-1 |
| Ubuntu | focal | sofia-sip-bin | Advisory build | 1.12.11+20110422.1-2.1+deb10u3ubuntu0.20.04.1 | USN-5932-1 |
| Ubuntu | jammy | libsofia-sip-ua-glib3 | Advisory build | 1.12.11+20110422.1-2.1+deb10u3ubuntu0.22.04.1 | USN-5932-1 |
| Ubuntu | jammy | libsofia-sip-ua0 | Advisory build | 1.12.11+20110422.1-2.1+deb10u3ubuntu0.22.04.1 | USN-5932-1 |
| Ubuntu | jammy | sofia-sip-bin | Advisory build | 1.12.11+20110422.1-2.1+deb10u3ubuntu0.22.04.1 | USN-5932-1 |
| Ubuntu | xenial | libsofia-sip-ua-glib3 | Advisory build | 1.12.11+20110422.1-2.1+deb10u3ubuntu0.16.04.1~esm1 | USN-5932-1 |
| Ubuntu | xenial | libsofia-sip-ua0 | Advisory build | 1.12.11+20110422.1-2.1+deb10u3ubuntu0.16.04.1~esm1 | USN-5932-1 |
| Ubuntu | xenial | sofia-sip-bin | Advisory build | 1.12.11+20110422.1-2.1+deb10u3ubuntu0.16.04.1~esm1 | USN-5932-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| freeswitch | sofia-sip | < 1.13.11 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-120 CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')
References
3Provider assertions
3GitHub_M · cna
heap-over-flow in stun_parse_attribute in sofia-sip
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- c89df404b3e8e7aa084164d639bed73dfb67b77cdc1143e26a0f29c82b903fc6
- Ingested
- 23 Sep 2026, 08:06:15 UTC
- Source record
- Official CVE record