CVE-2023-28096 OpenSIPS has memory leak in cJSON lib

Medium 4.5 Published Updated

Attackers can cause memory exhaustion and denial of service by sending malformed JSON requests to the OpenSIPS management interface if it is exposed without authentication.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2023-28096?

CVE-2023-28096 is a medium-severity denial of service vulnerability in opensips, published on 15 Mar 2023. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

Official description

OpenSIPS, a Session Initiation Protocol (SIP) server implementation, has a memory leak starting in the 2.3 branch and priot to versions 3.1.8 and 3.2.5. The memory leak was detected in the function `parse_mi_request` while performing coverage-guided fuzzing. This issue can be reproduced by sending multiple requests of the form `{"jsonrpc": "2.0","method": "log_le`. This malformed message was tested against an instance of OpenSIPS via FIFO transport layer and was found to increase the memory consumption over time.

To abuse this memory leak, attackers need to reach the management interface (MI) which typically should only be exposed on trusted interfaces. In cases where the MI is exposed to the internet without authentication, abuse of this issue will lead to memory exhaustion which may affect the underlying system’s availability. No authentication is typically required to reproduce this issue. On the other hand, memory leaks may occur in other areas of OpenSIPS where the cJSON library is used for parsing JSON objects.

The issue has been fixed in versions 3.1.8 and 3.2.5.

Weakness: CWE-401

Which versions are affected by CVE-2023-28096?

It affects 1 product.

Products include Opensips Opensips.

How do I fix CVE-2023-28096?

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

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2023-28096 being exploited?

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

Sources

Also known as GHSA-2mg2-g46r-j4qr, UBUNTU-CVE-2023-28096.

Is CVE-2023-28096 in your software?

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

Check your SBOMs for free