Kamailio
CVE-2025-12207
LOW
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconGain local system access
-
DeliveryWrite malformed config to Kamailio directory
-
ExploitTrigger config reload
-
InstallParser invokes yyerror_at
-
C2Null pointer dereference
-
ExecuteKamailio process crash
-
ImpactDenial of service
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Resource release
|
| Exploitation Conditions | Exploitation requires: (1) LOCAL system access (AV:L per CVSS) - attacker must have shell or file system access to the Kamailio host, not remote network access. (2) Authenticated local user privilege (PR:L per CVSS) - attacker must be an authenticated OS-level user on the system, not unauthenticated. (3) Ability to modify or create Kamailio configuration files - typically in /etc/kamailio/ or equivalent directory, which requires file system write permission. (4) Ability to trigger config reload - via systemctl restart, kill -HUP signal, or API reload command, which also requires appropriate privileges. Exploitation does NOT occur during normal runtime or remote SIP request handling; it only occurs during config file parsing at startup or manual reload. This means: passive observation of normal traffic will not trigger the bug; active file system manipulation is mandatory. Default Kamailio installations in production restrict these capabilities to root/privileged users only, making this an insider-threat or post-compromise risk rather than a direct attack vector. |
| Impact | Multiple signals indicate this is LOW REAL-WORLD RISK despite public POC availability. CVSS 4.0/1.9 score reflects low impact (availability only, no confidentiality or integrity), and EPSS 0.03% (8th percentile) strongly indicates this will not be broadly exploited. The CVSS vector confirms: local-only access (AV:L), low complexity (AC:L), authenticated requirement (PR:L), and negligible impact (VA:L only; VC:N, VI:N, SA:N). Critically, description states 'actual existence of this vulnerability is currently in question' and vendor never responded to early disclosure, suggesting possible false positive or research artifact. Attack requires manipulating config files on the local system, which is not a realistic attack vector in production environments where file integrity is typically protected and config changes go through change management processes. POC availability does not elevate risk here because exploitation is fundamentally constrained by local-only access and auth requirement. This is a low-priority denial-of-service in a non-Internet-facing component, likely impacting only lab/development setups or insider threat scenarios. |
| Exploit ScenarioDerived | A system administrator with legitimate local access (e.g., via SSH) or an attacker who has compromised a low-privilege local account on the Kamailio host crafts a malformed configuration file with syntax errors that trigger the yyerror_at function's null pointer dereference. The attacker places the malicious config in Kamailio's configuration directory and triggers a config reload (via signal or service restart), causing the parser to crash during error handling, resulting in service unavailability. Publicly available POC demonstrates the specific syntax pattern needed to trigger the crash. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 29, 2026
Null pointer dereference in Kamailio 5.5.0's grammar rule handler (src/core/cfg.y, yyerror_at function) causes denial of service when processing malformed configuration files. Local authenticated attackers can trigger the vulnerability by manipulating config files, resulting in application crash. Publicly available exploit code exists, but exploitation requires local access and config file manipulation, limiting real-world attack surface. EPSS score of 0.03% indicates minimal exploitation probability despite disclosed POC.
RemediationAI
No vendor-released patch identified at time of analysis. Kamailio project did not respond to early disclosure. Recommended mitigations: (1) Restrict local file system access to Kamailio configuration directory using OS-level permissions - ensure only authorized administrators and the Kamailio process user can modify config files, reducing likelihood of malicious config injection. (2) Implement configuration file integrity monitoring (e.g., aide, osquery) to detect unauthorized changes and trigger alerts before reload. (3) Use immutable configuration delivery via read-only file systems or containerization where config is baked into image, preventing runtime modification. (4) If upgrading is feasible, test Kamailio 5.6+ or later versions, though fix status for this specific CVE is unconfirmed. (5) Monitor Kamailio process logs and syslog for config parsing errors that may indicate attack attempts. Organizations should prioritize this only if running Kamailio 5.5.0 in multi-tenant or hostile environments; default single-admin deployments face minimal risk.
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 a SIP (Session Initiation Protocol) server and media proxy commonly deployed in VoIP infrastructure. The vulnerability exists in the configuration file parser (cfg.y), which is part of the core grammar rule handling system. The affected component (yyerror_at function) is invoked during config file parsing when syntax errors are encountered. CWE-404 (Improper Resource Validation) indicates the code fails to properly validate or check for null pointer conditions before dereferencing, a common issue in C-based parsers generated from yacc/bison specifications. The vulnerability is triggered during the initialization or reload phase when Kamailio reads its configuration file from disk.
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 vulnerability has been found in Kamailio 5.5. This affects the function yyerror_at of the file src/core/cfg.y of the component Grammar Rule Handler. Such manipulation leads to null pointer dereference. The attack needs to be performed locally. The exploit has been disclosed to the public and may be used. The actual existence of this vulnerability is currently in question. 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
A heap/stack-adjacent buffer overflow in Kamailio's optional sipt module lets remote, unauthenticated attackers crash th
NVD
CVE.org
EPSS
VulDB
GitHub PoC
Exploit-DB