Skip to main content

OpenSIPS EUVDEUVD-2026-52919

| CVE-2026-45538 CRITICAL
Stack-based Buffer Overflow (CWE-121)
2026-08-04 GitHub_M
9.8
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Send crafted SIP UDP packet to port 5060
  2. Delivery
    Oversized header name (>255 bytes) reaches sip_to_json()
  3. Exploit
    memcpy overflows 255-byte stack buffer
  4. Execution
    Overwrite saved frame pointer and return address
  5. Persist
    Hijack execution or crash process
  6. Impact
    Remote 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.5% exploitation probability (EPSS)

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

Alert me

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

opensips ≤ 4.0.0

Affected Packages

euvd opensips no fix

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

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

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat 9.8 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
High
Integrity
High
Availability
High

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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.5%
Top 61% exploitable
Prevalence
Medium
widely-used open-source SIP server, but VoIP-infrastructure niche
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High
EUVD 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.5%
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

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

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

CVE-2026-45537 CRITICAL
9.1 Aug 04

Memory corruption in the OpenSIPS SIP server (versions prior to 3.6.6 and 4.0.0-rc1) lets remote attackers overflow a fi

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