OpenSIPS CVE-2026-45809
HIGHAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend SUBSCRIBE with oversized From URI
-
DeliveryStore attacker-controlled watcher entry
-
ExploitTrigger presence.winfo XML generation for same presentity
-
ExecutionCopy URI into 200-byte stack buffer without bounds check
-
PersistOverflow stack in create_winfo_xml()
-
ImpactCrash OpenSIPS worker process
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 two non-default deployment conditions: (1) both the presence module (providing handle_subscribe() routing) and the presence_xml module (providing watcherinfo/presence.winfo XML generation) must be explicitly loaded in the OpenSIPS configuration - these are not loaded by default; and (2) the SUBSCRIBE routing block in the OpenSIPS dialplan must be reachable from untrusted or external network sources. The attack itself is two-step: the attacker must first send a SUBSCRIBE with Event: presence and a From URI exceeding 200 bytes to establish an oversized watcher entry, and then watcherinfo generation must be triggered for the same presentity. The CVSS 4.0 vector PR:N and AV:N confirm no authentication or privileges are required beyond network access. Impact is limited strictly to availability (process crash); no code execution, data exfiltration, or integrity impact results from this overflow. Deployments that do not load the presence and presence_xml modules, or that restrict SUBSCRIBE access to trusted peers only, are not exploitable. |
| Impact | The vendor-assigned CVSS 4.0 score of 8.7 (AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H) accurately reflects the network-reachable, unauthenticated, low-complexity nature of the attack with high availability impact. The score is internally consistent with the description: no authentication is required, no special timing or race conditions are needed (AT:N), and the outcome is process termination (VA:H). However, the configuration dependency - presence and presence_xml modules must be loaded and SUBSCRIBE routing must be externally reachable - meaningfully narrows the exposed population. Deployments that do not use SIP presence features are entirely unaffected. No EPSS data was provided, no CISA KEV listing exists for this CVE, and no public exploit code has been identified, suggesting this has not seen broad opportunistic exploitation. Real-world risk is therefore highest for VoIP providers, UC platforms, and telecom operators that expose SIP presence endpoints to untrusted networks; for deployments with presence disabled or SUBSCRIBE access restricted to trusted peers, practical risk is substantially lower despite the high raw score. |
| Exploit ScenarioDerived | An attacker with network access to the SIP port sends a SUBSCRIBE request with Event: presence and a From URI of 201 or more characters to an OpenSIPS instance running the presence and presence_xml modules. OpenSIPS stores the oversized URI as a watcher entry. When watcherinfo (presence.winfo) XML is subsequently generated for the same presentity - either by a subsequent SUBSCRIBE from any client or through normal presence processing - create_winfo_xml() copies the attacker-supplied URI into the 200-byte stack buffer, overflows it, and crashes the worker process. Repeated SUBSCRIBE requests can sustain a persistent denial of service against the server's presence subsystem. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 05, 2026
Stack-based buffer overflow in OpenSIPS versions prior to 3.6.6 and 4.0.0-rc1 allows a remote unauthenticated attacker to crash worker processes by exploiting the watcherinfo XML generation path in the presence module. The attacker sends a SIP SUBSCRIBE with a From URI exceeding 200 characters, establishing an oversized watcher entry, then triggers presence.winfo generation to overflow a fixed-size stack buffer in create_winfo_xml() within notify.c. No public exploit has been identified at time of analysis, but the unauthenticated network vector and straightforward two-step attack path make this a credible denial-of-service risk for any SIP infrastructure exposing presence services.
RemediationAI
Upgrade to OpenSIPS 3.6.6 (stable) or 4.0.0-rc1 (development), which resolve the issue by replacing the fixed 200-byte stack buffer with a direct xmlNodeSetContentLen() call. The fixing commits are c5970d3ee25b457ad2d78fe6e9662a12dae577cd and dd86461b71ff4a4f5194205896ae5f48f144240d, both available on the OpenSIPS GitHub repository. If immediate patching is not feasible, the most effective workaround is to remove or not load the presence and presence_xml modules - note this eliminates all SIP presence functionality, which may be operationally disruptive. A less disruptive alternative is to restrict SUBSCRIBE routing so that external or untrusted sources cannot reach the handle_subscribe() handler; this can be accomplished via SIP proxy ACLs, firewall rules blocking SUBSCRIBE from untrusted IP ranges, or OpenSIPS route-level authorization checks. The trade-off is that overly broad restrictions may break legitimate presence subscriptions from authenticated clients. The vendor advisory is at https://github.com/OpenSIPS/opensips/security/advisories/GHSA-gx83-2gh8-7v56.
Affected ProductsAI
OpenSIPS versions prior to 3.6.6 on the stable branch and versions prior to 4.0.0-rc1 on the development branch are affected. The vulnerable code is in modules/presence/notify.c within the create_winfo_xml() function. No CPE strings were included in the provided intelligence data; affected versions are confirmed by the GitHub security advisory at https://github.com/OpenSIPS/opensips/security/advisories/GHSA-gx83-2gh8-7v56. Both the 3.x and 4.x release lines are affected, and only systems with the presence and presence_xml modules loaded are exploitable.
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 an open-source SIP (Session Initiation Protocol) server widely used in VoIP, unified communications, and telecom routing infrastructure. The vulnerable code resides in modules/presence/notify.c, specifically the create_winfo_xml() function. Prior to the fix, a fixed 200-byte stack buffer (char content[200]) was used as an intermediate staging area to hold a watcher URI before passing it to libxml2's xmlNewChild(). The strncpy() call copied w->uri.len bytes from the stored watcher URI without bounds-checking against the 200-byte ceiling, satisfying CWE-121 (Stack-based Buffer Overflow). Because SIP From URIs are attacker-controlled and can be arbitrarily long, any URI exceeding 200 bytes overflows the stack frame, corrupting adjacent memory and crashing the process. The commit diff confirms the fix eliminates the intermediate buffer entirely, instead calling xmlNodeSetContentLen() to pass the URI string and its true length directly to libxml2, which handles memory safely. The vulnerability path requires the presence module (handle_subscribe routing) and presence_xml module (watcherinfo generation) both to be loaded.
Know when the next one hits your stack
- 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
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Network-reachable unauthenticated DoS; AC:L because both attack steps are fully attacker-controlled; A:H for worker process crash; C:N/I:N as impact is availability-only with no scope change.
Primary rating from Vendor (github).
CVSS VectorVendor: github
DescriptionCVE.org
OpenSIPS is a Session Initiation Protocol (SIP) server implementation. Versions prior to 3.6.6 and 4.0.0-rc1 contain a denial of service vulnerability in the watcherinfo generation functionality. An attacker can create an oversized watcher entry by sending a SUBSCRIBE Event: presence request with a long From URI, and then trigger presence.winfo watcherinfo XML generation for the same presentity. OpenSIPS copies the stored watcher URI into a fixed-size stack buffer, overflowing it and crashing the process. A remote attacker can crash an OpenSIPS worker in deployments that expose handle_subscribe() and allow watcherinfo (presence.winfo) generation. The issue is configuration-dependent because the presence and presence_xml modules must be loaded and SUBSCRIBE routing must be reachable. This issue has been fixed in versions 3.6.6 and 4.0.0-rc1.
Executive ViewAI
OpenSIPS versions prior to 3.6.6 and 4.0.0-rc1 contain a remote buffer overflow in the presence module that allows unauthenticated attackers to crash worker processes, directly disrupting SIP-based voice and communication services. Organizations operating these affected versions with presence services exposed face imminent denial-of-service risk. With no patch currently available, immediate network isolation and compensating controls are required to maintain service continuity.
No vendor-released patch identified at time of analysis. Interim mitigations: restrict inbound SIP SUBSCRIBE access via firewall rules or VPN to known trusted peers; implement rate-limiting on SUBSCRIBE requests per source IP; deploy deep packet inspection monitoring for malformed or oversized SUBSCRIBE From URIs and related watcherinfo traffic; establish real-time alerting on worker process crashes and service availability anomalies; restrict presence service exposure to internal-only access until patch is validated and deployed.
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.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB