Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend crafted SIP UDP packet to port 5060
-
DeliveryOversized header name (>255 bytes) reaches sip_to_json()
-
Exploitmemcpy overflows 255-byte stack buffer
-
ExecutionOverwrite saved frame pointer and return address
-
PersistHijack execution or crash process
-
ImpactRemote code execution or denial of service
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the target OpenSIPS deployment's routing script explicitly invokes the sip_to_json() function from the sipmsgops module - deployments that do not call this function are not exploitable. Given that condition, no authentication and no user interaction are needed (CVSS PR:N/UI:N): a single unauthenticated UDP SIP message to port 5060 with a header name longer than 255 bytes triggers the overflow. Achieving code execution (rather than just a crash) is further limited to builds compiled without stack protections such as stack canaries, ASLR, and NX; hardened builds generally limit the outcome to denial of service. Affected versions are 4.0.0 and prior. |
| Impact | The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, score 9.8) reflects a network-reachable, low-complexity, unauthenticated flaw with full CIA impact, consistent with the description of a single unauthenticated UDP packet triggering the overflow. The critical caveat that tempers real-world risk is the configuration dependency: exploitation requires the deployment's routing script to call sip_to_json(), a non-default condition not captured by the CVSS vector - deployments not invoking that function are unaffected. RCE is further gated by the absence of stack protections (stack canaries/ASLR/NX would typically reduce the outcome to a crash/DoS rather than reliable code execution), so on hardened modern builds the practical impact skews toward denial of service. No EPSS score, KEV listing, or SSVC data was provided; the product is not in CISA KEV per the input, and no public exploit is identified, so this is currently an unpatched, high-severity but not confirmed-exploited issue whose true blast radius depends heavily on config and build hardening. |
| Exploit ScenarioDerived | An attacker sends a single crafted SIP message over UDP to port 5060 containing a header whose name exceeds 255 bytes; when the OpenSIPS routing script processes it through sip_to_json(), the oversized name overflows the 255-byte stack buffer, corrupting the saved return address. Depending on build hardening, this either crashes the OpenSIPS process (denial of service) or, on builds without stack protections, redirects execution to attacker-supplied content for remote code execution. No public exploit code is identified, but the attack requires no authentication and low complexity. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 04, 2026
Remote code execution and denial of service in OpenSIPS SIP server (versions 4.0.0 and prior) arises from a stack buffer overflow in the sip_to_json() function, where an attacker-controlled SIP header name longer than 255 bytes is memcpy'd into a fixed 255-byte stack buffer. Because both the length and content of the overwrite are attacker-controlled, a single unauthenticated UDP packet to SIP port 5060 can crash the process or, on builds lacking stack protections, hijack the saved return address for RCE. No public exploit identified at time of analysis; the issue was not fixed at publication, making this an unpatched flaw affecting any deployment whose routing script invokes sip_to_json().
RemediationAI
No vendor-released patch identified at time of analysis - the issue was unfixed at publication, so upgrading is not yet an option; monitor the vendor advisory at https://github.com/OpenSIPS/opensips/security/advisories/GHSA-37wc-5j8j-95x3 for a patched release. As the most effective compensating control, remove or avoid calls to sip_to_json() in the OpenSIPS routing script, which fully eliminates the vulnerable code path at the cost of losing that JSON-conversion functionality. Where sip_to_json() must remain, restrict access to the SIP UDP port 5060 via firewall/ACLs to trusted peers only and deploy SIP-aware filtering to drop messages containing header names exceeding 255 bytes, accepting that this may block legitimate-but-unusual traffic; ensure the OpenSIPS binary is compiled with stack protections (stack canaries, ASLR, NX) to downgrade a successful overflow from RCE to a crash, though this does not prevent denial of service.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
OpenSIPS is an open-source SIP proxy/server used for VoIP routing, load balancing, and SBC functions. The flaw is a classic CWE-121 stack-based buffer overflow located in sip_to_json() within modules/sipmsgops/sipmsgops.c. The SIP parser permits header names of roughly 65,000 bytes, but sip_to_json() copies the header name into a 255-byte fixed stack buffer using memcpy with the full parser-reported length and no bounds check. The overflow overwrites the saved frame pointer and return address on the stack, a directly exploitable memory-corruption primitive because the overwrite length and content are both derived from the attacker's SIP message. The affected code path is only reachable when the operator's routing script explicitly calls the sip_to_json() function.
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:H/I:H/A:H
Network-reachable and unauthenticated (AV:N/PR:N), but AC:H because exploitation depends on the non-default routing-script use of sip_to_json() and, for RCE, unhardened builds; full CIA impact on the process.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
DescriptionCVE.org
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.
Executive ViewAI
OpenSIPS SIP server versions 4.0.0 and prior contain a critical stack buffer overflow in the sip_to_json() function that enables unauthenticated remote code execution or denial of service via malformed SIP packets to port 5060. Any organization running affected OpenSIPS instances faces immediate risk of server compromise or outage without compensating controls, and no vendor patch currently exists.
Restrict network access to SIP port 5060 via firewall to known, trusted sources only; disable sip_to_json() function in routing configuration if not essential to operations; implement deep packet inspection or SIP-specific WAF rules to detect oversized SIP header names; establish continuous monitoring and alerting for unexpected SIP traffic patterns or process crashes on affected systems.
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.
A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
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
OpenSIPS is a Session Initiation Protocol (SIP) server implementation. Rated high severity (CVSS 7.5), this vulnerabilit
EUVD-2026-52919
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB