# CVE-2022-31001: libsofia-sip-ua-glib3: Sofia-SIP is an open-source Session Initiation Protocol (SIP) User-Agent library

CVE-2022-31001 is fixed in 4 products on 1 platform, first by DEBIAN-CVE-2022-31001, released May 31, 2022. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2022-31001
- Priority: High
- CVSS: 7.5 (Medium)
- EPSS: 0.0222
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: May 31, 2022

## 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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | libsofia-sip-ua-glib3 Ubuntu 18.04.6 LTS (bionic) | 1.12.11+20110422.1-2.1+deb10u3build0.18.04.1 | [libsofia-sip-ua-glib3 1.12.11+20110422.1-2.1+deb10u3build0.18.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libsofia-sip-ua-glib3-1.12.11-20110422.1-2.1-deb10u3build0.18.04.1.md) | Jan 19, 2023 |
| Linux | libsofia-sip-ua-glib3 Ubuntu 20.04 LTS (focal) | 1.12.11+20110422.1-2.1+deb10u3ubuntu0.20.04.1 | [libsofia-sip-ua-glib3 1.12.11+20110422.1-2.1+deb10u3ubuntu0.20.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libsofia-sip-ua-glib3-1.12.11-20110422.1-2.1-deb10u3ubuntu0.20.04.1.md) | Jan 19, 2023 |
| Linux | libsofia-sip-ua-glib3 Ubuntu 22.04.1 LTS (jammy) | 1.12.11+20110422.1-2.1+deb10u3ubuntu0.22.04.1 | [libsofia-sip-ua-glib3 1.12.11+20110422.1-2.1+deb10u3ubuntu0.22.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libsofia-sip-ua-glib3-1.12.11-20110422.1-2.1-deb10u3ubuntu0.22.04.1.md) | Jan 19, 2023 |
| Linux | libsofia-sip-ua0 Ubuntu 18.04.6 LTS (bionic) | 1.12.11+20110422.1-2.1+deb10u3build0.18.04.1 | [libsofia-sip-ua0 1.12.11+20110422.1-2.1+deb10u3build0.18.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libsofia-sip-ua0-1.12.11-20110422.1-2.1-deb10u3build0.18.04.1.md) | Jan 19, 2023 |
| Linux | libsofia-sip-ua0 Ubuntu 20.04 LTS (focal) | 1.12.11+20110422.1-2.1+deb10u3ubuntu0.20.04.1 | [libsofia-sip-ua0 1.12.11+20110422.1-2.1+deb10u3ubuntu0.20.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libsofia-sip-ua0-1.12.11-20110422.1-2.1-deb10u3ubuntu0.20.04.1.md) | Jan 19, 2023 |
| Linux | libsofia-sip-ua0 Ubuntu 22.04.1 LTS (jammy) | 1.12.11+20110422.1-2.1+deb10u3ubuntu0.22.04.1 | [libsofia-sip-ua0 1.12.11+20110422.1-2.1+deb10u3ubuntu0.22.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libsofia-sip-ua0-1.12.11-20110422.1-2.1-deb10u3ubuntu0.22.04.1.md) | Jan 19, 2023 |
| Linux | sofia-sip Debian 11.6 (bullseye) | 1.12.11+20110422.1-2.1+deb11u1 | [DSA-5410-1](https://patchblox.com/security/data/fix/linux/dsa-5410-1.md) | May 24, 2023 |
| Linux | sofia-sip Debian 12.15 (bookworm) | 1.12.11+20110422.1+1e14eea~dfsg-3 | [DEBIAN-CVE-2022-31001](https://patchblox.com/security/data/fix/linux/debian-cve-2022-31001.md) | May 31, 2022 |
| Linux | sofia-sip Debian 13.5 (trixie) | 1.12.11+20110422.1+1e14eea~dfsg-3 | [DEBIAN-CVE-2022-31001](https://patchblox.com/security/data/fix/linux/debian-cve-2022-31001.md) | May 31, 2022 |
| Linux | sofia-sip Debian 14 | 1.12.11+20110422.1+1e14eea~dfsg-3 | [DEBIAN-CVE-2022-31001](https://patchblox.com/security/data/fix/linux/debian-cve-2022-31001.md) | May 31, 2022 |
| Linux | sofia-sip-bin Ubuntu 18.04.6 LTS (bionic) | 1.12.11+20110422.1-2.1+deb10u3build0.18.04.1 | [sofia-sip-bin 1.12.11+20110422.1-2.1+deb10u3build0.18.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-sofia-sip-bin-1.12.11-20110422.1-2.1-deb10u3build0.18.04.1.md) | Jan 19, 2023 |
| Linux | sofia-sip-bin Ubuntu 20.04 LTS (focal) | 1.12.11+20110422.1-2.1+deb10u3ubuntu0.20.04.1 | [sofia-sip-bin 1.12.11+20110422.1-2.1+deb10u3ubuntu0.20.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-sofia-sip-bin-1.12.11-20110422.1-2.1-deb10u3ubuntu0.20.04.1.md) | Jan 19, 2023 |
| Linux | sofia-sip-bin Ubuntu 22.04.1 LTS (jammy) | 1.12.11+20110422.1-2.1+deb10u3ubuntu0.22.04.1 | [sofia-sip-bin 1.12.11+20110422.1-2.1+deb10u3ubuntu0.22.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-sofia-sip-bin-1.12.11-20110422.1-2.1-deb10u3ubuntu0.22.04.1.md) | Jan 19, 2023 |

---

Data as of 2026-11-08T13:06:02Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
