CVE-2023-27598 OpenSIPS has vulnerability in the parse_via() function

High 7.5 Published Updated

A malformed Via header causes a segmentation fault in OpenSIPS, leading to denial of service if specific configuration functions are used.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2023-27598?

CVE-2023-27598 is a high-severity vulnerability in opensips, published on 15 Mar 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-908

Which versions are affected by CVE-2023-27598?

It affects 1 product.

Products include Opensips Opensips.

How do I fix CVE-2023-27598?

No fix has been published for CVE-2023-27598 yet. Limit exposure of the affected software until one is available.

Is CVE-2023-27598 being exploited?

There is no known exploitation of CVE-2023-27598 in the wild and no public exploit code.

Sources

Also known as GHSA-wxfg-3gwh-rhvx, UBUNTU-CVE-2023-27598.

Is CVE-2023-27598 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free