CVE-2016-2385
Description
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
Exploits
Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.
Exploit-DB
Kamailio 4.3.4 - Heap Buffer Overflow
OS impact
Debian Mixed 6 releases
| Version | Status | Fixed in |
|---|---|---|
| trixie | Fixed | 4.3.4-2 |
| sid | Fixed | 4.3.4-2 |
| forky | Fixed | 4.3.4-2 |
| bullseye | Fixed | 4.3.4-2 |
| bookworm | Fixed | 4.3.4-2 |
| 8.0 | Affected | โ |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| kamailio | kamailio | {"endIncluding":"4.3.4"} | |
References
- http://packetstormsecurity.com/files/136477/Kamailio-4.3.4-Heap-Overflow.html
- http://www.debian.org/security/2016/dsa-3535
- http://www.debian.org/security/2016/dsa-3537
- http://www.kamailio.org/pub/kamailio/4.3.5/ChangeLog
- http://www.securityfocus.com/archive/1/537926/100/0/threaded
- https://census-labs.com/news/2016/03/30/kamailio-seas-heap-overflow/
- https://github.com/kamailio/kamailio/commit/f50c9c853e7809810099c970780c30b0765b0643
- https://www.exploit-db.com/exploits/39638/
- https://security-tracker.debian.org/tracker/CVE-2016-2385
CWEs
CWE-119
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.