Buffer overflow in Kamailio
CVE-2025-12205
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L.
EPSS exploit prediction
EPSS 0.002, 13.6th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Kamailio — versions 5.5.0
- Kamailio — versions 5.5
Weakness classification (CWE)
References
- VDB-329875 | Kamailio Configuration File cfg.lex sr_push_yy_state use after free (technical-description, Third Party Advisory, VDB Entry, vdb-entry)
- VDB-329875 | CTI Indicators (IOB, IOC, IOA) (signature, Permissions Required, permissions-required, VDB Entry)
- Submit #673225 | Kamailio Project Kamailio SIP Server 5.5 Use After Free (Third Party Advisory, VDB Entry, third-party-advisory)
- shimo.im/docs/ZzkLMVMLOzIRlpAQ/ (Exploit, Third Party Advisory, exploit)
- www.openwall.com/lists/oss-security/2025/11/02/3 (related)
- www.openwall.com/lists/oss-security/2025/10/27/12
- www.openwall.com/lists/oss-security/2025/10/27/8
- www.openwall.com/lists/oss-security/2025/10/27/8 (Issue Tracking, Mailing List)