Kamailio
CVE-2025-12204
LOW
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain local system access as authenticated user
-
DeliveryWrite malicious content to Kamailio configuration file
-
ExploitTrigger configuration reload or restart
-
Executionrve_destroy parses crafted config
-
PersistHeap buffer overflow occurs
-
ImpactLimited data corruption or process crash
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, buffer size validation
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Local file system access with write permissions to Kamailio configuration files (typically /etc/kamailio/ or equivalent) combined with authenticated user privileges (PR:L in CVSS 4.0) is required to exploit this vulnerability. The attacker must craft configuration file content that triggers the specific buffer overflow condition in rve_destroy. Default Kamailio deployments with properly restricted file permissions (configuration files owned by root or kamailio user with no world-writable access) significantly limit exploitation likelihood. Systems where unprivileged users can modify Kamailio configuration files or where configuration reloads are triggered automatically in response to user input face higher risk, though the absolute risk remains low given the limited impact (only confidentiality, integrity, and availability classified as 'low' by CVSS). Non-default configuration or deployment scenarios, such as shared hosting with multiple unprivileged users on the same Kamailio instance, would increase exposure. |
| Impact | Risk signals are contradictory and concerning. CVSS 1.9 (Scale 0-10) with low impact scores (VC:L, VI:L, VA:L) and EPSS 0.01% (1st percentile) both indicate minimal real-world risk. However, publicly available exploit code exists, and the vulnerability description explicitly notes 'ongoing doubt regarding the real existence of this vulnerability.' The attack vector is local (AV:L), requires low privileges (PR:L), and causes only limited confidentiality, integrity, and availability impact - not exploitable for meaningful compromise. The description further states that 'manipulating config files might not be a realistic scenario in many cases,' suggesting researchers question whether real-world systems are actually vulnerable in practice. No CISA KEV listing was provided, indicating no confirmed active exploitation. The vendor's non-response to early disclosure raises questions about whether this is a known and accepted design limitation rather than a critical security gap. Verdict: This is a low-priority issue. The combination of strict access requirements (local + authenticated), negligible impact (L on all vectors), lowest-percentile EPSS, and explicit doubt about real-world exploitability makes this unsuitable for urgent remediation prioritization. Organizations should track and patch when convenient but need not treat this as a security emergency. |
| Exploit ScenarioDerived | A local privileged user (e.g., with sudo or root access) or an attacker who has already compromised a standard user account on the Kamailio host could craft a malicious configuration file (likely kamailio.cfg) containing specific values that trigger the buffer overflow in rve_destroy when the configuration is parsed or reloaded. The overflow would occur in heap memory, potentially causing a crash or limited data corruption within the Kamailio process, but exploitation is constrained by local-only access and the requirement to have modification rights to configuration files. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 29, 2026
Heap-based buffer overflow in Kamailio 5.5.0's rve_destroy function allows local authenticated attackers to cause limited data corruption through manipulation of configuration files, with publicly available exploit code but extremely low real-world risk due to local access requirement, authenticated privilege level, and acknowledged uncertainty about vulnerability existence.
RemediationAI
No vendor-released patch has been identified at time of analysis, and the vendor did not respond to early disclosure attempts. Users of Kamailio 5.5.0 should contact Kamailio developers directly through official channels (kamailio.org) to inquire about patched versions or upgrade guidance. As an interim compensating control, restrict file system write access to Kamailio configuration directories to only trusted administrative accounts and implement file integrity monitoring on kamailio.cfg and related configuration files to detect unauthorized or malicious changes. Disable or audit any automated configuration reload mechanisms if not essential. Note that these mitigations do not fix the underlying code defect but reduce the likelihood of exploitation by limiting who can inject malicious configuration. Given the low EPSS score (0.01%) and unconfirmed real-world exploitability, this should not delay other critical patching activities.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability resides in src/core/rvalue.c within Kamailio's Configuration File Handler component. The rve_destroy function contains a heap-based buffer overflow (CWE-119) that can be triggered through crafted configuration file manipulation. Kamailio is a Session Initiation Protocol (SIP) server and router commonly used in VoIP infrastructure. The affected CPE is cpe:2.3:a:kamailio:kamailio:5.5.0:*:*:*:*:*:*:*. The vulnerability requires local file system access and authenticated privileges to exploit, significantly limiting attack surface compared to network-accessible vulnerabilities.
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:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Primary rating from Vendor (vuldb) · only source for this CVE.
CVSS VectorVendor: vuldb
DescriptionCVE.org
A security vulnerability has been detected in Kamailio 5.5. Impacted is the function rve_destroy of the file src/core/rvalue.c of the component Configuration File Handler. The manipulation leads to heap-based buffer overflow. The attack must be carried out locally. The exploit has been disclosed publicly and may be used. There is ongoing doubt regarding the real existence of this vulnerability. This attack requires manipulating config files which might not be a realistic scenario in many cases. The vendor was contacted early about this disclosure but did not respond in any way.
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.
Affected Products (CPE)CVE.org
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
Heap-based buffer overflow in Kamailio's CDP (C Diameter Peer) module allows a remote party that can deliver a malformed
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
NVD
CVE.org
EPSS
VulDB
GitHub PoC
Exploit-DB