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...
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
9.8
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.
- Record
CVE-2018-16657- CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 7.5 High
AV:N/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-476
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2018-16657- Updated
- 2026-11-02
EUVDEUVD-2018-8459 No score
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.
- Record
EUVD-2018-8459- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-4477-4jr7-cfjq
9.8
In Kamailio before 5.0.7 and 5.1.x before 5.1.4, a crafted SIP message with an invalid Via header...
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.
- Record
GHSA-4477-4jr7-cfjq- CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-476
- Updated
- 2026-11-02
OSV
9.8
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.
- Record
CVE-2018-16657- CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2018-16657
9.8
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.
- Record
DEBIAN-CVE-2018-16657- CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2018-16657
9.8
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.
- Record
UBUNTU-CVE-2018-16657- CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUSN-6022-1 No score
kamailio vulnerabilities
It was discovered that Kamailio did not properly sanitize SIP messages under certain circumstances. An attacker could use this vulnerability to cause a denial of service or possibly execute arbitrary code. This issue only affected Ubuntu 16.04 ESM and 18.04 ESM. (CVE-2018-16657)
It was discovered that Kamailio did not properly validate INVITE requests under certain circumstances. An attacker could use this vulnerability to cause a denial of service or possibly execute arbitrary code. (CVE-2020-27507)
- Record
USN-6022-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
kamailioDebian:12 |
before 5.1.4-1 | 5.1.4-1 |
kamailioDebian:13 |
before 5.1.4-1 | 5.1.4-1 |
kamailioDebian:14 |
before 5.1.4-1 | 5.1.4-1 |
kamailioDebian:8 |
before 4.2.0-2+deb8u5, plus listed versions 4.2.0-24.2.0-2+deb8u14.2.0-2+deb8u24.2.0-2+deb8u34.2.0-2+deb8u4 |
4.2.0-2+deb8u5 |
kamailioDebian:9 |
before 4.4.4-2+deb9u3, plus listed versions 4.4.4-24.4.4-2+deb9u14.4.4-2+deb9u2 |
4.4.4-2+deb9u3 |
kamailioUbuntu:Pro:16.04:LTS |
before 4.3.4-1.1ubuntu2.1+esm1, plus listed versions 4.3.1-2ubuntu14.3.4-1.1ubuntu14.3.4-1.1ubuntu24.3.4-1.1ubuntu2.1 |
4.3.4-1.1ubuntu2.1+esm1 |
kamailioUbuntu:Pro:18.04:LTS |
before 5.1.2-1ubuntu2+esm1, plus listed versions 4.4.2-3ubuntu55.0.4-1ubuntu15.1.1-1ubuntu15.1.1-1ubuntu45.1.2-1ubuntu15.1.2-1ubuntu2 |
5.1.2-1ubuntu2+esm1 |
kamailioUbuntu:Pro:16.04:LTS From an advisory covering 2 CVEs |
before 4.3.4-1.1ubuntu2.1+esm1, plus listed versions 4.3.1-2ubuntu14.3.4-1.1ubuntu14.3.4-1.1ubuntu24.3.4-1.1ubuntu2.1 |
4.3.4-1.1ubuntu2.1+esm1 |
kamailioUbuntu:Pro:18.04:LTS From an advisory covering 2 CVEs |
before 5.1.2-1ubuntu2+esm1, plus listed versions 4.4.2-3ubuntu55.0.4-1ubuntu15.1.1-1ubuntu15.1.1-1ubuntu45.1.2-1ubuntu15.1.2-1ubuntu2 |
5.1.2-1ubuntu2+esm1 |
kamailioUbuntu:Pro:20.04:LTS From an advisory covering 2 CVEs |
before 5.3.2-1ubuntu0.1~esm1, plus listed versions 5.2.3-1build35.2.3-1build45.3.0-25.3.1-15.3.2-1build15.3.2-1build25.3.2-1build3 |
5.3.2-1ubuntu0.1~esm1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2018-16657 is a critical vulnerability (CVSS 9.8) in Kamailio, published September 7, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 3.58%, the 89th percentile. Fixed in kamailio 5.1.4-1.
References
debian.org/security/2018/dsa-4292
lists.debian.org/debian-lts-announce/2018/09/msg00013.html
skalatan.de/blog/advisory-hw-2018-06
nvd.nist.gov/vuln/detail/CVE-2018-16657
github.com/advisories/GHSA-4477-4jr7-cfjq
security-tracker.debian.org/tracker/CVE-2018-16657
Show 7 moreShow less
ubuntu.com/security/CVE-2018-16657
github.com/kamailio/kamailio/commit/ad68e402ece8089f133c10de6ce319f9e28c0692
github.com/kamailio/kamailio/commit/d67b2f9874ca23bd69f18df71b8f53b1b6151f6d
github.com/kamailio/kamailio/commit/f07dabffef98c7088cdbc2bd695a4ae7a241b159
ubuntu.com/security/notices/USN-6022-1
cve.org/CVERecord?id=CVE-2018-16657
ubuntu.com/security/CVE-2020-27507