7.1
HIGH CVSS 4.0
CVE-2026-57187
Asterisk: Heap-use-after-free in Asterisk PJSIP TCP/SDP handling when TCP connection closes during SDP processing
Description

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.

INFO

Published Date :

Oct. 26, 2026, 8:17 p.m.

Last Modified :

Oct. 27, 2026, 3:08 p.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2026-57187 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Asterisk asterisk
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 4.0 HIGH [email protected]
Solution
Update Asterisk to a patched version to fix a heap-use-after-free vulnerability in PJSIP TCP/SDP handling.
  • Update Asterisk to version 20.20.1 or later.
  • Update Asterisk to version 21.12.3 or later.
  • Update Asterisk to version 22.10.1 or later.
  • Update Asterisk to version 23.4.1 or later.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-57187 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-57187 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-57187 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • New CVE Received by [email protected]

    Oct. 26, 2026

    Action Type Old Value New Value
    Added Description 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.
    Added CVSS V4.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
    Added CWE CWE-416
    Added CWE CWE-664
    Added Affected New affected value received. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/57xxx/CVE-2026-57187.json">CVE-2026-57187</a>
    Added Reference https://github.com/asterisk/asterisk/commit/0f076168e0be31ebee37762192d0ee049e9c0d42
    Added Reference https://github.com/asterisk/asterisk/commit/27b9544b32f059a4f614169243eaa7559f622aa0
    Added Reference https://github.com/asterisk/asterisk/commit/6e1f4df744369d66ea6f412e355d819b2a7bf26c
    Added Reference https://github.com/asterisk/asterisk/commit/9e0386c6d259f0c7499d52499d9891bee8a494fa
    Added Reference https://github.com/asterisk/asterisk/commit/b7ba85458796ef54b471017287c7806095dbda76
    Added Reference https://github.com/asterisk/asterisk/commit/d4e30005940f86942745bcc64f34748d69870247
    Added Reference https://github.com/asterisk/asterisk/commit/f1e47621472bb3d8ad71f32823f5ca986e008437
    Added Reference https://github.com/asterisk/asterisk/releases/tag/20.20.1
    Added Reference https://github.com/asterisk/asterisk/releases/tag/21.12.3
    Added Reference https://github.com/asterisk/asterisk/releases/tag/22.10.1
    Added Reference https://github.com/asterisk/asterisk/releases/tag/23.4.1
    Added Reference https://github.com/asterisk/asterisk/releases/tag/certified-20.7-cert11
    Added Reference https://github.com/asterisk/asterisk/releases/tag/certified-22.8-cert3
    Added Reference https://github.com/asterisk/asterisk/security/advisories/GHSA-g8q2-p36q-94f6
    Added Reference https://github.com/asterisk/asterisk/tree/24.0.0-pre1
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.