CVE-2022-31003 json
Heap-based Buffer Overflow and Out-of-bounds Write in Sofia-SIP
published 2022-05-31 4 y ago modified 2026-06-17 4 mo ago also EUVD-2022-52710
- cvss
- 9.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 4.1%
- EPSS 4.1% chance of exploitation in 30 days, percentile 90%
- public exploits
- 0
- none known
Summary
Sofia-SIP is an open-source Session Initiation Protocol (SIP) User-Agent library. Prior to version 1.13.8, when parsing each line of a sdp message, `rest = record + 2` will access the memory behind `\0` and cause an out-of-bounds write. An attacker can send a message with evil sdp to FreeSWITCH, causing a crash or more serious consequence, such as remote code execution. Version 1.13.8 contains a patch for this issue.
Patch / fix
- signalwire sofia-sip 1.13.8
- sofia-sip Debian 14, Debian 13, Debian 12 1.12.11+20110422.1+1e14eea~dfsg-3
debian advisories DEBIAN-CVE-2022-31003
- sofia-sip Ubuntu 18.04 LTS 1.12.11+20110422.1-2.1+deb10u3build0.18.04.1
- sofia-sip Ubuntu 20.04 LTS 1.12.11+20110422.1-2.1+deb10u3ubuntu0.20.04.1
- sofia-sip Ubuntu 22.04 LTS 1.12.11+20110422.1-2.1+deb10u3ubuntu0.22.04.1
- sofia-sip Ubuntu Pro 16.04 LTS 1.12.11+20110422.1-2.1+deb10u3ubuntu0.16.04.1~esm1
ubuntu advisories UBUNTU-CVE-2022-31003
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- sofia-sip Alpine 3.24, Alpine 3.23, Alpine 3.22 +8 more 1.13.8-r0
alpine advisories ALPINE-CVE-2022-31003
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-31003 updated cvss 9.1
sofia-sip: heap-buffer-overflow in sdp_parse() in sdp_parse.c
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
4.11% chance of exploitation in the next 30 days, higher than 90% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/freeswitch/sofia-sip/security/advisories/GHSA-8w5j-6g2j-pxcp referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected products
- freeswitch sofia-sip
Classification
References
-
github.com
/freeswitch/sofia-sip/commit/907f2ac0ee504c93ebfefd676b4632a3575908c9
patch, third-party-advisory
-
github.com
/freeswitch/sofia-sip/security/advisories/GHSA-8w5j-6g2j-pxcp
exploit, third-party-advisory
-
security.gentoo.org
/glsa/202210-18
vendor-advisory, third-party-advisory
-
debian.org
/security/2023/dsa-5410
vendor-advisory
-
lists.debian.org
/debian-lts-announce/2022/09/msg00001.html
mailing-list, third-party-advisory
Sources
- CVE List CVE-2022-31003
- NVD CVE-2022-31003
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.