CVE-2022-31003: Heap-based Buffer Overflow and Out-of-bounds Write in Sofia-SIP
Vulnerability summary
CVE-2022-31003 is a critical (CVSS 9.8) Heap-based Buffer Overflow vulnerability in debian debian_linux. EPSS estimates a 4.11% chance of exploitation in the next 30 days, higher than 90.8% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (GitHub, Date unknown)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 4 · Related 1Timeline
- 31-05-2022PublishedVulnerability first disclosed.
- 22-04-2025Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
6 scores · 5 sources · 2 versions- CVE.orgCNA9.1CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:HDiffers
- OSV · AlpineEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated9.1CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:HDiffers
- OSV · DebianEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
4.11%
Chance of exploitation in the next 30 days
Percentile
91%
Versus all other CVEs
30-day change
Increase +0.26 pp
From 3.85% on 11-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundSofia Sip
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Debian2 products
- sofia-sip< 1.12.11+20110422.1+1e14eea~dfsg-3
- debian_linuxEOL10.0
Alpine1 product
- sofia-sip< 1.13.8-r0
Freeswitch1 product
- sofia-sip< 1.13.8
Signalwire1 product
- sofia-sip< 1.13.8
Ubuntu1 product
- sofia-sip< 1.12.11+20110422.1-2.1+deb10u3ubuntu0.16.04.1~esm1 | < 1.12.11+20110422.1-2.1+deb10u3build0.18.04.1 | < 1.12.11+20110422.1-2.1+deb10u3ubuntu0.20.04.1 | < 1.12.11+20110422.1-2.1+deb10u3ubuntu0.22.04.1
5 vendors · 6 products
References
10 links- github.com/freeswitch/sofia-sip/security/advisories/GHSA-8w5j-6g2j-pxcpREPORTExploitThird Party Advisory
- github.com/freeswitch/sofia-sip/commit/907f2ac0ee504c93ebfefd676b4632a3575908c9REPORTPatchThird Party Advisory
- www.debian.org/security/2023/dsa-5410Vendor Advisory