cbcvebase.
CVE-2022-31003
published 2022-05-31

CVE-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
VendorProductVersion rangeFixed in
debiandebian_linux
debiansofia-sip< sofia-sip 1.12.11+20110422.1+1e14eea~dfsg-3 (bookworm)sofia-sip 1.12.11+20110422.1+1e14eea~dfsg-3 (bookworm)
freeswitchsofia-sip< 1.13.81.13.8
freeswitchsofia-sip>= 0 < 1.12.11+20110422.1-2.1+deb11u11.12.11+20110422.1-2.1+deb11u1
freeswitchsofia-sip>= 0 < 1.12.11+20110422.1+1e14eea~dfsg-31.12.11+20110422.1+1e14eea~dfsg-3
freeswitchsofia-sip>= 0 < 1.12.11+20110422.1+1e14eea~dfsg-31.12.11+20110422.1+1e14eea~dfsg-3
freeswitchsofia-sip>= 0 < 1.12.11+20110422.1+1e14eea~dfsg-31.12.11+20110422.1+1e14eea~dfsg-3
freeswitchsofia-sip>= 0 < 1.12.11+20110422.1-2.1+deb10u3build0.18.04.11.12.11+20110422.1-2.1+deb10u3build0.18.04.1
freeswitchsofia-sip>= 0 < 1.12.11+20110422.1-2.1+deb10u3ubuntu0.20.04.11.12.11+20110422.1-2.1+deb10u3ubuntu0.20.04.1
freeswitchsofia-sip>= 0 < 1.12.11+20110422.1-2.1+deb10u3ubuntu0.22.04.11.12.11+20110422.1-2.1+deb10u3ubuntu0.22.04.1
freeswitchsofia-sip>= 0 < 1.12.11+20110422.1-2.1+deb10u3ubuntu0.16.04.1~esm11.12.11+20110422.1-2.1+deb10u3ubuntu0.16.04.1~esm1
signalwiresofia-sip< 1.13.81.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.