OpenSIPS
CVE-2026-45705
MEDIUM
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
Lifecycle Timeline
2DescriptionCVE.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.
AnalysisAI
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.
Technical ContextAI
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.
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.
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
Same weakness CWE-125 – Out-of-bounds Read
View allSame technique Buffer Overflow
View allShare
External POC / Exploit Code
Leaving vuln.today