Skip to main content

OpenSIPS CVE-2026-45809

HIGH
Stack-based Buffer Overflow (CWE-121)
2026-08-05 security-advisories@github.com
8.7
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send SUBSCRIBE with oversized From URI
  2. Delivery
    Store attacker-controlled watcher entry
  3. Exploit
    Trigger presence.winfo XML generation for same presentity
  4. Execution
    Copy URI into 200-byte stack buffer without bounds check
  5. Persist
    Overflow stack in create_winfo_xml()
  6. Impact
    Crash 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Vendor (github) PRIMARY 8.7 HIGH
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
vuln.today AI 7.5 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Red Hat 7.5 HIGH

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.4%
Top 68% exploitable
Prevalence
Medium
open-source SIP server common in VoIP and UC deployments
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy