Skip to content
OpenAdvisories
Unscored CVE-2018-16657 EUVD-2018-8459GHSA-4477-4jr7-cfjq

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 K…

Published Sep 7, 2018 · Updated Aug 5, 2024 · Assigned by mitre

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.

ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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

References