CVE-2016-2385
published 2016-04-11CVE-2016-2385: Heap-based buffer overflow in the encode_msg function in encode_msg.c in the SEAS module in Kamailio (formerly OpenSER and SER) before 4.3.5 allows remote…
PriorityP269critical9.8CVSS 3.0
AVNACLPRNUINSUCHIHAH
EXPLOIT
EPSS
30.52%
98.0th percentile
Heap-based buffer overflow in the encode_msg function in encode_msg.c in the SEAS module in Kamailio (formerly OpenSER and SER) before 4.3.5 allows remote attackers to cause a denial of service (memory corruption and process crash) or possibly execute arbitrary code via a large SIP packet.
Affected
10 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | debian_linux | — | — |
| debian | kamailio | < kamailio 4.3.4-2 (bookworm) | kamailio 4.3.4-2 (bookworm) |
| kamailio | kamailio | <= 4.3.4 | — |
| kamailio | kamailio | >= 0 < 4.3.4-2 | 4.3.4-2 |
| kamailio | kamailio | >= 0 < 4.3.4-2 | 4.3.4-2 |
| kamailio | kamailio | >= 0 < 4.3.4-2 | 4.3.4-2 |
| kamailio | kamailio | >= 0 < 4.3.4-2 | 4.3.4-2 |
| kamailio | kamailio | >= 0 < 4.3.4-1.1ubuntu2.1+esm2 | 4.3.4-1.1ubuntu2.1+esm2 |
| kamailio | kamailio | >= 0 < 5.1.2-1ubuntu2+esm2 | 5.1.2-1ubuntu2+esm2 |
| kamailio | kamailio | >= 0 < 5.3.2-1ubuntu0.1~esm2 | 5.3.2-1ubuntu0.1~esm2 |
Detection & IOCsextracted from sources · hover to see the quote
- →The vulnerable memcpy in encode_msg() copies msg->buf (attacker-controlled SIP packet contents) of length msg->len into a fixed-size heap buffer of ENCODED_MSG_SIZE. Monitor for anomalously large SIP packets (UDP/TCP) directed at Kamailio instances. ↗
- →The destination heap buffer is allocated with shm_malloc(ENCODED_MSG_SIZE); a SIP packet whose length exceeds ENCODED_MSG_SIZE minus the header offset (typically 180 bytes) will overflow the buffer. Alert on SIP messages approaching or exceeding ENCODED_MSG_SIZE. ↗
- →Affected component is the SEAS module of Kamailio 4.3.4 and possibly earlier versions. Instances not loading the SEAS module are not vulnerable. ↗
- ·For Ubuntu, this issue only affected Ubuntu 16.04 LTS; later Ubuntu releases are not impacted by CVE-2016-2385. ↗
CVSS provenance
nvdv3.09.8CRITICALCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.010.0CRITICALAV:N/AC:L/Au:N/C:C/I:C/A:C
osv9.8CRITICAL
vendor_debian9.8CRITICAL
vendor_ubuntu9.8CRITICAL
CVEs like this are exactly what “Exploited This Week” covers.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
Kamailio vulnerabilities
vendor_ubuntu·2025-04-07·CVSS 9.8
CVE-2020-28361 [CRITICAL] Kamailio vulnerabilities
Title: Kamailio vulnerabilities
Summary: Several security issues were fixed in Kamailio.
Stelios Tsampas discovered that Kamailio did not correctly handle certain
memory operations, which could lead to a buffer overflow. A remote attacker
could possibly use this issue to cause a denial of service or execute
arbitrary code. This issue only affected Ubuntu 16.04 LTS. (CVE-2016-2385)
Henning Westerholt discovered that Kamailio did not correctly handle
duplicated headers, which could lead to a segmentation fault. A remote
attacker could possibly use this issue to cause a denial of service or
execute arbitrary code. This issue only affected Ubuntu 16.04 LTS and
Ubuntu 18.04 LTS. (CVE-2018-14767)
It was discovered that Kamailio did not correctly handle parsing certain
headers containing whit
Debian
CVE-2016-2385: kamailio - Heap-based buffer overflow in the encode_msg function in encode_msg.c in the SEA...
vendor_debian·2016·CVSS 9.8
CVE-2016-2385 [CRITICAL] CVE-2016-2385: kamailio - Heap-based buffer overflow in the encode_msg function in encode_msg.c in the SEA...
Heap-based buffer overflow in the encode_msg function in encode_msg.c in the SEAS module in Kamailio (formerly OpenSER and SER) before 4.3.5 allows remote attackers to cause a denial of service (memory corruption and process crash) or possibly execute arbitrary code via a large SIP packet.
Scope: local
bookworm: resolved (fixed in 4.3.4-2)
bullseye: resolved (fixed in 4.3.4-2)
forky: resolved (fixed in 4.3.4-2)
sid: resolved (fixed in 4.3.4-2)
trixie: resolved (fixed in 4.3.4-2)
OSV
kamailio vulnerabilities
osv·2025-04-07·CVSS 9.8
CVE-2016-2385 [CRITICAL] kamailio vulnerabilities
kamailio vulnerabilities
Stelios Tsampas discovered that Kamailio did not correctly handle certain
memory operations, which could lead to a buffer overflow. A remote attacker
could possibly use this issue to cause a denial of service or execute
arbitrary code. This issue only affected Ubuntu 16.04 LTS. (CVE-2016-2385)
Henning Westerholt discovered that Kamailio did not correctly handle
duplicated headers, which could lead to a segmentation fault. A remote
attacker could possibly use this issue to cause a denial of service or
execute arbitrary code. This issue only affected Ubuntu 16.04 LTS and
Ubuntu 18.04 LTS. (CVE-2018-14767)
It was discovered that Kamailio did not correctly handle parsing certain
headers containing whitespace characters. An authenticated attacker could
possibly use t
GHSA
GHSA-wcxv-ff2g-c9qw: Heap-based buffer overflow in the encode_msg function in encode_msg
ghsa_unreviewed·2022-05-14
CVE-2016-2385 [CRITICAL] CWE-119 GHSA-wcxv-ff2g-c9qw: Heap-based buffer overflow in the encode_msg function in encode_msg
Heap-based buffer overflow in the encode_msg function in encode_msg.c in the SEAS module in Kamailio (formerly OpenSER and SER) before 4.3.5 allows remote attackers to cause a denial of service (memory corruption and process crash) or possibly execute arbitrary code via a large SIP packet.
OSV
CVE-2016-2385: Heap-based buffer overflow in the encode_msg function in encode_msg
osv·2016-04-11·CVSS 9.8
CVE-2016-2385 [CRITICAL] CVE-2016-2385: Heap-based buffer overflow in the encode_msg function in encode_msg
Heap-based buffer overflow in the encode_msg function in encode_msg.c in the SEAS module in Kamailio (formerly OpenSER and SER) before 4.3.5 allows remote attackers to cause a denial of service (memory corruption and process crash) or possibly execute arbitrary code via a large SIP packet.
No detection rules found.
No writeups or analysis indexed.
http://packetstormsecurity.com/files/136477/Kamailio-4.3.4-Heap-Overflow.htmlhttp://www.debian.org/security/2016/dsa-3535http://www.debian.org/security/2016/dsa-3537http://www.kamailio.org/pub/kamailio/4.3.5/ChangeLoghttp://www.securityfocus.com/archive/1/537926/100/0/threadedhttps://census-labs.com/news/2016/03/30/kamailio-seas-heap-overflow/https://github.com/kamailio/kamailio/commit/f50c9c853e7809810099c970780c30b0765b0643https://www.exploit-db.com/exploits/39638/http://packetstormsecurity.com/files/136477/Kamailio-4.3.4-Heap-Overflow.htmlhttp://www.debian.org/security/2016/dsa-3535http://www.debian.org/security/2016/dsa-3537http://www.kamailio.org/pub/kamailio/4.3.5/ChangeLoghttp://www.securityfocus.com/archive/1/537926/100/0/threadedhttps://census-labs.com/news/2016/03/30/kamailio-seas-heap-overflow/https://github.com/kamailio/kamailio/commit/f50c9c853e7809810099c970780c30b0765b0643https://www.exploit-db.com/exploits/39638/
2016-04-11
Published