Every CVE Search/ Get API key

CVE-2022-31001

Out-of-bounds Read in Sofia-SIP

7.5 HighFix available

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

2.22%Up 1.3 points since Jun 1, 2022
90%50%10%1%

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 HighCVSS: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 HighCVSS: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 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.0
5.0 MediumAV: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 HighCVSS: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 HighCVSS: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 HighCVSS: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

Affected packages
PackageAffectedFixed
sofia-sip
Alpine:v3.14
before 1.13.8-r0
1.13.8-r0
sofia-sip
Alpine:v3.15
before 1.13.8-r0
1.13.8-r0
sofia-sip
Alpine:v3.16
before 1.13.8-r0
1.13.8-r0
sofia-sip
Alpine:v3.17
before 1.13.8-r0
1.13.8-r0
sofia-sip
Alpine:v3.18
before 1.13.8-r0
1.13.8-r0
sofia-sip
Alpine:v3.19
before 1.13.8-r0
1.13.8-r0
sofia-sip
Alpine:v3.20
before 1.13.8-r0
1.13.8-r0
sofia-sip
Alpine:v3.21
before 1.13.8-r0
1.13.8-r0
sofia-sip
Alpine:v3.22
before 1.13.8-r0
1.13.8-r0
sofia-sip
Alpine:v3.23
before 1.13.8-r0
1.13.8-r0
Show 12 moreShow less
Affected packages
PackageAffectedFixed
sofia-sip
Alpine:v3.24
before 1.13.8-r0
1.13.8-r0
sofia-sip
Debian:12
before 1.12.11+20110422.1+1e14eea~dfsg-3
1.12.11+20110422.1+1e14eea~dfsg-3
sofia-sip
Debian:13
before 1.12.11+20110422.1+1e14eea~dfsg-3
1.12.11+20110422.1+1e14eea~dfsg-3
sofia-sip
Debian:14
before 1.12.11+20110422.1+1e14eea~dfsg-3
1.12.11+20110422.1+1e14eea~dfsg-3
sofia-sip
Debian: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-sip
Debian: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-sip
Mageia:8
before 1.12.11-10.1.mga8
1.12.11-10.1.mga8
sofia-sip
Ubuntu: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-sip
Ubuntu: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-sip
Ubuntu: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-sip
Ubuntu: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-sip
openSUSE:Tumbleweed
before 1.13.17+50-1.1
1.13.17+50-1.1

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE 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

Show 16 moreShow less
MoveEnter Open