{"schemaVersion":3,"id":"CVE-2018-16657","aliases":["UBUNTU-CVE-2018-16657","DEBIAN-CVE-2018-16657","DLA-1503-1","DSA-4292-1"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2018-09-07T14:00:00.000Z","modified":"2024-08-05T10:32:53.033Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.0","versionLabel":"v3.0","source":"NVD","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":7.5,"severity":"high","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":9.8,"severity":"critical","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Debian","score":9.8,"severity":"critical","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true}]},"epss":{"probability":0.03581,"percentile":0.89257,"severity":"low","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.03581},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.03215,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.03581,"percentile":0.89257}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.03215,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.03581,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.03581,"percentile":0.89257}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_35F8484A511EAE35","name":"Exploit Reference (skalatan.de)","source":"reference","url":"https://skalatan.de/blog/advisory-hw-2018-06","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-476","name":"NULL Pointer Dereference","description":"The product dereferences a pointer that it expects to be valid but is NULL.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/476.html"}],"affected":[{"vendor":"debian","product":"kamailio","name":"kamailio","label":"kamailio","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/kamailio","purlType":"deb","versions":[{"text":"< 5.1.4-1","noFixRecorded":false,"fixedIn":null},{"text":"< 4.4.4-2+deb9u3","noFixRecorded":false,"fixedIn":null},{"text":"< 4.2.0-2+deb8u5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.1.4-1 | < 4.4.4-2+deb9u3 | < 4.2.0-2+deb8u5","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"kamailio","name":"kamailio","label":"kamailio","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/kamailio","purlType":"deb","versions":[{"text":"< 4.3.4-1.1ubuntu2.1+esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 5.1.2-1ubuntu2+esm1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.3.4-1.1ubuntu2.1+esm1 | < 5.1.2-1ubuntu2+esm1","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"8.0","noFixRecorded":false,"fixedIn":null},{"text":"9.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"8.0 | 9.0","eol":{"isEol":true,"eolDate":"2020-06-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"8","label":"8 (Jessie)","eolFrom":"2020-06-30T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"8.11"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"kamailio","product":"kamailio","name":"kamailio","label":"kamailio","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 5.0.7","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.1.0, < 5.1.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.0.7 | ≥ 5.1.0, < 5.1.4","eol":null,"hubHref":"/vendor/kamailio/kamailio"}],"affectedCount":4,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://www.debian.org/security/2018/dsa-4292","label":"www.debian.org/security/2018/dsa-4292","hostname":"www.debian.org","tags":["Vendor Advisory","X Refsource DEBIAN","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2018/09/msg00013.html","label":"lists.debian.org/debian-lts-announce/2018/09/msg00013.html","hostname":"lists.debian.org","tags":["Mailing List","X Refsource MLIST","Third Party Advisory"]},{"url":"https://skalatan.de/blog/advisory-hw-2018-06","label":"skalatan.de/blog/advisory-hw-2018-06","hostname":"skalatan.de","tags":["X Refsource MISC","Exploit","Patch","Third Party Advisory","REPORT"]},{"url":"https://ubuntu.com/security/CVE-2018-16657","label":"ubuntu.com/security/CVE-2018-16657","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://github.com/kamailio/kamailio/commit/ad68e402ece8089f133c10de6ce319f9e28c0692","label":"github.com/kamailio/kamailio/commit/ad68e402ece8089f133c10de6ce319f9e28c0692","hostname":"github.com","tags":["REPORT"]},{"url":"https://github.com/kamailio/kamailio/commit/d67b2f9874ca23bd69f18df71b8f53b1b6151f6d","label":"github.com/kamailio/kamailio/commit/d67b2f9874ca23bd69f18df71b8f53b1b6151f6d","hostname":"github.com","tags":["REPORT"]},{"url":"https://github.com/kamailio/kamailio/commit/f07dabffef98c7088cdbc2bd695a4ae7a241b159","label":"github.com/kamailio/kamailio/commit/f07dabffef98c7088cdbc2bd695a4ae7a241b159","hostname":"github.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-6022-1","label":"ubuntu.com/security/notices/USN-6022-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-16657","label":"www.cve.org/CVERecord?id=CVE-2018-16657","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-16657","label":"security-tracker.debian.org/tracker/CVE-2018-16657","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["USN-6022-1"],"duplicates":[],"related":["USN-6022-1"]},"timeline":[{"kind":"published","date":"2018-09-07T14:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-05T10:32:53.033Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T07:18:31.766Z","stale":false,"partial":false}}