Description
OpenSIPS is a Session Initiation Protocol (SIP) server implementation. In versions prior to 3.6.6 and 4.0.0-rc1, the find_line_delimiter() function in the multipart body parser performs an out-of-bounds read via strncmp() when searching for MIME boundary delimiters. After finding a -- pattern near the end of the body, the function compares delimiter.len bytes (typically 20-70) starting from a position at or past the logical end of the body buffer, reading past the body boundary. The bug triggers when a SIP message has Content-Type: multipart/mixed with a boundary parameter and its body contains -- within two to three bytes of the body's end without being followed by the actual boundary delimiter. This issue has been fixed in versions 3.6.6 and 4.0.0-rc1.
Published: 2026-08-04
Score: 5.3 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability is an out-of-bounds read that occurs in the multipart body parser of OpenSIPS. While parsing a SIP message that contains a MIME boundary in a multipart/mixed body, the find_line_delimiter() function uses strncmp() to compare delimiter length bytes starting beyond the logical end of the body buffer. The flaw can cause the server to read memory past the buffer, potentially exposing sensitive data stored there. The impact is limited to confidentiality risk and is reflected in a CVSS score of 5.3.

Affected Systems

OpenSIPS servers running a version earlier than 3.6.6 or before the release of 4.0.0‑rc1 are affected. The issue only affects the OpenSIPS project itself; no other vendors or products are listed.

Risk and Exploitability

The exploit requires delivery of a specially crafted SIP packet containing a Content‑Type of multipart/mixed with a boundary parameter whose body ends two to three bytes before the final boundary separator. An attacker can then trigger the out‑of‑bounds read over the network. No privilege escalation or code execution is provided. The EPSS score is not available, the CVSS score of 5.3 positions the risk as moderate, and the vulnerability is not listed in the CISA KEV catalog.

Generated by OpenCVE AI on August 5, 2026 at 00:14 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade OpenSIPS to version 3.6.6 or later, or 4.0.0‑rc1 or later, to apply the patch that removes the out‑of‑bounds read.
  • If an immediate upgrade is not possible, restrict the server to accept SIP traffic only from trusted peers or from a controlled network segment to reduce exposure to crafted messages.
  • Implement additional input validation or packet filtering that rejects multipart/mixed bodies where a boundary delimiter pattern occurs near the end without a proper terminator, thereby preventing the read beyond the buffer boundary.

Generated by OpenCVE AI on August 5, 2026 at 00:14 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 05 Aug 2026 00:45:00 +0000

Type Values Removed Values Added
First Time appeared Opensips
Opensips opensips
Vendors & Products Opensips
Opensips opensips

Tue, 04 Aug 2026 23:30:00 +0000

Type Values Removed Values Added
Description OpenSIPS is a Session Initiation Protocol (SIP) server implementation. In versions prior to 3.6.6 and 4.0.0-rc1, the find_line_delimiter() function in the multipart body parser performs an out-of-bounds read via strncmp() when searching for MIME boundary delimiters. After finding a -- pattern near the end of the body, the function compares delimiter.len bytes (typically 20-70) starting from a position at or past the logical end of the body buffer, reading past the body boundary. The bug triggers when a SIP message has Content-Type: multipart/mixed with a boundary parameter and its body contains -- within two to three bytes of the body's end without being followed by the actual boundary delimiter. This issue has been fixed in versions 3.6.6 and 4.0.0-rc1.
Title OpenSIPS: OOB Read in Multipart Body Boundary Parsing
Weaknesses CWE-125
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}


Subscriptions

Opensips Opensips
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-04T23:16:31.543Z

Reserved: 2026-05-13T04:38:01.165Z

Link: CVE-2026-45705

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-05T00:30:05Z

Weaknesses