# CVE-2022-31003: Heap-based Buffer Overflow and Out-of-bounds Write in Sofia-SIP

- Severity: Critical 9.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/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): 3.32%, higher than 89% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-05-31T00:00:00.000Z
- Modified: 2026-06-17T04:44:35.177Z
- Weaknesses: CWE-122, CWE-787
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

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

## Every score

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

## References

- <https://github.com/freeswitch/sofia-sip/security/advisories/GHSA-8w5j-6g2j-pxcp> (exploit, third-party-advisory)
- <https://github.com/freeswitch/sofia-sip/commit/907f2ac0ee504c93ebfefd676b4632a3575908c9> (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> (vendor-advisory)

## Sources

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

---

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