{"id":"CVE-2022-31003","published":"2022-05-31T00:00:00Z","modified":"2025-04-22T17:55:56Z","title":"Heap-based Buffer Overflow and Out-of-bounds Write in Sofia-SIP","vendor":"freeswitch","product":"sofia-sip","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.04141,"percentile":0.91082,"provenance":"source"},"cwes":[{"id":"CWE-122","name":"Heap-based Buffer Overflow"},{"id":"CWE-787","name":"Out-of-bounds Write"}],"references":[{"url":"https://github.com/freeswitch/sofia-sip/security/advisories/GHSA-8w5j-6g2j-pxcp","tags":[]},{"url":"https://github.com/freeswitch/sofia-sip/commit/907f2ac0ee504c93ebfefd676b4632a3575908c9","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2022/09/msg00001.html","tags":["mailing-list"]},{"url":"https://security.gentoo.org/glsa/202210-18","tags":["vendor-advisory"]},{"url":"https://www.debian.org/security/2023/dsa-5410","tags":["vendor-advisory"]}],"priority":{"score":24.6,"factors":[{"name":"EPSS percentile","points":18.22},{"name":"CVSS severity","points":6.37}]},"vendorSlug":"freeswitch","affectedVersions":[{"vendor":"freeswitch","product":"sofia-sip","versions":["< 1.13.8"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-04-22T15:41:07.596387Z","from":"CISA ADP","provenance":"source"},"summary":{"text":"A heap-based buffer overflow and out-of-bounds write in the SDP parsing code of Sofia-SIP, an open-source SIP User-Agent library from FreeSWITCH, affects versions prior to 1.13.8. An attacker who can send a crafted SIP message with a malicious SDP body over the network to a FreeSWITCH instance can cause a crash or potentially remote code execution, with no authentication or user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:35:29Z"},"euvd":{"id":"EUVD-2022-52710","exploited":false,"provenance":"source"}}