Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessEstablish Diameter peer session (CER/CEA)
-
DeliverySend undersized Diameter message
-
ExploitBypass missing length check in do_receive
-
ExecutionOverflow heap via shm_malloc path
-
ImpactCrash CDP receiver / disrupt IMS signaling
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap 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 the target Kamailio instance to load the CDP (C Diameter Peer) module and act as a Diameter peer - this is only present in IMS/Diameter deployments, not in typical SIP-only Kamailio setups. The attacker must be able to deliver a Diameter message over an established or establishable peer connection (Diameter uses a CER/CEA capability-exchange handshake), so a configured/trusted peer relationship or a network position permitting peer setup is a practical prerequisite that limits PR:N in the vendor vector. The specific trigger is a message shorter than DIAMETER_HEADER_LEN reaching do_receive() in src/modules/cdp/receiver.c on versions <= 5.8.8 / 6.0.7 / 6.1.4 / 6.2.0-dev1; patched in 6.0.8. No user interaction is required. |
| Impact | This is a moderate-priority issue that is real but bounded by deployment scope. The vendor CVSS 4.0 vector (AV:N/AC:L/PR:N/UI:N) and confirmed public POC (VulDB, GitHub issue #4876) argue for attention, and the SSVC-relevant signal E:P (Proof-of-Concept exploit maturity) confirms exploit code exists but is not weaponized/active. There is no EPSS score and no CISA KEV listing provided, so there is NO evidence of active or widespread exploitation - this remains a POC-only condition. The vendor sets all impact metrics to Low (VC:L/VI:L/VA:L); given the root cause is a heap-based buffer overflow triggered by an undersized Diameter message (missing DIAMETER_HEADER_LEN bounds check before shm_malloc), the most realistic technical impact is a crash/denial of service on the SIP/IMS routing engine, which I would rate higher on availability than the vendor's VA:L. The PR:N claim is debatable: Diameter transport requires an established peer connection (CER/CEA capability exchange), so in practice the attacker must be a configured/authorized Diameter peer or occupy a network position that lets it complete peer setup - verify peer trust model with deployment. Net: patch promptly on affected IMS/Diameter nodes, but this is not a mass-internet-scanning emergency like a KEV-listed RCE. |
| Exploit ScenarioDerived | An attacker who can establish or spoof a Diameter peer connection to a Kamailio node running the CDP module sends a malformed Diameter message shorter than the Diameter header length. Because do_receive() in receiver.c allocated/processed the buffer without validating minimum header length, the undersized message drives a heap-based buffer overflow, most likely crashing the CDP receiver process and disrupting IMS/Diameter signaling. Public POC/exploit detail is available via the vendor GitHub issue (#4876). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 20, 2026
Heap-based buffer overflow in Kamailio's CDP (C Diameter Peer) module allows a remote party that can deliver a malformed Diameter message to a peer socket to corrupt shared-memory (shm) heap state and potentially disrupt or compromise the process. Affected builds are Kamailio up to 5.8.8, 6.0.7, 6.1.4 and 6.2.0-dev1 that actually load the cdp module; SIP-only deployments are not exposed. Publicly available exploit code exists (referenced from a public GitHub issue, with the fix in PR 4877), and while the vendor's CVSS 4.0 base score is 5.5, an independent assessment scores it CVSS:3.1 7.3 (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H), reflecting full availability impact on the affected process; no confirmed active exploitation (CISA KEV) was identified at time of analysis.
RemediationAI
Upgrade to Kamailio 6.0.8, the release the vendor states is sufficient to resolve the issue (https://github.com/kamailio/kamailio/releases/tag/6.0.8); the underlying fix adds a DIAMETER_HEADER_LEN check in do_receive() and is present in PR https://github.com/kamailio/kamailio/pull/4877 and commits 38711a3e788de0130d48cb485578c482b57d9351 / 4f62235b6f477b649c5cc18b0c81b4e26c949b98, so downstream packagers on the 5.8.x, 6.1.x and 6.2.x lines should backport that patch if a fixed point release on their branch is not yet available. If immediate upgrade is not possible, the most effective compensating control is to stop loading or compiling the cdp module entirely (comment it out of the module load list) where Diameter connectivity is not required - this removes the attack surface with essentially no functional loss, but it disables all Diameter/IMS interfaces if they are actually in use. Where Diameter is required, restrict who can open a peer connection: enforce the tcp_accept / listen address bindings and host-level firewall rules so only known Diameter peers (by IP and, ideally, TLS/TCP with mutual authentication) can reach the cdp listening port, understanding that this does not fix the parsing bug and can be bypassed by any already-trusted peer. Deploy the fix on all nodes that terminate Diameter traffic before restoring full peer connectivity, and monitor for repeated short/aborted Diameter frames in logs as a detection signal.
Affected VersionsENISA
Affected Packages
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
Kamailio's cdp module implements the C Diameter Peer/base protocol stack (RFC 6733) used for IMS/EPC interfaces such as Cx, Dx, Sh and Rx, and it manages peer state in Kamailio's shared-memory allocator via shm_malloc. The flaw (CWE-122, heap-based buffer overflow) lives in do_receive() in src/modules/cdp/receiver.c: when a received Diameter message is shorter than DIAMETER_HEADER_LEN, the code proceeds without validating the minimum frame size, so downstream processing/parsing operates on an undersized or inconsistent buffer and overflows a shared-memory heap allocation instead of failing cleanly. The upstream fix (PR 4877, commits 38711a3e788de0130d48cb485578c482b57d9351 and 4f62235b6f477b649c5cc18b0c81b4e26c949b98) adds a length guard before processing: if sp->length < DIAMETER_HEADER_LEN the message is rejected with 'Msg too short' and the receive path is reset via error_and_reset. The vendor assigned CVSS 4.0 5.5 (CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/E:P), while the independent assessment rates availability impact High (CVSS:3.1/.../A:H), consistent with a shared-memory heap overflow in a signaling daemon. Neither vector requires authentication (PR:N) and no user interaction is needed, but exploitation presupposes a reachable Diameter peer path, since Diameter peers normally exchange CER/CEA capability messages before application traffic, so a configured/trusted peer relationship or network position permitting peer establishment is a practical precondition that moderates the raw PR:N rating.
Know when Kamailio 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
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:L/SI:L/SA:L/E:P
Network-reachable Diameter peer, low complexity, no per-message auth (PR:N, though peer handshake is a soft prerequisite); heap overflow most credibly yields service crash so A:H, with limited memory C:L/I:L.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
2DescriptionCVE.org
A weakness has been identified in Kamailio up to 5.8.8/6.0.7/6.1.4/6.2.0-dev1. The impacted element is the function shm_malloc of the file src/modules/cdp/receiver.c of the component CDP Diameter Receiver. Executing a manipulation can lead to heap-based buffer overflow. It is possible to launch the attack remotely. The exploit has been made available to the public and could be used for attacks. Upgrading to version 6.0.8 is sufficient to resolve this issue. This patch is called 38711a3e788de0130d48cb485578c482b57d9351/4f62235b6f477b649c5cc18b0c81b4e26c949b98/4f62235b6f477b649c5cc18b0c81b4e26c949b98. You should upgrade the affected component.
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.
A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.
Heap-based buffer overflow in the encode_msg function in encode_msg.c in the SEAS module in Kamailio (formerly OpenSER a
In Kamailio before 5.0.7 and 5.1.x before 5.1.4, a crafted SIP message with an invalid Via header causes a segmentation
In Kamailio before 5.0.7 and 5.1.x before 5.1.4, a crafted SIP message with a double "To" header and an empty "To" tag c
Insecure Temporary file vulnerability in /tmp/kamailio_fifo in kamailio 4.0.1. Rated critical severity (CVSS 9.8), this
A Buffer Overflow issue was discovered in Kamailio before 4.4.7, 5.0.x before 5.0.6, and 5.1.x before 5.1.2. Rated criti
Kamailio before 5.4.0, as used in Sip Express Router (SER) in Sippy Softswitch 4.5 through 5.2 and other products, allow
The kamcmd administrative utility and default configuration in kamailio before 4.3.0 use /tmp/kamailio_ctl. Rated high s
The kamailio build in kamailio before 4.2.0-2 process allows local users to gain privileges. Rated high severity (CVSS 7
Denial of service in Kamailio v6.1.1 and earlier allows an unauthenticated remote attacker to crash the SIP proxy by sen
Out-of-bounds memory access in Kamailio SIP server versions before 5.8.8, 6.0.6, and 6.1.1 enables unauthenticated remot
Unauthenticated remote denial of service in Kamailio 6.1.3 and 6.1.4: a crafted SIP REGISTER request carrying an oversiz
A heap/stack-adjacent buffer overflow in Kamailio's optional sipt module lets remote, unauthenticated attackers crash th
EUVD-2026-83651
GHSA-3jw7-c3qg-43hw
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB