Skip to main content
No exploitation reportedFix available

CVE-2018-16657

No exploitation reported by the sources we read.

  • Published2018-09-07
  • Fixed in5.1.4 · 5.0.7
  • WeaknessCWE-476

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2018-09-0714:29CVE publishedNVD

Versions per branch

NVD
Kamailio
BranchAffectedFixed in
5.1≥ 5.1.0, < 5.1.45.1.4
5.0< 5.0.75.0.7
Debian debian linux
BranchAffectedFixed in
8.0= 8.0no fix published
9.0= 9.0no fix published

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • kamailioUbuntu:Pro:20.04:LTSall versions · fixed in 5.3.2-1ubuntu0.1~esm1
  • kamailioUbuntu:Pro:18.04:LTSall versions · fixed in 5.1.2-1ubuntu2+esm1
  • kamailioUbuntu:Pro:16.04:LTSall versions · fixed in 4.3.4-1.1ubuntu2.1+esm1
  • kamailioDebian:14all versions · fixed in 5.1.4-1
  • kamailioDebian:13all versions · fixed in 5.1.4-1
  • kamailioDebian:12all versions · fixed in 5.1.4-1
  • kamailioDebian:9all versions · fixed in 4.4.4-2+deb9u3
  • kamailioDebian:8all versions · fixed in 4.2.0-2+deb8u5

Full record on NVD

Fix

  1. Update Kamailio to 5.1.4 · 5.0.7

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

  • EUVD-2018-8459same flawENISA EUVD · LicenseRef-ENISA-legal-notice
  • GHSA-4477-4jr7-cfjqsame flawGitHub Advisory Database · CC-BY-4.0
  • DLA-1503-1advisory covering several CVEsDebian · LicenseRef-unstated
  • DSA-4292-1advisory covering several CVEsDebian · LicenseRef-unstated
  • USN-6022-1advisory covering several CVEsUbuntu

Technical details

CVSS v3 Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
2018-09-07
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-4477-4jr7-cfjq

Frequently asked questions

What is 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 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.

Is CVE-2018-16657 actively exploited?

Active exploitation of CVE-2018-16657 has not been confirmed. Its EPSS score was 3.6% on 2026-11-08, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2018-16657?

CVE-2018-16657 has a CVSS v3 base score of 9.8 (CRITICAL severity), with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Running kamailio? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record