Skip to main content

Kamailio CVE-2026-93962

| EUVDEUVD-2026-83651 MEDIUM
Heap-based Buffer Overflow (CWE-122)
2026-09-20 VulDB GHSA-3jw7-c3qg-43hw
5.5
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

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

  1. Access
    Establish Diameter peer session (CER/CEA)
  2. Delivery
    Send undersized Diameter message
  3. Exploit
    Bypass missing length check in do_receive
  4. Execution
    Overflow heap via shm_malloc path
  5. Impact
    Crash 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).

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.5% exploitation probability (EPSS)

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

Alert me

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

Kamailio 6.1.3
Kamailio 5.8.5
Kamailio 5.8.0
Kamailio 5.8.8
Kamailio 6.0.6
Kamailio 6.0.1
Kamailio 6.0.0
Kamailio 6.1.4
Kamailio 6.1.2
Kamailio 6.0.4
Kamailio 5.8.4
Kamailio 5.8.3
Kamailio 6.2.0-dev1
Kamailio 6.1.0
Kamailio 5.8.6
Kamailio 6.0.5
Kamailio 6.0.2
Kamailio 6.1.1
Kamailio 5.8.1
Kamailio 6.0.7
Kamailio 6.0.3
Kamailio 5.8.7
Kamailio 5.8.2

Affected Packages

euvd kamailio 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

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

Vendor (VulDB) PRIMARY 5.5 MEDIUM
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
vuln.today AI 8.6 HIGH

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.

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

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
Low

Lifecycle Timeline

2
CVSS changed
Sep 20, 2026 - 05:22 NVD
6.9 (MEDIUM) 5.5 (MEDIUM)
CVE Published
Sep 20, 2026 - 05:00 cve.org
MEDIUM 5.5

DescriptionCVE.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

EPSS Score
0.5%
Top 56% exploitable
Prevalence
Medium
Kamailio widely used for SIP, but CDP Diameter module is niche IMS-only
Exploit
POC
Public exploit code exists
Social Media
2
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment 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 MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
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· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +28
PoC: +20
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 heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.

CVE-2016-2385 CRITICAL POC
9.8 Apr 11

Heap-based buffer overflow in the encode_msg function in encode_msg.c in the SEAS module in Kamailio (formerly OpenSER a

CVE-2018-16657 CRITICAL POC
9.8 Sep 07

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

CVE-2018-14767 CRITICAL POC
9.8 Jul 31

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

CVE-2013-7426 CRITICAL
9.8 Aug 29

Insecure Temporary file vulnerability in /tmp/kamailio_fifo in kamailio 4.0.1. Rated critical severity (CVSS 9.8), this

CVE-2018-8828 CRITICAL
9.8 Mar 20

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

CVE-2020-28361 MEDIUM POC
5.4 Nov 18

Kamailio before 5.4.0, as used in Sip Express Router (SER) in Sippy Softswitch 4.5 through 5.2 and other products, allow

CVE-2015-1590 HIGH
7.8 Sep 07

The kamcmd administrative utility and default configuration in kamailio before 4.3.0 use /tmp/kamailio_ctl. Rated high s

CVE-2015-1591 HIGH
7.8 Jun 27

The kamailio build in kamailio before 4.2.0-2 process allows local users to gain privileges. Rated high severity (CVSS 7

CVE-2026-52023 HIGH
7.5 Sep 01

Denial of service in Kamailio v6.1.1 and earlier allows an unauthenticated remote attacker to crash the SIP proxy by sen

CVE-2026-39863 HIGH
7.5 Apr 08

Out-of-bounds memory access in Kamailio SIP server versions before 5.8.8, 6.0.6, and 6.1.1 enables unauthenticated remot

CVE-2026-106804 HIGH
7.5 Nov 02

Unauthenticated remote denial of service in Kamailio 6.1.3 and 6.1.4: a crafted SIP REGISTER request carrying an oversiz

CVE-2026-108822 MEDIUM
6.9 Oct 12

A heap/stack-adjacent buffer overflow in Kamailio's optional sipt module lets remote, unauthenticated attackers crash th

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