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 tmxcheckpretran function in modules/tmx/tmx_pretran.c.
{
"unresolved_ranges": [
{
"extracted_events": [
{
"introduced": "8.0"
},
{
"last_affected": "8.0"
},
{
"introduced": "9.0"
},
{
"last_affected": "9.0"
}
],
"source": "CPE_STRING",
"vendor_product": "debian:debian_linux",
"cpes": [
"cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*",
"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
]
}
]
}{
"source": [
"CPE_RANGE",
"REFERENCES"
],
"cpe": "cpe:2.3:a:kamailio:kamailio:*:*:*:*:*:*:*:*",
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "4.4.7"
},
{
"introduced": "5.0.0"
},
{
"fixed": "5.0.6"
},
{
"introduced": "5.1.0"
},
{
"fixed": "5.1.2"
}
]
}"2026-07-08T20:05:00Z"
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-8828.json"
[
{
"id": "CVE-2018-8828-96b9e290",
"digest": {
"line_hashes": [
"202312855581435197133371407321087176701",
"277043145890525527711492030391328171372",
"78360990353905610262814467092084753475",
"38820567475123698968890758151512420525"
],
"threshold": 0.9
},
"signature_version": "v1",
"signature_type": "Line",
"source": "https://github.com/kamailio/kamailio/commit/e1d8008a09d9390ebaf698abe8909e10dfec4097",
"deprecated": false,
"target": {
"file": "src/modules/tmx/tmx_pretran.c"
}
},
{
"id": "CVE-2018-8828-da97b9af",
"digest": {
"function_hash": "294881891307122545872262304880529037414",
"length": 5848.0
},
"signature_version": "v1",
"signature_type": "Function",
"source": "https://github.com/kamailio/kamailio/commit/e1d8008a09d9390ebaf698abe8909e10dfec4097",
"deprecated": false,
"target": {
"function": "tmx_check_pretran",
"file": "src/modules/tmx/tmx_pretran.c"
}
}
]