OpenSIPS
CVE-2026-45705
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend crafted SIP message with multipart/mixed body
-
DeliveryInclude '--' within 2-3 bytes of body end
-
ExploitTrigger find_line_delimiter() in parse_body.c
-
Executionstrncmp() reads past buffer boundary
-
ImpactMemory disclosure or process availability disruption
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK
1 technique across 1 tactic: Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the target OpenSIPS instance to receive and parse a SIP message containing (1) a Content-Type: multipart/mixed header with a boundary parameter specifying the delimiter string, and (2) a message body where the two-character sequence "--" appears within two to three bytes of the buffer's logical end without being followed by the actual boundary delimiter. No authentication is required (CVSS PR:N) and no special server configuration beyond standard SIP message processing is needed. The CVSS AV:N/AC:L/PR:N/UI:N vector confirms exploitation is possible by any unauthenticated remote host that can deliver SIP traffic to the server. Limiting factors: OpenSIPS deployments that never process multipart SIP bodies - for example, those acting solely as stateless proxies that forward messages without body inspection - have reduced practical exposure, though the parser may still be invoked depending on routing configuration. |
| Impact | The official CVSS 3.1 base score of 5.3 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L) positions this as a medium-severity, unauthenticated, network-exploitable availability disruption. The AV:N/PR:N combination is particularly significant for SIP servers, which routinely accept traffic from anonymous external sources and cannot easily gate on authentication at the parsing layer. The AC:L rating is consistent with the low crafting burden: a single malformed SIP message suffices. However, the official C:N rating conflicts directly with the reporter-supplied "Information Disclosure" tag and the mechanics of CWE-125 - an out-of-bounds read via strncmp() can expose adjacent heap or stack memory contents to an attacker who can observe server behavior or error responses, suggesting the confidentiality impact may be conservatively rated. No EPSS score is present in the provided data; independently, the low exploitation complexity and zero authentication requirement suggest non-trivial automated exploitation potential despite the absence of a public POC or KEV listing. SSVC signals: exploitation=none confirmed, automatable=yes (AC:L/PR:N, no human in the loop), technical impact=partial (limited to availability and possibly narrow memory disclosure). Real-world priority is moderate for internet-exposed SIP proxies and lower for internally-isolated deployments. The absence of active exploitation evidence and the straightforward patch availability support treating this as a standard patch-cycle item rather than an emergency response. |
| Exploit ScenarioDerived | An attacker targeting an internet-facing OpenSIPS proxy sends a SIP INVITE with Content-Type: multipart/mixed; boundary=ExampleBoundaryString123456 and a crafted body where the string "--" appears as the last two bytes of the body buffer, without the full boundary delimiter following it. The find_line_delimiter() function detects the "--" pattern, then calls strncmp() with delimiter.len bytes (20+ bytes for the boundary) starting from that position, reading past the buffer's logical end. This triggers undefined behavior - ranging from silent memory disclosure of adjacent heap contents to a SIGSEGV process crash - with no authentication or prior session required. No public POC exists at time of analysis, but the low crafting complexity makes independent weaponization straightforward. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 05, 2026
Out-of-bounds read in OpenSIPS versions prior to 3.6.6 and 4.0.0-rc1 allows unauthenticated remote attackers to trigger memory over-reads in the multipart SIP body parser by sending a crafted message with Content-Type: multipart/mixed whose body contains "--" within two to three bytes of the buffer end. The CVSS vector (AV:N/AC:L/PR:N/UI:N) confirms network-reachable, zero-prerequisite exploitation with low availability impact, though the reporter's "Information Disclosure" tag conflicts with the official C:N rating, suggesting potential memory leakage beyond what the score reflects. No public exploit or CISA KEV listing has been identified at time of analysis; vendor-released patches are confirmed in 3.6.6 and 4.0.0-rc1.
RemediationAI
Upgrade to OpenSIPS 3.6.6 (stable branch) or 4.0.0-rc1 (development branch); both are confirmed fix versions per the GitHub security advisory at https://github.com/OpenSIPS/opensips/security/advisories/GHSA-chxf-9368-fqcp, with the source-level fix applied in commits 4d23613b65579b073784a07a65d3bf52443a4efb and 5f103effaf5f372cccffe0b138f16998eba12668. Verify package availability from your distribution or build from the patched upstream source. If immediate upgrade is not operationally feasible, restrict inbound SIP traffic to known, trusted source IP ranges at the network perimeter using firewall ACLs or SIP-aware load balancers - this limits the attack surface but is not suitable for public-facing SIP infrastructure where anonymous callers are expected. Disabling multipart body parsing at the SIP routing script level (by rejecting or dropping messages with Content-Type: multipart/mixed before they reach the parser) eliminates the vulnerable code path entirely but breaks legitimate RFC 2046 multipart SIP features such as SDP combined with MIME attachments.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
OpenSIPS is a high-performance, open-source SIP proxy and registrar written in C, widely deployed in VoIP and telecommunications infrastructure. The vulnerability resides in parser/parse_body.c within the find_line_delimiter() function, responsible for locating MIME multipart boundary delimiters as defined in RFC 2046 when processing SIP message bodies. The function uses strncmp() to compare delimiter.len bytes (typically 20-70 bytes, the configured boundary string) against candidate positions in the buffer but failed to verify that sufficient bytes remained before the buffer limit (plimit) prior to the comparison. CPE cpe:2.3:a:opensips:opensips:*:*:*:*:*:*:*:* confirms all versioned releases prior to the fix are affected. CWE-125 (Out-of-bounds Read) classifies the root cause: strncmp() reads past the logical end of the body buffer when a "--" pattern appears within two to three bytes of the end without a following delimiter. The fix applied in commit 4d23613b65579b073784a07a65d3bf52443a4efb adds an early guard - if (plimit - cp1 < 2 + delimiter.len) return NULL - before the strncmp call, preventing the over-read. The accompanying commit 5f103effaf5f372cccffe0b138f16998eba12668 addresses related bounds issues in URI construction, TCP header parsing, and base64 encoding across the codebase.
Know when Opensips gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
CWE-125 out-of-bounds read via strncmp() can expose adjacent memory contents, warranting C:L over official C:N; remaining metrics align with the vendor vector.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Affected Products (CPE)CVE.org
Remote code execution and denial of service in OpenSIPS SIP server (versions 4.0.0 and prior) arises from a stack buffer
Memory corruption in the OpenSIPS SIP server (versions prior to 3.6.6 and 4.0.0-rc1) lets remote attackers overflow a fi
Denial of service in OpenSIPS SIP server versions prior to 3.6.6 allows an unauthenticated remote attacker to crash work
Denial of service in OpenSIPS versions 3.4.0 through 3.6.5 and 4.0.0-beta allows remote attackers to crash the server wi
OpenSIPS is a Session Initiation Protocol (SIP) server implementation. Rated high severity (CVSS 7.5), this vulnerabilit
OpenSIPS is a Session Initiation Protocol (SIP) server implementation. Rated high severity (CVSS 7.5), this vulnerabilit
OpenSIPS is a Session Initiation Protocol (SIP) server implementation. Rated high severity (CVSS 7.5), this vulnerabilit
OpenSIPS, a Session Initiation Protocol (SIP) server implementation, has a memory leak starting in the 2.3 branch and pr
OpenSIPS is a Session Initiation Protocol (SIP) server implementation. Rated high severity (CVSS 7.5), this vulnerabilit
OpenSIPS is a Session Initiation Protocol (SIP) server implementation. Rated high severity (CVSS 7.5), this vulnerabilit
OpenSIPS is a Session Initiation Protocol (SIP) server implementation. Rated high severity (CVSS 7.5), this vulnerabilit
OpenSIPS is a Session Initiation Protocol (SIP) server implementation. Rated high severity (CVSS 7.5), this vulnerabilit
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB