{"id":"CVE-2022-31003","summary":"Heap-based Buffer Overflow and Out-of-bounds Write in Sofia-SIP","details":"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.","aliases":["GHSA-8w5j-6g2j-pxcp"],"modified":"2026-08-12T03:51:28.914811950Z","published":"2022-05-31T00:00:00Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-122","CWE-787"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31003.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31003.json"},{"type":"ADVISORY","url":"https://github.com/freeswitch/sofia-sip/security/advisories/GHSA-8w5j-6g2j-pxcp"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31003"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202210-18"},{"type":"ADVISORY","url":"https://www.debian.org/security/2023/dsa-5410"},{"type":"FIX","url":"https://github.com/freeswitch/sofia-sip/commit/907f2ac0ee504c93ebfefd676b4632a3575908c9"},{"type":"ARTICLE","url":"https://lists.debian.org/debian-lts-announce/2022/09/msg00001.html"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/freeswitch/sofia-sip","events":[{"introduced":"0"},{"fixed":"756ab9b5c9370423489e0d6a27166863c7a57fef"},{"fixed":"907f2ac0ee504c93ebfefd676b4632a3575908c9"}],"database_specific":{"cpe":"cpe:2.3:a:signalwire:sofia-sip:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"1.13.8"}],"source":["CPE_RANGE","REFERENCES"]}}],"versions":["v1.13.7","v1.13.6","v1.13.5","v1.13.3","v1.13.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-31003.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H"}]}