CVE-2026-45538

CRITICAL

OpenSIPS: Stack Buffer Overflow in sip_to_json() Header Name Copy

Title source: cna
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2026-45538. PoCs published by exploitintel.

AI-analyzed exploit summary This repository contains a functional proof-of-concept exploit for CVE-2026-45538, a stack-based buffer overflow in OpenSIPS's `sip_to_json()` function. The exploit sends a crafted SIP UDP packet with an oversized header name to trigger a SIGSEGV crash in vulnerable versions of OpenSIPS (3.5.0-beta through 3.6.5).

Description

OpenSIPS is a Session Initiation Protocol (SIP) server implementation. In versions 4.0.0 and prior, processing a SIP message with a header name longer than 255 bytes causes a stack buffer overflow when sip_to_json() is called in the routing script. Function sip_to_json() (modules/sipmsgops/sipmsgops.c) copies SIP header names into a fixed 255-byte stack buffer without bounds checking, performing a memcpy of the full header-name length even though the SIP parser imposes no such limit (a header name can be roughly 65000 bytes). As a result, when a routing script calls sip_to_json(), a SIP message with a header name longer than 255 bytes triggers a stack buffer overflow in which both the length and content of the overwrite are attacker-controlled, corrupting the saved frame pointer and return address. A single unauthenticated UDP packet to the SIP port (5060) can crash the process or, on builds without stack protections, hijack the return address to achieve remote code execution. This affects deployments whose routing script invokes sip_to_json(). This issue was not fixed at the time of publication.

Exploits (1)

github WORKING POC 7 stars
by exploitintel · cpoc
https://github.com/exploitintel/eip-pocs-and-cves/tree/main/CVE-2026-45538

This repository contains a functional proof-of-concept exploit for CVE-2026-45538, a stack-based buffer overflow in OpenSIPS's `sip_to_json()` function. The exploit sends a crafted SIP UDP packet with an oversized header name to trigger a SIGSEGV crash in vulnerable versions of OpenSIPS (3.5.0-beta through 3.6.5).

Classification
Working Poc 99%
Attack Type
Dos
Complexity
Trivial
Reliability
Reliable
Target: OpenSIPS versions 3.5.0-beta through 3.6.5, 4.0.0-beta
No auth needed
Prerequisites: OpenSIPS deployment must load the `sipmsgops` module and invoke `sip_to_json()` in a route · UDP access to the OpenSIPS SIP listener (default port 5060)
mistral-large-3 · analyzed Aug 06, 2026 Full analysis →

References (1)

Core 1
Core References

Scores

CVSS v3 9.8
EPSS 0.0048
EPSS Percentile 39.0%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation poc
Automatable yes
Technical Impact total

Details

CWE
CWE-121
Status published
Products (1)
OpenSIPS/opensips <= 4.0.0
Published Aug 04, 2026
Tracked Since Aug 05, 2026