Kamailio
CVE-2025-12204
LOW
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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
1DescriptionCVE.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.
AnalysisAI
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.
Technical ContextAI
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.
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.
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
Out-of-bounds read in Kamailio's IMS AVP handler exposes telecom infrastructure to remote memory disclosure and potentia
Null pointer dereference in Kamailio 5.5.0's grammar rule handler (src/core/cfg.y, yyerror_at function) causes denial of
Same weakness CWE-119 – Buffer Overflow
View allSame technique Buffer Overflow
View allShare
External POC / Exploit Code
Leaving vuln.today