{"schemaVersion":3,"id":"CVE-2018-8828","aliases":["ALPINE-CVE-2018-8828","UBUNTU-CVE-2018-8828","USN-4240-1","DEBIAN-CVE-2018-8828","DSA-4148-1"],"status":"published","duplicateOf":null,"title":null,"description":"A Buffer Overflow issue was discovered in Kamailio before 4.4.7, 5.0.x before 5.0.6, and 5.1.x before 5.1.2. A specially crafted REGISTER message with a malformed branch or From tag triggers an off-by-one heap-based buffer overflow in the tmx_check_pretran function in modules/tmx/tmx_pretran.c.","dates":{"published":"2018-03-20T20:00:00.000Z","modified":"2024-08-05T07:02:26.164Z","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 · Alpine","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 · 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.30411,"percentile":0.9822,"severity":"high","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.30411},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.27369,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.30411,"percentile":0.9822}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.27369,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.30411,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.30411,"percentile":0.9822}]},"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":[],"exploitCount":0,"weaknesses":[{"id":"CWE-193","name":"Off-by-one Error","description":"A product calculates or uses an incorrect maximum or minimum value that is 1 more, or 1 less, than the correct value.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/193.html"},{"id":"CWE-787","name":"Out-of-bounds Write","description":"The product writes data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/787.html"}],"affected":[{"vendor":"alpine","product":"kamailio","name":"kamailio","label":"kamailio","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/kamailio","purlType":"apk","versions":[{"text":"≥ 5.0.0, < 4.4.0-r2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.0.0, < 4.4.5-r1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.0.0, < 5.0.2-r2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 5.0.0, < 4.4.0-r2 | ≥ 5.0.0, < 4.4.5-r1 | ≥ 5.0.0, < 5.0.2-r2","eol":null,"hubHref":null},{"vendor":"debian","product":"kamailio","name":"kamailio","label":"kamailio","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/kamailio","purlType":"deb","versions":[{"text":"< 5.1.2-1","noFixRecorded":false,"fixedIn":null},{"text":"< 4.2.0-2+deb8u3","noFixRecorded":false,"fixedIn":null},{"text":"< 4.4.4-2+deb9u1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.1.2-1 | < 4.2.0-2+deb8u3 | < 4.4.4-2+deb9u1","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","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.3.4-1.1ubuntu2.1","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":"< 4.4.7","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.0.0, < 5.0.6","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.1.0, < 5.1.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.4.7 | ≥ 5.0.0, < 5.0.6 | ≥ 5.1.0, < 5.1.2","eol":null,"hubHref":"/vendor/kamailio/kamailio"}],"affectedCount":5,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://github.com/kamailio/kamailio/commit/e1d8008a09d9390ebaf698abe8909e10dfec4097","label":"github.com/kamailio/kamailio/commit/e1d8008a09d9390ebaf698abe8909e10dfec4097","hostname":"github.com","tags":["X Refsource MISC","Patch","Third Party Advisory","REPORT"]},{"url":"https://github.com/EnableSecurity/advisories/tree/master/ES2018-05-kamailio-heap-overflow","label":"github.com/EnableSecurity/advisories/tree/master/ES2018-05-kamailio-heap-overflow","hostname":"github.com","tags":["X Refsource MISC","Third Party Advisory","REPORT"]},{"url":"https://www.debian.org/security/2018/dsa-4148","label":"www.debian.org/security/2018/dsa-4148","hostname":"www.debian.org","tags":["Vendor Advisory","X Refsource DEBIAN","Third Party Advisory"]},{"url":"https://usn.ubuntu.com/4240-1/","label":"usn.ubuntu.com/4240-1/","hostname":"usn.ubuntu.com","tags":["Vendor Advisory","X Refsource UBUNTU"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2018-8828","label":"security.alpinelinux.org/vuln/CVE-2018-8828","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2018-8828","label":"ubuntu.com/security/CVE-2018-8828","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-4240-1","label":"ubuntu.com/security/notices/USN-4240-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-8828","label":"www.cve.org/CVERecord?id=CVE-2018-8828","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-8828","label":"security-tracker.debian.org/tracker/CVE-2018-8828","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2018-03-20T20:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-05T07:02:26.164Z","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-19T02:54:49.147Z","stale":false,"partial":false}}