Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-12205: Use After Free in Kamailio

0
Medium
VulnerabilityCVE-2025-12205cvecve-2025-12205
Published: Mon Oct 27 2025 (10/27/2025, 02:32:07 UTC)
Source: CVE Database V5
Product: Kamailio

Description

A vulnerability was detected in Kamailio 5.5. The affected element is the function sr_push_yy_state of the file src/core/cfg.lex of the component Configuration File Handler. The manipulation results in use after free. The attack must be initiated from a local position. The exploit is now public and may be used. The real existence of this vulnerability is still doubted at the moment. 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.

AI-Powered Analysis

AILast updated: 11/10/2025, 05:16:01 UTC

Technical Analysis

CVE-2025-12205 identifies a use-after-free vulnerability in Kamailio version 5.5, specifically within the function sr_push_yy_state located in src/core/cfg.lex, part of the configuration file handler component. Use-after-free vulnerabilities occur when a program continues to use memory after it has been freed, potentially leading to arbitrary code execution, crashes, or data corruption. In this case, the vulnerability arises from improper handling of state transitions during configuration file parsing. Exploitation requires local attacker privileges to manipulate configuration files, which means remote exploitation is not feasible without prior local access. The vulnerability has a CVSS 4.8 score, reflecting medium severity due to the limited attack vector (local access required) and the complexity of exploitation (manipulating config files). The vendor has not issued a patch or responded to the disclosure, and while a public exploit exists, its practical impact is mitigated by the attack prerequisites. The vulnerability could allow an attacker with local access to cause denial of service or potentially execute arbitrary code by exploiting the use-after-free condition during configuration reload or parsing. Given Kamailio's role as a SIP server widely used in VoIP infrastructures, this vulnerability could impact telecommunication services if exploited.

Potential Impact

For European organizations, particularly those operating VoIP services or telecommunication infrastructure using Kamailio 5.5, this vulnerability poses a risk of service disruption or potential privilege escalation if an attacker gains local access. The impact on confidentiality is limited unless the attacker leverages the vulnerability to execute arbitrary code and access sensitive data. Integrity and availability could be compromised through crashes or manipulation of configuration states, leading to denial of service. Since exploitation requires local access and configuration file manipulation, the threat is primarily to internal systems or environments where attackers have already penetrated perimeter defenses. However, in multi-tenant or shared hosting environments, this could facilitate lateral movement or escalation. The lack of vendor response and patches increases the risk window. European telecom providers and enterprises relying on Kamailio for SIP routing should consider this vulnerability in their risk assessments and incident response planning.

Mitigation Recommendations

1. Restrict local access to systems running Kamailio 5.5 to trusted administrators only, enforcing strict access controls and monitoring. 2. Implement file integrity monitoring on Kamailio configuration files to detect unauthorized changes promptly. 3. Use host-based intrusion detection systems (HIDS) to alert on suspicious activities related to configuration file access or modification. 4. Isolate Kamailio servers in secure network segments to limit exposure and reduce the risk of local compromise. 5. Regularly audit user accounts and permissions on Kamailio hosts to ensure minimal privilege principles are enforced. 6. Prepare for patch deployment by monitoring vendor communications and community advisories, applying updates immediately when available. 7. Consider upgrading to later Kamailio versions if they address this or related vulnerabilities. 8. Employ runtime application self-protection (RASP) or sandboxing techniques where feasible to mitigate exploitation impact. 9. Conduct penetration testing and vulnerability assessments focusing on local privilege escalation vectors to identify potential attack paths.

Need more detailed analysis?Get Pro

Technical Details

Data Version
5.1
Assigner Short Name
VulDB
Date Reserved
2025-10-25T11:52:14.661Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 68fee1ba23a7bbed324e8ba0

Added to database: 10/27/2025, 3:06:34 AM

Last enriched: 11/10/2025, 5:16:01 AM

Last updated: 12/13/2025, 11:25:43 PM

Views: 191

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats