Vulnerabilities · 2023 · Opensips
CVE-2023-28096
Opensips vulnerability
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.
Affected products
Opensips. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Opensips runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- opensips.org/pub/audit-2022/opensips-audit-technical-report-full.pdf · Vendor Advisory
- github.com/OpenSIPS/opensips/commit/417568707520af25ec5c5dd91da18e6db3649dcb · Patch
- github.com/OpenSIPS/opensips/security/advisories/GHSA-2mg2-g46r-j4qr · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2023-28096
- cve.org/CVERecord?id=CVE-2023-28096
More vulnerabilities in Opensips products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.