CVE-2022-31003 CRITICAL

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

Vendor Freeswitch
Product sofia-sip
Weakness CWE-122
Published May 31, 2022
Last update April 22, 2025

CVSS base score

9.1/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction None
Confidentiality None
Integrity High

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

May 31, 2022 CVE published
April 22, 2025 Record updated