9.1critical
Heap-based Buffer Overflow and Out-of-bounds Write in Sofia-SIP
- Severity
- 9.1critical CVSS:3.1 by GitHub_M
- Exploit likelihood
- 3.32% (higher than 89% of CVEs)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| freeswitch sofia-sip | < 1.13.8 | CVE List |
| signalwire sofia-sip | before 1.13.8 | NVD |
| debian debian_linux | 10.0 | NVD |
All scores
| GitHub_M | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
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.
NVD (es)
Sofia-SIP es una biblioteca de agente de usuario del Protocolo de Iniciación de Sesión (SIP) de código abierto. En versiones anteriores a 1.13.8, cuando es analizada cada línea de un mensaje sdp, "rest = record + 2" accedía a la memoria detrás de "\0" y causaba una escritura fuera de límites. Un atacante puede enviar un mensaje con sdp maligno a FreeSWITCH, causando un bloqueo o una consecuencia más grave, como una ejecución remota de código. La versión 1.13.8 contiene un parche para este problema
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-31003 changed 2025-04-22 | CVE Terms of Use |
| NVD | CVE-2022-31003 changed 2026-06-17 | Public domain |