{"id":"CVE-2022-31003","state":"PUBLISHED","title":"Heap-based Buffer Overflow and Out-of-bounds Write in Sofia-SIP","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.","publishedAt":"2022-05-31T00:00:00.000Z","updatedAt":"2025-04-22T17:55:56.743Z","severity":{"score":9.1,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["freeswitch sofia-sip"],"affected":[{"vendor":"freeswitch","product":"sofia-sip","versions":[{"version":"< 1.13.8","status":"affected"}]}],"references":["https://github.com/freeswitch/sofia-sip/security/advisories/GHSA-8w5j-6g2j-pxcp","https://github.com/freeswitch/sofia-sip/commit/907f2ac0ee504c93ebfefd676b4632a3575908c9","https://lists.debian.org/debian-lts-announce/2022/09/msg00001.html","https://security.gentoo.org/glsa/202210-18","https://www.debian.org/security/2023/dsa-5410"],"weaknesses":["CWE-122","CWE-787"],"ingestedAt":"2026-10-29T19:50:06.617Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/31xxx/CVE-2022-31003.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2022-31003","state":"PUBLISHED","datePublished":"2022-05-31T00:00:00.000Z","dateUpdated":"2025-04-22T17:55:56.743Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2022-05-18T00:00:00.000Z"},"containers":{"cna":{"title":"Heap-based Buffer Overflow and Out-of-bounds Write in Sofia-SIP","descriptions":[{"lang":"en","value":"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":[{"vendor":"freeswitch","product":"sofia-sip","versions":[{"version":"< 1.13.8","status":"affected"}]}],"references":[{"url":"https://github.com/freeswitch/sofia-sip/security/advisories/GHSA-8w5j-6g2j-pxcp"},{"url":"https://github.com/freeswitch/sofia-sip/commit/907f2ac0ee504c93ebfefd676b4632a3575908c9"},{"url":"https://lists.debian.org/debian-lts-announce/2022/09/msg00001.html","name":"[debian-lts-announce] 20220902 [SECURITY] [DLA 3091-1] sofia-sip security update","tags":["mailing-list"]},{"url":"https://security.gentoo.org/glsa/202210-18","name":"GLSA-202210-18","tags":["vendor-advisory"]},{"url":"https://www.debian.org/security/2023/dsa-5410","name":"DSA-5410","tags":["vendor-advisory"]}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.1,"baseSeverity":"CRITICAL"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-122","type":"CWE","lang":"en","description":"CWE-122: Heap-based Buffer Overflow"}]},{"descriptions":[{"cweId":"CWE-787","type":"CWE","lang":"en","description":"CWE-787: Out-of-bounds Write"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2023-05-24T00:00:00.000Z"},"source":{"advisory":"GHSA-8w5j-6g2j-pxcp","discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/freeswitch/sofia-sip/security/advisories/GHSA-8w5j-6g2j-pxcp","tags":["x_transferred"]},{"url":"https://github.com/freeswitch/sofia-sip/commit/907f2ac0ee504c93ebfefd676b4632a3575908c9","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/09/msg00001.html","name":"[debian-lts-announce] 20220902 [SECURITY] [DLA 3091-1] sofia-sip security update","tags":["mailing-list","x_transferred"]},{"url":"https://security.gentoo.org/glsa/202210-18","name":"GLSA-202210-18","tags":["vendor-advisory","x_transferred"]},{"url":"https://www.debian.org/security/2023/dsa-5410","name":"DSA-5410","tags":["vendor-advisory","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T07:03:40.261Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-04-22T15:41:07.596387Z","id":"CVE-2022-31003","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-04-22T17:55:56.743Z"}}]}}}