Vulnerability · Published May 31, 2022 · Assigned by GitHub_M

CVE-2022-31001Out-of-bounds Read in Sofia-SIP

High 7.5

In plain English

A high-severity out-of-bounds read in sofia-sip from freeswitch. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.2% (higher than 83% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)2.2%top 17.2% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20sofia-sip1.13.8-r0ALPINE-CVE-2022-31001
Alpine:v3.21sofia-sip1.13.8-r0ALPINE-CVE-2022-31001
Alpine:v3.22sofia-sip1.13.8-r0ALPINE-CVE-2022-31001
Alpine:v3.23sofia-sip1.13.8-r0ALPINE-CVE-2022-31001
Alpine:v3.24sofia-sip1.13.8-r0ALPINE-CVE-2022-31001
Debian:12sofia-sip1.12.11+20110422.1+1e14eea~dfsg-3DEBIAN-CVE-2022-31001
Debian:13sofia-sip1.12.11+20110422.1+1e14eea~dfsg-3DEBIAN-CVE-2022-31001
Debian:14sofia-sip1.12.11+20110422.1+1e14eea~dfsg-3DEBIAN-CVE-2022-31001
Ubuntu:22.04:LTSsofia-sip1.12.11+20110422.1-2.1+deb10u3ubuntu0.22.04.1UBUNTU-CVE-2022-31001
Ubuntu:22.04:LTSsofia-sip1.12.11+20110422.1-2.1+deb10u3ubuntu0.22.04.1USN-5932-1

Affected products (as reported)

VendorProductVersions
freeswitch sofia-sip < 1.13.8

Weakness: CWE-125 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References