What’s Vulnerable › Vulnerabilities
CVE-2018-8828
- Severity: critical (CVSS 9.8 v3.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 30.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2018-03-20 · updated 2026-06-17
- Weakness: CWE-193
Description
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. A specially crafted REGISTER message with a malformed branch or From tag triggers an off-by-one heap-based buffer overflow in the tmx_check_pretran function in modules/tmx/tmx_pretran.c.
Affected products
- Debian Linux: 8.0, 9.0
- Kamailio: before 4.4.7; from 5.0.0 before 5.0.6; from 5.1.0 before 5.1.2 — fixed in 4.4.7, 5.0.6, 5.1.2
How to fix
Upgrade to a fixed version: Kamailio 4.4.7, 5.0.6, 5.1.2. Check the vendor advisory for mitigations.
References
- https://github.com/EnableSecurity/advisories/tree/master/ES2018-05-kamailio-heap-overflow
- https://github.com/kamailio/kamailio/commit/e1d8008a09d9390ebaf698abe8909e10dfec4097
- https://usn.ubuntu.com/4240-1/
- https://www.debian.org/security/2018/dsa-4148
- https://github.com/EnableSecurity/advisories/tree/master/ES2018-05-kamailio-heap-overflow
- https://github.com/kamailio/kamailio/commit/e1d8008a09d9390ebaf698abe8909e10dfec4097
- https://usn.ubuntu.com/4240-1/
- https://www.debian.org/security/2018/dsa-4148
Get alerted when CVE-2018-8828 or the next vulnerability affects your stack