Skip to content
Fencer Vulns
high 7.5

CVE-2022-31001 json

Out-of-bounds Read in Sofia-SIP

published 2022-05-31 4 y ago modified 2026-06-17 4 mo ago also EUVD-2022-52708

cvss
7.5
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
2.2%
EPSS 2.2% chance of exploitation in 30 days, percentile 82%
public exploits
0
none known

Summary

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.

Patch / fix

  • signalwire sofia-sip 1.13.8
  • sofia-sip Debian 14, Debian 13, Debian 12 1.12.11+20110422.1+1e14eea~dfsg-3

debian advisories DEBIAN-CVE-2022-31001

  • sofia-sip Ubuntu 18.04 LTS 1.12.11+20110422.1-2.1+deb10u3build0.18.04.1
  • sofia-sip Ubuntu 20.04 LTS 1.12.11+20110422.1-2.1+deb10u3ubuntu0.20.04.1
  • sofia-sip Ubuntu 22.04 LTS 1.12.11+20110422.1-2.1+deb10u3ubuntu0.22.04.1
  • sofia-sip Ubuntu Pro 16.04 LTS 1.12.11+20110422.1-2.1+deb10u3ubuntu0.16.04.1~esm1

ubuntu advisories UBUNTU-CVE-2022-31001

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • sofia-sip openSUSE Tumbleweed 1.13.17+50-1.1

opensuse advisories openSUSE-SU-2026:10964-1

  • sofia-sip Alpine 3.24, Alpine 3.23, Alpine 3.22 +8 more 1.13.8-r0

alpine advisories ALPINE-CVE-2022-31001

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-31001 updated cvss 7.5

sofia-sip: out-of-bound read in sip_method_d() in sip_parser.c

  • Red Hat All currently supported Red Hat products
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

2.22% chance of exploitation in the next 30 days, higher than 82% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • github.com https://github.com/freeswitch/sofia-sip/security/advisories/GHSA-79jq-hh82-cv9g referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD 2.0 5.0 AV:N/AC:L/Au:N/C:N/I:N/A:P

Affected products

  • freeswitch sofia-sip

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.