CVE-2026-57187

Asterisk: Heap-use-after-free in Asterisk PJSIP TCP/SDP handling when TCP connection closes during SDP processing

Published Oct 26, 2026 CVSS 4.0 · 7.1 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

A heap-use-after-free flaw was found in Asterisk’s PJSIP TCP/SDP handling. An authenticated attacker can trigger the bug by sending a SIP INVITE over a TCP connection and closing the socket before Asterisk replies with 200 OK, causing the Asterisk process to crash. The crash demonstrates a memory safety issue that results in service disruption rather than arbitrary code execution and is associated with CWE‑416, CWE‑664 and CWE‑825.

Affected Systems

The vulnerability affects Asterisk releases prior to 20.20.1, 21.12.3, 22.10.1, 23.4.1 and the Certified Asterisk 20.7‑cert11 and 22.8‑cert3 builds. These are the open source and certified builds provided by the Asterisk project.

Risk and Exploitability

The CVSS score of 7.1 indicates moderate severity, and the EPSS score is reported as < 1 %, signifying a very low probability of exploitation. The flaw is not listed in the CISA KEV catalog. Exploitation requires authenticated access to the Asterisk instance and the ability to send SIP traffic over TCP, making the primary threat vector internal or from compromised clients.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Asterisk to version 20.20.1 or later (and the corresponding certified releases) to receive the fix.
  • If upgrading is not immediately possible, reconfigure or disable PJSIP TCP/SDP handling and use TLS or UDP instead to avoid the vulnerable code path.
  • Monitor SIP logs for abnormal INVITE disconnect patterns and enforce stricter session timeout policies to mitigate crash attempts.

Generated by OpenCVE AI on November 2, 2026 at 13:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-825
References
Metrics threat_severity

None

cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Asterisk
Asterisk asterisk
Asterisk certified Asterisk
Vendors & Products Asterisk
Asterisk asterisk
Asterisk certified Asterisk
Type Values Removed Values 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.
Title Asterisk: Heap-use-after-free in Asterisk PJSIP TCP/SDP handling when TCP connection closes during SDP processing
Weaknesses CWE-416
CWE-664
References
Metrics cvssV4_0

{'score': 7.1, 'vector': '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'}

Weaknesses
  • CWE-416

    Use After Free

  • CWE-664

    Improper Control of a Resource Through its Lifetime

  • CWE-825

    Expired Pointer Dereference

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 2, 2026, 6:07 PM
Reserved
Jun 24, 2026, 2:00 AM
Status
Undergoing Analysis
Published
Oct 26, 2026, 8:17 PM
Modified
Nov 2, 2026, 7:18 PM
Severity
Moderate
Public date
Oct 26, 2026, 7:31 PM