Skip to main content

OpenSIPS CVE-2026-45537

CRITICAL
Classic Buffer Overflow (CWE-120)
2026-08-04 GitHub_M
9.1
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Send SIP request with 1024+ byte username
  2. Delivery
    Script passes username to construct_uri()
  3. Exploit
    Concatenation overflows global BSS buffer
  4. Execution
    Overwrite disable_503_translation and adjacent globals
  5. Impact
    Alter 503 handling and routing for later messages

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Buffer copy size validation
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 the target OpenSIPS deployment's routing script to call construct_uri() with an attacker-controlled username (for example, building a new URI from the inbound request-URI or From/To user part) - this is the exact precondition named in the advisory and is not universal across deployments. Given that condition, the attacker sends a single SIP message with a username whose combined URI-component length exceeds the 1024-byte fixed buffer; no authentication is required per the CVSS PR:N metric and no user interaction is needed. The primary limiting factor is configuration-dependence: deployments whose scripts never pass untrusted input into construct_uri() are not reachable, so realistic risk is narrower than the raw 9.1 score suggests. Affected versions are strictly those below 3.6.6 and below 4.0.0-rc1.

Impact

The supplied CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H, 9.1) treats this as network-reachable, unauthenticated, low-complexity with high integrity and availability impact and no confidentiality loss - consistent with silent global-data corruption on each malicious request. However, the description states the overflow only occurs 'when a routing script calls construct_uri() with an attacker-controlled username,' which is a real deployment-dependent precondition; this argues for higher attack complexity (AC:H) than the published vector, since not every OpenSIPS deployment routes untrusted usernames through construct_uri(). No EPSS score and no KEV status were provided, and no POC is referenced, so there is no evidence of active or opportunistic exploitation; the risk is currently theoretical-to-targeted rather than mass-exploited. Net: a genuinely serious memory-safety bug worth prioritized patching for any operator whose scripts build URIs from untrusted input, but the network-vector/low-complexity framing likely overstates real-world reachability for default or hardened configurations - verify your routing logic against construct_uri() usage.

Exploit ScenarioDerived

An attacker sends a crafted SIP request (e.g. INVITE/REGISTER) to an OpenSIPS instance whose routing script forwards the request URI username into construct_uri(), setting the username to more than ~1024 bytes of chosen data. The oversized concatenation overflows the shared global buffer and deterministically overwrites disable_503_translation and other adjacent globals, silently changing how the server handles 503 responses and routes subsequent traffic. No public POC is referenced, and success depends on the target's specific script using construct_uri() with attacker-controlled input.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
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

Memory corruption in the OpenSIPS SIP server (versions prior to 3.6.6 and 4.0.0-rc1) lets remote attackers overflow a fixed 1024-byte global buffer via an oversized SIP URI username, deterministically corrupting adjacent global state such as the disable_503_translation flag and altering the server's routing behavior for subsequent messages. Exploitation requires that the deployed routing script pass an attacker-controlled username into construct_uri(); where that pattern exists, the flaw affects integrity and availability without authentication. There is no public exploit identified at time of analysis, no CISA KEV listing, and no EPSS score was provided.

RemediationAI

Vendor-released patch: upgrade to OpenSIPS 3.6.6 (stable) or 4.0.0-rc1, per advisory GHSA-v7h4-fwrc-c66v (https://github.com/OpenSIPS/opensips/security/advisories/GHSA-v7h4-fwrc-c66v); the fix adds an explicit total-length check in construct_uri() that rejects any concatenation exceeding MAX_URI_LEN before writing. If immediate patching is not possible, apply compensating controls in the routing script: audit for and remove or guard any construct_uri() call that receives untrusted username input, and constrain username length by validating or truncating $fU/$rU (e.g. reject requests whose username exceeds a safe bound) before URI construction - the trade-off is that legitimate long-but-valid usernames may be dropped. Additionally restrict SIP signaling exposure at the network edge (allowlist trusted SIP peers, place the proxy behind an SBC/firewall) to limit which senders can reach the vulnerable script path, accepting reduced openness for federated/anonymous SIP scenarios. Cite the two upstream commits (4d23613 and 5f103ef) when validating that your build includes the bounds check.

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 a high-performance C-based SIP proxy/server used to route VoIP signaling. The root cause is CWE-120 (Classic Buffer Overflow / unbounded copy without size check): the construct_uri() function in msg_translator.c concatenates protocol, username, domain, port and params into a fixed 1024-byte global BSS buffer with no length validation. Because the buffer lives in the BSS segment alongside other module globals - including disable_503_translation and data shared with contact_builder() - an over-length concatenation writes attacker-controlled bytes past the buffer boundary into neighboring static variables rather than the stack, giving a controllable overwrite of specific global flags on every request carrying a long username. CPE cpe:2.3:a:opensips:opensips confirms the affected product is the OpenSIPS application itself.

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

Vendor (GitHub_M) PRIMARY 9.1 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
vuln.today AI 7.4 HIGH

Network-reachable and unauthenticated (AV:N/PR:N), but AC:H because exploitation depends on a non-default script path calling construct_uri() on untrusted input; no confidentiality impact (C:N), integrity/availability high from deterministic global corruption.

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

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
High

DescriptionCVE.org

OpenSIPS is a Session Initiation Protocol (SIP) server implementation. In versions prior to 3.6.6 and 4.0.0-rc1, the construct_uri() function concatenates multiple URI components (protocol, username, domain, port, params) into a fixed 1024-byte global BSS buffer without any bounds checking. When a routing script calls construct_uri() with an attacker-controlled username, a combined component length exceeding 1024 bytes overflows the buffer, corrupting adjacent global data with attacker-controlled content. The overflow reaches disable_503_translation, a global flag controlling SIP 503 response handling, allowing an attacker to deterministically set the flag via the URI username and alter the server's routing behavior for subsequent messages. Because the same buffer is shared with contact_builder(), the overflow also corrupts that function's data, and without a memory sanitizer the adjacent globals are silently overwritten on every request containing a long username. This issue has been fixed in versions 3.6.6 and 4.0.0-rc1.

Executive ViewAI

Why It Matters

OpenSIPS SIP server versions prior to 3.6.6 and 4.0.0-rc1 contain a critical memory corruption vulnerability allowing unauthenticated remote attackers to disrupt call routing and service availability through malformed SIP URI usernames. Organizations running affected versions with vulnerable routing configurations face immediate risk of call misrouting and service disruption, requiring urgent inventory and mitigation.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) restrict SIP ingress to known trusted peer networks, eliminating remote attack surface; (2) enforce strict input validation on all SIP URI username fields with maximum 512-byte length; (3) disable or refactor construct_uri() usage on untrusted input in routing scripts where feasible; (4) deploy SIP protocol inspection at network boundary to filter oversized usernames; (5) enable comprehensive logging of SIP parsing errors and routing anomalies to detect exploitation attempts; (6) prepare rollback procedures to disable or limit OpenSIPS services if active exploitation is detected.

Threat Intelligence Overview

EPSS Score
0.4%
Top 72% exploitable
Prevalence
Medium
widely used open-source SIP proxy in VoIP/telecom, not universal
Social Media
3
Sightings
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS Vulnrichment Vendor CIRCL 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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
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
Very High
Technical Impact
Total

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
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.

Affected Products (CPE)CVE.org

cpe:2.3:a:opensips:opensips:*:*:*:*:*:*:*:*
CVE-2026-45538 CRITICAL
9.8 Aug 04

Remote code execution and denial of service in OpenSIPS SIP server (versions 4.0.0 and prior) arises from a stack buffer

CVE-2026-46334 HIGH
8.7 Aug 04

Denial of service in OpenSIPS SIP server versions prior to 3.6.6 allows an unauthenticated remote attacker to crash work

CVE-2026-45084 HIGH
8.7 Aug 04

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

CVE-2023-28099 HIGH
7.5 Mar 15

OpenSIPS is a Session Initiation Protocol (SIP) server implementation. Rated high severity (CVSS 7.5), this vulnerabilit

CVE-2023-28098 HIGH
7.5 Mar 15

OpenSIPS is a Session Initiation Protocol (SIP) server implementation. Rated high severity (CVSS 7.5), this vulnerabilit

CVE-2023-28097 HIGH
7.5 Mar 15

OpenSIPS is a Session Initiation Protocol (SIP) server implementation. Rated high severity (CVSS 7.5), this vulnerabilit

CVE-2023-28096 HIGH
7.5 Mar 15

OpenSIPS, a Session Initiation Protocol (SIP) server implementation, has a memory leak starting in the 2.3 branch and pr

CVE-2023-28095 HIGH
7.5 Mar 15

OpenSIPS is a Session Initiation Protocol (SIP) server implementation. Rated high severity (CVSS 7.5), this vulnerabilit

CVE-2023-27601 HIGH
7.5 Mar 15

OpenSIPS is a Session Initiation Protocol (SIP) server implementation. Rated high severity (CVSS 7.5), this vulnerabilit

CVE-2023-27600 HIGH
7.5 Mar 15

OpenSIPS is a Session Initiation Protocol (SIP) server implementation. Rated high severity (CVSS 7.5), this vulnerabilit

CVE-2023-27599 HIGH
7.5 Mar 15

OpenSIPS is a Session Initiation Protocol (SIP) server implementation. Rated high severity (CVSS 7.5), this vulnerabilit

CVE-2023-27598 HIGH
7.5 Mar 15

OpenSIPS is a Session Initiation Protocol (SIP) server implementation. Rated high severity (CVSS 7.5), this vulnerabilit

Vendor StatusVendor

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