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

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.24%, higher than 83% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-05-31T00:00:00.000Z
- Modified: 2026-06-17T04:44:34.950Z
- Weaknesses: CWE-125
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- freeswitch sofia-sip: < 1.13.8
- signalwire sofia-sip: before 1.13.8
- debian debian_linux: 10.0; 11.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/freeswitch/sofia-sip/security/advisories/GHSA-79jq-hh82-cv9g> (exploit, third-party-advisory)
- <https://github.com/freeswitch/sofia-sip/commit/a99804b336d0e16d26ab7119d56184d2d7110a36> (patch, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2022/09/msg00001.html> (mailing-list, third-party-advisory)
- <https://security.gentoo.org/glsa/202210-18> (third-party-advisory, vendor-advisory)
- <https://www.debian.org/security/2023/dsa-5410> (third-party-advisory, vendor-advisory)

## Sources

- CVE List: [CVE-2022-31001](https://www.cve.org/CVERecord?id=CVE-2022-31001), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2022-31001](https://nvd.nist.gov/vuln/detail/CVE-2022-31001), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-31001 · Whole record: https://cve.day/CVE-2022-31001.json · Rebuilt by cve.day 2026-11-25T22:58:12.013Z
