PT-2023-21556 · Opensips+1 · Opensis+1
Razvancrainea
·
Published
2023-03-15
·
Updated
2023-03-21
·
CVE-2023-28096
CVSS v3.1
4.5
Medium
| Vector | AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
OpenSIPS versions 2.3 through 3.1.7
OpenSIPS versions 3.2 through 3.2.4
Description
The issue is a memory leak in OpenSIPS, a Session Initiation Protocol (SIP) server implementation. 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". The 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.Recommendations
For OpenSIPS versions 2.3 through 3.1.7, update to version 3.1.8 or later.
For OpenSIPS versions 3.2 through 3.2.4, update to version 3.2.5 or later.
As a temporary workaround, consider restricting access to the management interface (MI) to minimize the risk of exploitation.
Exploit
Fix
Memory Leak
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Opensis
Cjson