Kamailio
CVE-2025-12206
LOW
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain local shell access
-
DeliveryModify Kamailio config file
-
ExploitInject malicious rvalue expression
-
ExecutionTrigger config reload
-
PersistNull pointer dereference
-
ImpactService crash
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Resource release
|
| Exploitation Conditions | The attack requires local file write access to Kamailio configuration files (AV:L) and low privileges (PR:L) sufficient to modify or inject configuration directives. Specifically, the attacker must be able to edit the main Kamailio config file or any included configuration file loaded during startup or reload. The vulnerability is triggered only when Kamailio parses the configuration, which occurs at service startup or when an explicit reload signal is sent (e.g., kamctl reload). Default Kamailio installations with properly restricted file permissions (config files readable/writable only by root or kamailio process owner) prevent exploitation by unprivileged local users. The flaw does not manifest during normal SIP message processing or runtime operation; it is strictly a parse-time issue. No network access, authentication bypass, or user interaction is required once config file write access is obtained. |
| Impact | Multiple signals suggest this is a low real-world priority despite public exploit availability. CVSS 1.9 with AV:L/PR:L reflects minimal severity-availability impact only (VA:L), no confidentiality or integrity loss. EPSS 0.03% (8th percentile) indicates exceptionally low exploitation probability, consistent with the requirement to locally manipulate config files. Critically, the reporter states 'it is still unclear if this vulnerability genuinely exists' and notes 'this might not be a realistic scenario in many cases,' raising questions about reproducibility and practical exploitability. No CISA KEV confirmation of active exploitation. The vendor did not respond to early disclosure, leaving patch status unknown. The publicly available POC (referenced via Shimo docs) indicates the attack technique is documented but does not confirm exploitation in real environments. The limiting factor-config file manipulation-is a severe practical constraint: most production Kamailio instances operate with restricted config file write access, and any privileged user capable of modifying configs poses a broader administrative threat unrelated to this specific vulnerability. This is a borderline case where technical availability of an exploit does not translate to realistic exploitation risk. |
| Exploit ScenarioDerived | A local user with low-privilege shell access (e.g., a restricted service account) crafts a malicious Kamailio configuration file containing a specially formatted rvalue expression designed to trigger a null pointer in the rve_is_constant function. When Kamailio reloads its configuration (via a SIGHUP signal or routine restart), the rvalue.c parser processes the crafted expression, dereferences a null pointer, and crashes the process, causing a brief denial of service. If multiple reload attempts are made, the availability impact could be sustained but remains limited to the Kamailio service itself. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 29, 2026
Kamailio 5.5.0 suffers a null pointer dereference in the rve_is_constant function (src/core/rvalue.c) triggered by manipulation of local configuration files, resulting in denial of service. The attack requires local access with low privileges and produces only availability impact. Publicly available exploit code exists, but active exploitation has not been confirmed by CISA KEV, and the vulnerability's genuine existence remains disputed by the original reporter. Real-world risk is minimal given the low EPSS score (0.03%), requirement for config file manipulation, and minimal impact surface.
RemediationAI
No vendor-released patch has been identified at the time of analysis. Because the vendor did not respond to early disclosure, no official fix version is available. Immediate remediation focuses on compensating controls: restrict write permissions on Kamailio configuration files (typically /etc/kamailio/kamailio.cfg and included files) to the kamailio process owner and root only, preventing unauthorized local users from modifying rvalue expressions. Audit configuration file access logs using tools such as auditd (Linux) to detect unauthorized modification attempts. For environments where config flexibility is critical, consider running Kamailio in a containerized or virtualized sandbox with restricted privilege escalation, though this has minimal operational benefit given the local-only attack vector. Monitor upstream Kamailio repository (https://github.com/kamailio/kamailio) for security advisories and consider upgrading to a 5.6+ series if available and compatible with your deployment. Do not rely solely on this CVE for patching decisions; coordinate remediation with broader access control and configuration management policies.
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
Kamailio is an open-source SIP (Session Initiation Protocol) server and router used for VoIP and telephony infrastructure. The vulnerability exists in the rvalue.c module, which handles runtime value evaluation and parsing of Kamailio configuration directives. The rve_is_constant function is responsible for determining whether an rvalue expression can be evaluated as a constant at configuration parse time. CWE-404 (improper resource validation) indicates the code fails to validate or properly handle a null pointer before dereferencing it. This occurs during configuration file parsing when a malformed or specifically crafted rvalue expression is processed, causing the function to dereference a null pointer when validating expression constancy. The attack vector is local (AV:L) and requires low privileges (PR:L), meaning a user with restricted system access can trigger the flaw by editing or injecting a malicious config file.
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:N/VI:N/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 flaw has been found in Kamailio 5.5. The impacted element is the function rve_is_constant of the file src/core/rvalue.c. This manipulation causes null pointer dereference. The attack needs to be launched locally. The exploit has been published and may be used. It is still unclear if this vulnerability genuinely exists. 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
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
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