Integer Overflow or Wraparound Affecting opensips package, versions [,3.1.9)[3.2.0,3.2.6)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.14% (52nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-OPENSIPS-3361810
  • published16 Mar 2023
  • disclosed16 Mar 2023
  • creditsandrogauci, alfredfarrugia

Introduced: 16 Mar 2023

CVE-2023-28097  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade opensips to version 3.1.9, 3.2.6 or higher.

Overview

Affected versions of this package are vulnerable to Integer Overflow or Wraparound such that a malformed SIP message containing a large _Content-Length_ value and a specially crafted Request-URI causes a segmentation fault in OpenSIPS. This issue occurs when a large amount of shared memory using the -m flag was allocated to OpenSIPS, such as 10 GB of RAM.

Workaround

Users who are unable to upgrade should guarantee that the Content-Length value of input messages is never larger than 2147483647.

References

CVSS Scores

version 3.1