Description
In Kamailio before 5.0.7 and 5.1.x before 5.1.4, a crafted SIP message with an invalid Via header causes a segmentation fault and crashes Kamailio. The reason is missing input validation in the crcitt_string_array core function for calculating a CRC hash for To tags. (An additional error is present in the check_via_address core function: this function also misses input validation.) This could result in denial of service and potentially the execution of arbitrary code.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | kamailio | 5.1.4-1 | — |
| Debian 13 | kamailio | 5.1.4-1 | — |
| Debian 12 | kamailio | 5.1.4-1 | — |
| Debian 9 | kamailio | 4.4.4-2+deb9u3 | DSA-4292-1 |
| Debian 8 | kamailio | 4.2.0-2+deb8u5 | DLA-1503-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | kamailio | 5.3.2-1ubuntu0.1~esm1 | USN-6022-1 |
| Ubuntu Pro 18.04 LTS | kamailio | 5.1.2-1ubuntu2+esm1 | USN-6022-1 |
| Ubuntu Pro 16.04 LTS | kamailio | 4.3.4-1.1ubuntu2.1+esm1 | USN-6022-1 |
Advisories 3
- USN-6022-1 kamailio vulnerabilities Ubuntu Security Notices (USN) · Jun 25, 2026
- DSA-4292-1 kamailio - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-1503-1 kamailio - security update Debian Security (DSA / DLA) · Mar 9, 2026