{"id":"CVE-2023-27598","state":"PUBLISHED","title":"OpenSIPS has vulnerability in the parse_via() function","description":"OpenSIPS is a Session Initiation Protocol (SIP) server implementation. Prior to versions 3.1.7 and 3.2.4, sending a malformed `Via` header to OpenSIPS triggers a segmentation fault when the function `calc_tag_suffix` is called. A specially crafted `Via` header, which is deemed correct by the parser, will pass uninitialized strings to the function `MD5StringArray` which leads to the crash. Abuse of this vulnerability leads to Denial of Service due to a crash. Since the uninitialized string points to memory location `0x0`, no further exploitation appears to be possible. No special network privileges are required to perform this attack, as long as the OpenSIPS configuration makes use of functions such as `sl_send_reply` or `sl_gen_totag` that trigger the vulnerable code. This issue has been fixed in versions 3.1.7 and 3.2.4.","publishedAt":"2023-03-15T20:29:49.673Z","updatedAt":"2025-02-25T14:57:06.043Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["OpenSIPS opensips"],"affected":[{"vendor":"OpenSIPS","product":"opensips","versions":[{"version":"< 3.1.7","status":"affected"},{"version":">= 3.2.0, < 3.2.4","status":"affected"}]}],"references":["https://github.com/OpenSIPS/opensips/security/advisories/GHSA-wxfg-3gwh-rhvx","https://github.com/OpenSIPS/opensips/commit/ab611f74f69d9c42be5401c40d56ea06a58f5dd7","https://opensips.org/pub/audit-2022/opensips-audit-technical-report-full.pdf"],"weaknesses":["CWE-908"],"ingestedAt":"2026-10-29T20:05:52.290Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/27xxx/CVE-2023-27598.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2023-27598","state":"PUBLISHED","datePublished":"2023-03-15T20:29:49.673Z","dateUpdated":"2025-02-25T14:57:06.043Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2023-03-04T01:03:53.637Z"},"containers":{"cna":{"title":"OpenSIPS has vulnerability in the parse_via() function","descriptions":[{"lang":"en","value":"OpenSIPS is a Session Initiation Protocol (SIP) server implementation. Prior to versions 3.1.7 and 3.2.4, sending a malformed `Via` header to OpenSIPS triggers a segmentation fault when the function `calc_tag_suffix` is called. A specially crafted `Via` header, which is deemed correct by the parser, will pass uninitialized strings to the function `MD5StringArray` which leads to the crash. Abuse of this vulnerability leads to Denial of Service due to a crash. Since the uninitialized string points to memory location `0x0`, no further exploitation appears to be possible. No special network privileges are required to perform this attack, as long as the OpenSIPS configuration makes use of functions such as `sl_send_reply` or `sl_gen_totag` that trigger the vulnerable code. This issue has been fixed in versions 3.1.7 and 3.2.4."}],"affected":[{"vendor":"OpenSIPS","product":"opensips","versions":[{"version":"< 3.1.7","status":"affected"},{"version":">= 3.2.0, < 3.2.4","status":"affected"}]}],"references":[{"url":"https://github.com/OpenSIPS/opensips/security/advisories/GHSA-wxfg-3gwh-rhvx","name":"https://github.com/OpenSIPS/opensips/security/advisories/GHSA-wxfg-3gwh-rhvx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/OpenSIPS/opensips/commit/ab611f74f69d9c42be5401c40d56ea06a58f5dd7","name":"https://github.com/OpenSIPS/opensips/commit/ab611f74f69d9c42be5401c40d56ea06a58f5dd7","tags":["x_refsource_MISC"]},{"url":"https://opensips.org/pub/audit-2022/opensips-audit-technical-report-full.pdf","name":"https://opensips.org/pub/audit-2022/opensips-audit-technical-report-full.pdf","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-908","lang":"en","description":"CWE-908: Use of Uninitialized Resource","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2023-03-15T20:29:49.673Z"},"source":{"advisory":"GHSA-wxfg-3gwh-rhvx","discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/OpenSIPS/opensips/security/advisories/GHSA-wxfg-3gwh-rhvx","name":"https://github.com/OpenSIPS/opensips/security/advisories/GHSA-wxfg-3gwh-rhvx","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/OpenSIPS/opensips/commit/ab611f74f69d9c42be5401c40d56ea06a58f5dd7","name":"https://github.com/OpenSIPS/opensips/commit/ab611f74f69d9c42be5401c40d56ea06a58f5dd7","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://opensips.org/pub/audit-2022/opensips-audit-technical-report-full.pdf","name":"https://opensips.org/pub/audit-2022/opensips-audit-technical-report-full.pdf","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T12:16:36.462Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-02-25T14:30:55.171998Z","id":"CVE-2023-27598","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-02-25T14:57:06.043Z"}}]}}}