Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach SIP listener over network
-
DeliveryCraft SIP message with ~50KB header
-
ExploitRouting script applies {s.b64encode} to input
-
ExecutionBase64 expansion overflows 64KB buffer
-
PersistCorrupt adjacent transformation buffer
-
ImpactDisrupt/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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
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.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
2DescriptionCVE.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
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.
Apply vendor patch.
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.
EUVD-2026-52975
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB