CVE-2022-31003
JSON

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 packageVersionsReported by
freeswitch sofia-sip< 1.13.8CVE List
signalwire sofia-sipbefore 1.13.8NVD
debian debian_linux10.0NVD

All scores

GitHub_M9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

CWE-122CWE-787

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

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

Sources

SourceRecordLicence
CVE ListCVE-2022-31003 changed 2025-04-22CVE Terms of Use
NVDCVE-2022-31003 changed 2026-06-17Public domain