CVE-2026-57187: Asterisk: Heap-use-after-free in Asterisk PJSIP TCP/SDP handling when TCP connection closes during SDP processing
CVE-2026-57187 affects 239 listed versions of Sangoma Asterisk in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
Sangoma Asterisk
239 of 250 listed versions are affected. Fixed in 23.4.1, 22.10.1, 21.12.3, 20.20.1. The newest release, 24.0.0, is not affected.
23.4.0 23.3.0 23.2.2 23.2.1 23.2.0 23.1.0 23.0.0 22.10.0 22.9.0 22.8.2 22.8.1 22.8.0 22.7.0 22.6.0 22.5.2 22.5.1 22.5.0 22.4.1 22.4.0 22.3.0 22.2.0 22.1.1 22.1.0 22.0.0 22.0.0-rc2 22.0.0-rc1 21.12.2 21.12.1 21.12.0 21.11.0 21.10.2 21.10.1 21.10.0 21.9.1 21.9.0 21.8.0 21.7.0 21.6.1 21.6.0 21.5.0 21.4.3 21.4.2 21.4.1 21.4.0 21.3.1 21.3.0 21.2.0 21.1.0 21.0.2 21.0.1 21.0.0 20.20.0 20.19.0 20.18.2 20.18.1 20.18.0 20.17.0 20.16.0 20.15.2 20.15.1 and 179 more
What it is
Asterisk is an open source private branch exchange and telephony toolkit. Prior to Asterisk 20.20.1, 21.12.3, 22.10.1, 23.4.1 and Certified Asterisk 20.7-cert11, 22.8-cert3, an authenticated attacker may cause a heap-use-after-free in `PJSIP TCP/SDP` handling by sending a `SIP INVITE` over a connection-oriented transport and disconnecting before Asterisk responds with the `200 OK`. So far, the crash has only been reproduced when Asterisk is built with `Address Sanitizer`, which detects the issue. `Address Sanitizer` is a development tool with significant performance overhead and, according to the maintainer, is not used in production systems. This issue is fixed in Asterisk 20.20.1, 21.12.3, 22.10.1, 23.4.1 and Certified Asterisk 20.7-cert11, 22.8-cert3.
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X (GitHub)
Published by GitHub on 26 October 2026. Last changed 2 November 2026.
Sources
Check one version you run: look CVE-2026-57187 up, or pick a product and version in the quick lookup.
Updated 2 December 2026.