CVE-2022-31001
Out-of-bounds Read in Sofia-SIP
Sofia-SIP is an open-source Session Initiation Protocol (SIP) User-Agent library. Prior to version 1.13.8, an attacker can send a message with evil sdp to FreeSWITCH, which may cause crash. This type of crash may be caused by #define MATCH(s, m) (strncmp(s, m, n = sizeof(m) - 1) == 0), which will make n bigger and trigger out-of-bound access when IS_NON_WS(s[n]). Version 1.13.8 contains a patch for this issue.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
7.5
Out-of-bounds Read in Sofia-SIP
Sofia-SIP is an open-source Session Initiation Protocol (SIP) User-Agent library. Prior to version 1.13.8, an attacker can send a message with evil sdp to FreeSWITCH, which may cause crash. This type of crash may be caused by #define MATCH(s, m) (strncmp(s, m, n = sizeof(m) - 1) == 0), which will make n bigger and trigger out-of-bound access when IS_NON_WS(s[n]). Version 1.13.8 contains a patch for this issue.
- Record
CVE-2022-31001- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-125
- Updated
- 2026-11-02
EUVDEUVD-2022-52708
7.5
Sofia-SIP is an open-source Session Initiation Protocol (SIP) User-Agent library. Prior to version 1.13.8, an attacker can send a message with evil sdp to FreeSWITCH, which may cause crash. This type of crash may be caused by #define MATCH(s, m) (strncmp(s, m, n = sizeof(m) - 1) == 0), which will make n bigger and trigger out-of-bound access when IS_NON_WS(s[n]). Version 1.13.8 contains a patch for this issue.
- Record
EUVD-2022-52708- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-03
NVD
7.5
Sofia-SIP is an open-source Session Initiation Protocol (SIP) User-Agent library. Prior to version 1.13.8, an attacker can send a message with evil sdp to FreeSWITCH, which may cause crash. This type of crash may be caused by #define MATCH(s, m) (strncmp(s, m, n = sizeof(m) - 1) == 0), which will make n bigger and trigger out-of-bound access when IS_NON_WS(s[n]). Version 1.13.8 contains a patch for this issue.
- Record
CVE-2022-31001- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:N/I:N/A:P - Weakness
- CWE-125
- Updated
- 2026-11-02
OSVALPINE-CVE-2022-31001
7.5
Sofia-SIP is an open-source Session Initiation Protocol (SIP) User-Agent library. Prior to version 1.13.8, an attacker can send a message with evil sdp to FreeSWITCH, which may cause crash. This type of crash may be caused by #define MATCH(s, m) (strncmp(s, m, n = sizeof(m) - 1) == 0), which will make n bigger and trigger out-of-bound access when IS_NON_WS(s[n]). Version 1.13.8 contains a patch for this issue.
- Record
ALPINE-CVE-2022-31001- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-03
OSV
7.5
Out-of-bounds Read in Sofia-SIP
Sofia-SIP is an open-source Session Initiation Protocol (SIP) User-Agent library. Prior to version 1.13.8, an attacker can send a message with evil sdp to FreeSWITCH, which may cause crash. This type of crash may be caused by #define MATCH(s, m) (strncmp(s, m, n = sizeof(m) - 1) == 0), which will make n bigger and trigger out-of-bound access when IS_NON_WS(s[n]). Version 1.13.8 contains a patch for this issue.
- Record
CVE-2022-31001- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-125
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2022-31001
7.5
Sofia-SIP is an open-source Session Initiation Protocol (SIP) User-Agent library. Prior to version 1.13.8, an attacker can send a message with evil sdp to FreeSWITCH, which may cause crash. This type of crash may be caused by #define MATCH(s, m) (strncmp(s, m, n = sizeof(m) - 1) == 0), which will make n bigger and trigger out-of-bound access when IS_NON_WS(s[n]). Version 1.13.8 contains a patch for this issue.
- Record
UBUNTU-CVE-2022-31001- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
Show 4 moreShow less
OSVDEBIAN-CVE-2022-31001 No score
Sofia-SIP is an open-source Session Initiation Protocol (SIP) User-Agent library. Prior to version 1.13.8, an attacker can send a message with evil sdp to FreeSWITCH, which may cause crash. This type of crash may be caused by #define MATCH(s, m) (strncmp(s, m, n = sizeof(m) - 1) == 0), which will make n bigger and trigger out-of-bound access when IS_NON_WS(s[n]). Version 1.13.8 contains a patch for this issue.
- Record
DEBIAN-CVE-2022-31001- Updated
- 2026-11-03
OSVMGASA-2022-0343 No score
Updated sofia-sip packages fix security vulnerability
An attacker can send a message with evil sdp to FreeSWITCH, which may a cause a crash due to an out-of-bounds access. (CVE-2022-31001) An attacker can send a message with evil sdp to FreeSWITCH, which may cause a crash. (CVE-2022-31002) An out-of-bounds write. (CVE-2022-31003)
- Record
MGASA-2022-0343- Updated
- 2026-11-02
OSVopenSUSE-SU-2026:10964-1 No score
libsofia-sip-ua-glib3-1.13.17+50-1.1 on GA media
These are all security issues fixed in the libsofia-sip-ua-glib3-1.13.17+50-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2026:10964-1- Updated
- 2026-11-02
OSVUSN-5932-1 No score
sofia-sip vulnerabilities
It was discovered that Sofia-SIP incorrectly handled specially crafted SDP packets. A remote attacker could use this issue to cause applications using Sofia-SIP to crash, leading to a denial of service, or possibly execute arbitrary code. This issue only affected Ubuntu 16.04 ESM, Ubuntu 18.04 LTS, Ubuntu 20.04 LTS and Ubuntu 22.04 LTS. (CVE-2022-31001, CVE-2022-31002, CVE-2022-31003)
It was discovered that Sofia-SIP incorrectly handled specially crafted UDP packets. A remote attacker could use this issue to cause applications using Sofia-SIP to crash, leading to a denial of service. (CVE-2022-47516)
Qiuhao Li discovered that Sofia-SIP incorrectly handled specially crafted STUN packets. A remote attacker could use this issue to cause applications using Sofia-SIP to crash, leading to a denial of service, or possibly execute arbitrary code. (CVE-2023-22741)
- Record
USN-5932-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
sofia-sipAlpine:v3.14 |
before 1.13.8-r0 | 1.13.8-r0 |
sofia-sipAlpine:v3.15 |
before 1.13.8-r0 | 1.13.8-r0 |
sofia-sipAlpine:v3.16 |
before 1.13.8-r0 | 1.13.8-r0 |
sofia-sipAlpine:v3.17 |
before 1.13.8-r0 | 1.13.8-r0 |
sofia-sipAlpine:v3.18 |
before 1.13.8-r0 | 1.13.8-r0 |
sofia-sipAlpine:v3.19 |
before 1.13.8-r0 | 1.13.8-r0 |
sofia-sipAlpine:v3.20 |
before 1.13.8-r0 | 1.13.8-r0 |
sofia-sipAlpine:v3.21 |
before 1.13.8-r0 | 1.13.8-r0 |
sofia-sipAlpine:v3.22 |
before 1.13.8-r0 | 1.13.8-r0 |
sofia-sipAlpine:v3.23 |
before 1.13.8-r0 | 1.13.8-r0 |
Show 12 moreShow less
| Package | Affected | Fixed |
|---|---|---|
sofia-sipAlpine:v3.24 |
before 1.13.8-r0 | 1.13.8-r0 |
sofia-sipDebian:12 |
before 1.12.11+20110422.1+1e14eea~dfsg-3 | 1.12.11+20110422.1+1e14eea~dfsg-3 |
sofia-sipDebian:13 |
before 1.12.11+20110422.1+1e14eea~dfsg-3 | 1.12.11+20110422.1+1e14eea~dfsg-3 |
sofia-sipDebian:14 |
before 1.12.11+20110422.1+1e14eea~dfsg-3 | 1.12.11+20110422.1+1e14eea~dfsg-3 |
sofia-sipDebian:10 |
before 1.12.11+20110422.1-2.1+deb10u1, plus listed versions 1.12.11+20110422.1-2.1 |
1.12.11+20110422.1-2.1+deb10u1 |
sofia-sipDebian:11 |
before 1.12.11+20110422.1-2.1+deb11u1, plus listed versions 1.12.11+20110422.1-2.1 |
1.12.11+20110422.1-2.1+deb11u1 |
sofia-sipMageia:8 |
before 1.12.11-10.1.mga8 | 1.12.11-10.1.mga8 |
sofia-sipUbuntu:Pro:16.04:LTS |
before 1.12.11+20110422.1-2.1+deb10u3ubuntu0.16.04.1~esm1, plus listed versions 1.12.11+20110422.1-2ubuntu1 |
1.12.11+20110422.1-2.1+deb10u3ubuntu0.16.04.1~esm1 |
sofia-sipUbuntu:18.04:LTS |
before 1.12.11+20110422.1-2.1+deb10u3build0.18.04.1, plus listed versions 1.12.11+20110422.1-2.11.12.11+20110422.1-2.1build1 |
1.12.11+20110422.1-2.1+deb10u3build0.18.04.1 |
sofia-sipUbuntu:20.04:LTS |
before 1.12.11+20110422.1-2.1+deb10u3ubuntu0.20.04.1, plus listed versions 1.12.11+20110422.1-2.1build1 |
1.12.11+20110422.1-2.1+deb10u3ubuntu0.20.04.1 |
sofia-sipUbuntu:22.04:LTS |
before 1.12.11+20110422.1-2.1+deb10u3ubuntu0.22.04.1, plus listed versions 1.12.11+20110422.1-2.1ubuntu11.12.11+20110422.1-2.1ubuntu2 |
1.12.11+20110422.1-2.1+deb10u3ubuntu0.22.04.1 |
sofia-sipopenSUSE:Tumbleweed |
before 1.13.17+50-1.1 | 1.13.17+50-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-31001 is a high vulnerability (CVSS 7.5) in Freeswitch Sofia-sip, published May 31, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.22%, the 82nd percentile. Fixed in sofia-sip 1.13.8-r0.
References
github.com/freeswitch/sofia-sip/security/advisories/GHSA-79jq-hh82-cv9g
github.com/freeswitch/sofia-sip/commit/a99804b336d0e16d26ab7119d56184d2d7110a36
lists.debian.org/debian-lts-announce/2022/09/msg00001.html
security.gentoo.org/glsa/202210-18
debian.org/security/2023/dsa-5410
security.alpinelinux.org/vuln/CVE-2022-31001
Show 16 moreShow less
github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31001.json
nvd.nist.gov/vuln/detail/CVE-2022-31001
security-tracker.debian.org/tracker/CVE-2022-31001
advisories.mageia.org/MGASA-2022-0343.html
bugs.mageia.org/show_bug.cgi?id=30806
debian.org/lts/security/2022/dla-3091
github.com/freeswitch/sofia-sip/security/advisories/GHSA-g3x6-p824-x6hm
github.com/freeswitch/sofia-sip/security/advisories/GHSA-8w5j-6g2j-pxcp
ubuntu.com/security/CVE-2022-31001
ubuntu.com/security/notices/USN-5932-1
cve.org/CVERecord?id=CVE-2022-31001
ubuntu.com/security/CVE-2022-31002
ubuntu.com/security/CVE-2022-31003
ubuntu.com/security/CVE-2022-47516
ubuntu.com/security/CVE-2023-22741
suse.com/security/cve/CVE-2022-31001