Every CVE Search/ Get API key

CVE-2022-31003

Heap-based Buffer Overflow and Out-of-bounds Write in Sofia-SIP

9.1 CriticalFix available

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.

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
High
Availability
High

Exploit likelihood

4.11%Up 0.8 points since Jun 1, 2022
90%50%10%1%

What each source reports

CVE List Score used 9.1

Heap-based Buffer Overflow and Out-of-bounds Write in Sofia-SIP

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.

Record
CVE-2022-31003
CVSS 3.1
9.1 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Weakness
CWE-122, CWE-787
Updated
2026-11-02
EUVDEUVD-2022-52710 9.1

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.

Record
EUVD-2022-52710
CVSS 3.1
9.1 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Updated
2026-11-02
NVD 9.1

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.

Record
CVE-2022-31003
CVSS 3.1
9.1 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
7.5 HighAV:N/AC:L/Au:N/C:P/I:P/A:P
Weakness
CWE-122, CWE-787
Updated
2026-11-02
OSVALPINE-CVE-2022-31003 9.8

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.

Record
ALPINE-CVE-2022-31003
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-03
OSV 9.1

Heap-based Buffer Overflow and Out-of-bounds Write in Sofia-SIP

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.

Record
CVE-2022-31003
CVSS 3.1
9.1 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Weakness
CWE-122, CWE-787
Updated
2026-11-02
OSVDEBIAN-CVE-2022-31003 9.8

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.

Record
DEBIAN-CVE-2022-31003
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-03
OSVUBUNTU-CVE-2022-31003 9.8

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.

Record
UBUNTU-CVE-2022-31003
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 3.1
9.1 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Updated
2026-11-02
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
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 11 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

History

History
RecordedChangedSources
first indexedCVE List, EUVD, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2022-31003 is a critical vulnerability (CVSS 9.1) 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 4.11%, the 90th percentile. Fixed in sofia-sip 1.13.8-r0.

References

Show 15 moreShow less
MoveEnter Open