CVE-2023-27598

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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:a:opensips:opensips:*:*:*:*:*:*:*:*
cpe:2.3:a:opensips:opensips:*:*:*:*:*:*:*:*

History

21 Mar 2023, 19:14

Type Values Removed Values Added
CPE cpe:2.3:a:opensips:opensips:*:*:*:*:*:*:*:*
References (MISC) https://github.com/OpenSIPS/opensips/commit/ab611f74f69d9c42be5401c40d56ea06a58f5dd7 - (MISC) https://github.com/OpenSIPS/opensips/commit/ab611f74f69d9c42be5401c40d56ea06a58f5dd7 - Patch, Third Party Advisory
References (MISC) https://github.com/OpenSIPS/opensips/security/advisories/GHSA-wxfg-3gwh-rhvx - (MISC) https://github.com/OpenSIPS/opensips/security/advisories/GHSA-wxfg-3gwh-rhvx - Third Party Advisory
References (MISC) https://opensips.org/pub/audit-2022/opensips-audit-technical-report-full.pdf - (MISC) https://opensips.org/pub/audit-2022/opensips-audit-technical-report-full.pdf - Third Party Advisory
First Time Opensips opensips
Opensips
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 7.5

15 Mar 2023, 21:15

Type Values Removed Values Added
New CVE

Information

Published : 2023-03-15 21:15

Updated : 2023-12-10 14:48


NVD link : CVE-2023-27598

Mitre link : CVE-2023-27598

CVE.ORG link : CVE-2023-27598


JSON object : View

Products Affected

opensips

  • opensips
CWE
CWE-908

Use of Uninitialized Resource