CVE-2025-12204 Kamailio Configuration File rvalue.c rve_destroy heap-based overflow
A heap-based buffer overflow in Kamailio's configuration handler allows local attackers to potentially execute code or cause denial of service.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-12204?
CVE-2025-12204 is a medium-severity memory corruption vulnerability in Kamailio, published on 27 Oct 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
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.
Which versions are affected by CVE-2025-12204?
It affects 1 product.
Products include Kamailio Kamailio.
How do I fix CVE-2025-12204?
No fix has been published for CVE-2025-12204 yet. Limit exposure of the affected software until one is available.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2025-12204 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-12204 exists.
Other vulnerabilities in Kamailio
Sources
Also known as DEBIAN-CVE-2025-12204, GHSA-2w76-84vx-75wq, UBUNTU-CVE-2025-12204.