CVE-2022-31003
published 2022-05-31CVE-2022-31003: 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 =…
PriorityP263critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
3.66%
88.2th percentile
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.
Affected
12 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | debian_linux | — | — |
| debian | sofia-sip | < sofia-sip 1.12.11+20110422.1+1e14eea~dfsg-3 (bookworm) | sofia-sip 1.12.11+20110422.1+1e14eea~dfsg-3 (bookworm) |
| freeswitch | sofia-sip | < 1.13.8 | 1.13.8 |
| freeswitch | sofia-sip | >= 0 < 1.12.11+20110422.1-2.1+deb11u1 | 1.12.11+20110422.1-2.1+deb11u1 |
| freeswitch | sofia-sip | >= 0 < 1.12.11+20110422.1+1e14eea~dfsg-3 | 1.12.11+20110422.1+1e14eea~dfsg-3 |
| freeswitch | sofia-sip | >= 0 < 1.12.11+20110422.1+1e14eea~dfsg-3 | 1.12.11+20110422.1+1e14eea~dfsg-3 |
| freeswitch | sofia-sip | >= 0 < 1.12.11+20110422.1+1e14eea~dfsg-3 | 1.12.11+20110422.1+1e14eea~dfsg-3 |
| freeswitch | sofia-sip | >= 0 < 1.12.11+20110422.1-2.1+deb10u3build0.18.04.1 | 1.12.11+20110422.1-2.1+deb10u3build0.18.04.1 |
| freeswitch | sofia-sip | >= 0 < 1.12.11+20110422.1-2.1+deb10u3ubuntu0.20.04.1 | 1.12.11+20110422.1-2.1+deb10u3ubuntu0.20.04.1 |
| freeswitch | sofia-sip | >= 0 < 1.12.11+20110422.1-2.1+deb10u3ubuntu0.22.04.1 | 1.12.11+20110422.1-2.1+deb10u3ubuntu0.22.04.1 |
| freeswitch | sofia-sip | >= 0 < 1.12.11+20110422.1-2.1+deb10u3ubuntu0.16.04.1~esm1 | 1.12.11+20110422.1-2.1+deb10u3ubuntu0.16.04.1~esm1 |
| signalwire | sofia-sip | < 1.13.8 | 1.13.8 |
Detection & IOCsextracted from sources · hover to see the quote
- →Trigger condition: out-of-bounds write occurs when parsing each line of an SDP message via the expression `rest = record + 2`, which accesses memory behind the null terminator `\0`. Monitor for malformed/malicious SDP message parsing in Sofia-SIP-based applications (e.g., FreeSWITCH). ↗
- →Attack vector is network-based: an attacker sends a specially crafted SDP packet to a Sofia-SIP application (e.g., FreeSWITCH). Alert on unexpected crashes or abnormal process termination in FreeSWITCH or other Sofia-SIP consumers following receipt of SIP messages with malformed SDP bodies. ↗
- →Scope of exploitation is network-reachable (remote attacker). Prioritize detection on SIP/SDP traffic ingress points. A remote attacker could use this issue to cause applications using Sofia-SIP to crash or possibly execute arbitrary code. ↗
- ·Vulnerability is fixed in Sofia-SIP version 1.13.8 (upstream) and in specific Debian package versions. Ensure patched versions are deployed; unpatched Sofia-SIP instances remain exploitable via crafted SDP messages. ↗
- ·On Debian, fixed versions vary by release: bookworm/forky/sid/trixie fixed in 1.12.11+20110422.1+1e14eea~dfsg-3; bullseye fixed in 1.12.11+20110422.1-2.1+deb11u1. Verify installed package version matches or exceeds these. ↗
- ·Ubuntu affected releases include 16.04 ESM, 18.04 LTS, 20.04 LTS, and 22.04 LTS. Apply standard system update to remediate. ↗
CVSS provenance
nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
osv9.8CRITICAL
vendor_debian9.1CRITICAL
vendor_ubuntu7.5HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
sofia-sip vulnerabilities
osv·2023-03-07·CVSS 7.5
CVE-2022-31001 [HIGH] sofia-sip vulnerabilities
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-SI
OSV
CVE-2022-31003: Sofia-SIP is an open-source Session Initiation Protocol (SIP) User-Agent library
osv·2022-05-31·CVSS 9.8
CVE-2022-31003 [CRITICAL] CVE-2022-31003: Sofia-SIP is an open-source Session Initiation Protocol (SIP) User-Agent library
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.
Ubuntu
Sofia-SIP vulnerabilities
vendor_ubuntu·2023-03-07·CVSS 7.5
CVE-2022-47516 [HIGH] Sofia-SIP vulnerabilities
Title: Sofia-SIP vulnerabilities
Summary: Several security issues were fixed in Sofia-SIP.
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
Debian
CVE-2022-31003: sofia-sip - Sofia-SIP is an open-source Session Initiation Protocol (SIP) User-Agent library...
vendor_debian·2022·CVSS 9.1
CVE-2022-31003 [CRITICAL] CVE-2022-31003: sofia-sip - Sofia-SIP is an open-source Session Initiation Protocol (SIP) User-Agent library...
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.
Scope: local
bookworm: resolved (fixed in 1.12.11+20110422.1+1e14eea~dfsg-3)
bullseye: resolved (fixed in 1.12.11+20110422.1-2.1+deb11u1)
forky: resolved (fixed in 1.12.11+20110422.1+1e14eea~dfsg-3)
sid: resolved (fixed in 1.12.11+20110422.1+1e14eea~dfsg-3)
trixie: resolved (fixed in 1.12.11+20110422.1+1e14eea~dfsg-3)
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/freeswitch/sofia-sip/commit/907f2ac0ee504c93ebfefd676b4632a3575908c9https://github.com/freeswitch/sofia-sip/security/advisories/GHSA-8w5j-6g2j-pxcphttps://lists.debian.org/debian-lts-announce/2022/09/msg00001.htmlhttps://security.gentoo.org/glsa/202210-18https://www.debian.org/security/2023/dsa-5410https://github.com/freeswitch/sofia-sip/commit/907f2ac0ee504c93ebfefd676b4632a3575908c9https://github.com/freeswitch/sofia-sip/security/advisories/GHSA-8w5j-6g2j-pxcphttps://lists.debian.org/debian-lts-announce/2022/09/msg00001.htmlhttps://security.gentoo.org/glsa/202210-18https://www.debian.org/security/2023/dsa-5410
2022-05-31
Published