What is wrong
Missing input validation in the "build_res_buf_from_sip_req" core function allows a crafted SIP message with a double "To" header and an empty "To" tag to cause a segmentation fault and crash. An attacker can leverage this flaw to cause a denial of service and potentially execute arbitrary code.
Who is affected
This affects Kamailio versions prior to 5.0.7 and 5.1.x versions prior to 5.1.4.
What to do
Upgrade Kamailio to version 5.0.7 or 5.1.4.
Original description
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 causes a segmentation fault and crash. The reason is missing input validation in the "build_res_buf_from_sip_req" core function. This could result in denial of service and potentially the execution of arbitrary code.
Affected software
- Kamailio ≥ 5.1.0 < 5.1.4< 5.0.7 Fixed in: 5.1.4, 5.0.7 exact match
Details
- Published
- 2018-07-31
- Last modified
- 2026-06-17
- CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H- CWE
- CWE-20
- EPSS (30-day exploit probability)
- 29.30% (percentile 98)
References
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.