cbcvebase.
CVE-2018-16657
published 2018-09-07

CVE-2018-16657: 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…

PriorityP349critical9.8CVSS 3.0
AVNACLPRNUINSUCHIHAH
EPSS
3.58%
88.1th percentile
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.

Affected

12 ranges
VendorProductVersion rangeFixed in
debiandebian_linux
debiandebian_linux
debiankamailio< kamailio 5.1.4-1 (bookworm)kamailio 5.1.4-1 (bookworm)
kamailiokamailio< 5.0.75.0.7
kamailiokamailio>= 0 < 5.1.4-15.1.4-1
kamailiokamailio>= 0 < 5.1.4-15.1.4-1
kamailiokamailio>= 0 < 5.1.4-15.1.4-1
kamailiokamailio>= 0 < 5.1.4-15.1.4-1
kamailiokamailio>= 0 < 4.3.4-1.1ubuntu2.1+esm14.3.4-1.1ubuntu2.1+esm1
kamailiokamailio>= 0 < 5.1.2-1ubuntu2+esm15.1.2-1ubuntu2+esm1
kamailiokamailio>= 0 < 5.3.2-1ubuntu0.1~esm15.3.2-1ubuntu0.1~esm1
kamailiokamailio>= 5.1.0 < 5.1.45.1.4

CVSS provenance

nvdv3.09.8CRITICALCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
osv9.8CRITICAL
vendor_debian9.8CRITICAL
vendor_ubuntu9.8CRITICAL
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.