Skip to main content

OpenSIPS CVE-2026-45100

| EUVDEUVD-2026-52975 CRITICAL
Classic Buffer Overflow (CWE-120)
2026-08-04 security-advisories@github.com
9.1
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

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

  1. Access
    Reach SIP listener over network
  2. Delivery
    Craft SIP message with ~50KB header
  3. Exploit
    Routing script applies {s.b64encode} to input
  4. Execution
    Base64 expansion overflows 64KB buffer
  5. Persist
    Corrupt adjacent transformation buffer
  6. Impact
    Disrupt/manipulate later transformations

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 that the OpenSIPS routing script apply the {s.b64encode} string transformation to attacker-controlled input (for example a SIP header value), and that the attacker deliver a SIP message whose targeted value is roughly 49,153 to 65,535 bytes (about 50,000+ bytes) so base64 expansion exceeds the 64 KB TR_BUFFER_SIZE. No authentication is required per CVSS PR:N and the SIP listener must be network-reachable by the attacker. The principal limiting factor is configuration-dependence: routing scripts that never base64-encode untrusted input are not exploitable, which is why the vendor describes exploitability as dependent on the deployment's routing configuration; additionally the required input size is large enough that upstream SIP message-size limits can block delivery.

Impact

The NVD CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H, score 9.1) rates this as network-reachable, unauthenticated, low-complexity with high integrity and availability impact and no confidentiality impact - consistent with memory corruption that crashes or corrupts message processing rather than leaking data. However, the description explicitly makes exploitability conditional on the deployment's routing script applying {s.b64encode} to attacker-controlled input, a meaningful complexity constraint the base score's AC:L does not capture; in practice this behaves closer to AC:H / attack-requirement-present. No EPSS score was supplied, there is no POC in the provided intelligence, and it is not in CISA KEV, so there is no evidence of active or automated exploitation. Net assessment: a genuinely serious memory-safety bug in exposed SIP infrastructure, but real-world priority is gated by whether a given routing.cfg actually base64-encodes untrusted input - verify configuration before treating as universally critical.

Exploit ScenarioDerived

An attacker sends a single crafted SIP request over UDP/TCP to an OpenSIPS instance whose routing script base64-encodes a header value the attacker controls, placing roughly 50,000+ bytes in that header. The oversized base64 output overruns the transformation buffer by up to ~21,844 bytes into the adjacent buffer, corrupting data used by later transformations and disrupting or manipulating message processing (denial of service and integrity corruption). No public POC is currently identified, and success depends on the target's routing configuration.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.6% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Aug 05, 2026

Adjacent-buffer overflow in OpenSIPS 3.4.0-beta through 3.6.5 and 4.0.0-beta arises in the {s.b64encode} string transformation, where the size check only validates that the input fits the 64 KB transformation buffer but ignores the ~33% expansion that base64 encoding introduces. Remote attackers can send a SIP message with a header value of roughly 50,000+ bytes to overflow the buffer by up to 21,844 bytes into an adjacent transformation buffer, corrupting values used by chained transformations on the same message; exploitability hinges on the routing script applying {s.b64encode} to attacker-controlled input. No public exploit identified at time of analysis and it is not listed in CISA KEV; a vendor patch is available in 3.6.6 and 4.0.0-rc1.

RemediationAI

Vendor-released patch: upgrade to OpenSIPS 3.6.6 (3.6.x branch) or 4.0.0-rc1 (4.0.x branch), which add an output-length check via calc_base64_encode_len before writing to the transformation buffer; follow the advisory at https://github.com/OpenSIPS/opensips/security/advisories/GHSA-35fr-6rv9-vp68. If you cannot patch immediately, audit your routing script and stop applying {s.b64encode} to attacker-controlled input such as raw SIP header values, since exploitation requires that specific data flow; alternatively cap the size of untrusted input before transformation (reject or truncate header values well below ~49,153 bytes), noting that overly aggressive length limits may drop legitimately large headers. Restricting network reachability of the SIP listener to trusted peers and enforcing upstream SIP message-size limits (e.g., at a session border controller) further reduces exposure, at the cost of interoperability with untrusted or federated endpoints.

Affected VersionsENISA

opensips 3.4.0-beta, < 3.6.6
opensips 4.0.0-beta, < 4.0.0-rc1

Affected Packages

euvd opensips_3_4_0_beta fix: 3.6.6
euvd opensips_4_0_0_beta fix: 4.0.0-rc1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages 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 a high-performance open-source SIP proxy/server used in VoIP, telephony, and messaging infrastructure. The flaw lives in transformations.c, in the string-transformation engine that applies operators like {s.b64encode} to pseudo-variable values extracted from SIP messages. These transformations write into a fixed-size scratch buffer (TR_BUFFER_SIZE, 64 KB); base64 encoding produces about 4 output bytes for every 3 input bytes, so the vulnerable guard checked only the raw input length rather than the encoded output length (calc_base64_encode_len). This is a classic CWE-120 buffer copy without checking the size of the destination. Because the transformation buffers are laid out contiguously and reused across chained transformations, the overflow corrupts a neighboring buffer whose contents feed subsequent operators on the same SIP message.

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 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 exploitation needs a non-default routing config that base64-encodes attacker input, so AC:H; corruption affects integrity and availability with no data disclosure, so C:N.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H
4.0 AV:N/AC:L/AT:P/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).

CVSS VectorVendor: github

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

Lifecycle Timeline

2
Patch available
Aug 04, 2026 - 23:02 EUVD
CVE Published
Aug 04, 2026 - 22:17 cve.org
CRITICAL 9.1

DescriptionCVE.org

OpenSIPS is a Session Initiation Protocol (SIP) server implementation. Versions 3.4.0-beta through 3.6.5 and 4.0.0-beta contain a buffer overflow in the {s.b64encode} string transformation. The size check for {s.b64encode} only verifies that the input fits within the 64 KB transformation buffer, but base64 encoding expands the data by roughly a third, so an input between about 49,153 and 65,535 bytes produces more output than the buffer can hold and overflows it by up to 21,844 bytes. Because these transformation buffers sit next to each other in memory and are reused for chained transformations, the overflow writes attacker-controlled data into the adjacent buffer and corrupts values used by later transformations processing the same SIP message. A remote attacker can trigger this by sending a SIP message with a large header value (roughly 50,000 bytes or more) when the routing script applies  {s.b64encode}  to attacker-controlled input, making exploitability dependent on the deployment's routing configuration. This issue has been fixed in versions 3.6.6 and 4.0.0-rc1.

Executive ViewAI

Why It Matters

OpenSIPS versions 3.4.0-beta through 3.6.5 and 4.0.0-beta contain a critical buffer overflow vulnerability (CVSS 9.1) in base64 encoding that allows remote attackers to corrupt memory and potentially execute code via specially crafted SIP messages. Organizations running affected versions face potential compromise of VoIP infrastructure and unauthorized access to communications systems. No public exploit identified at time of analysis.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.6%
Top 55% exploitable
Prevalence
Medium
widely used open-source SIP server in VoIP/telecom, not universal
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.6%
Patch available Yes
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
Partial

Priority Score

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

Vendor StatusVendor

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