CVE-2026-57191

Asterisk: Stack buffer overflow in MWI NOTIFY Message-Account parsing

Published Oct 27, 2026 CVSS 4.0 · 8.2 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 unbounded `sscanf` in `res_pjsip_pubsub` when parsing the `MWI NOTIFY` `Message-Account` field may allow an unauthenticated attacker to send a carefully crafted packet that causes a stack buffer overflow and corrupts the underlying transport, permanently disabling all SIP functionality. An Asterisk restart is required to restore full operation. 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

Asterisk PBX is vulnerable to an unbounded sscanf in res_pjsip_pubsub when parsing the MWI NOTIFY Message-Account field. An unauthenticated attacker can send a carefully crafted packet that triggers a stack buffer overflow, corrupting the underlying SIP transport and permanently disabling all SIP functionality until the Asterisk daemon is restarted. The flaw is a classic buffer copy without bound checking (CWE-120) and an out‑of‑bounds write (CWE-787).

Affected Systems

The flaw affects Asterisk and Certified Asterisk, impacting all versions released prior to 20.20.1, 21.12.3, 22.10.1, 23.4.1 and Certified 20.7‑cert11, 22.8‑cert3. The specified releases 20.20.1, 21.12.3, 22.10.1, 23.4.1 and Certified 20.7‑cert11, 22.8‑cert3 contain the fix.

Risk and Exploitability

With a CVSS score of 8.2 the vulnerability is considered high severity. The EPSS score is not available, and the issue is not listed in the CISA KEV catalog. The attack vector is remote, over the SIP network, and requires no authentication; a single crafted packet sent to the Asterisk server can trigger the overflow. Given the lack of authentication checks and the potential for permanent service disruption, the likelihood of exploitation is high and the risk to operating telecom infrastructure is significant.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to Asterisk 20.20.1 or later releases such as 21.12.3, 22.10.1, 23.4.1, or the corresponding Certified packages.
  • Restart the Asterisk service after the upgrade to reload transport settings and restore SIP functionality.
  • Until a patch can be applied, block or restrict inbound SIP traffic to the server to mitigate potential exploitation.

Generated by OpenCVE AI on October 27, 2026 at 22:46 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Important

Type Values Removed Values Added
Metrics ssvc

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

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 unbounded `sscanf` in `res_pjsip_pubsub` when parsing the `MWI NOTIFY` `Message-Account` field may allow an unauthenticated attacker to send a carefully crafted packet that causes a stack buffer overflow and corrupts the underlying transport, permanently disabling all SIP functionality. An Asterisk restart is required to restore full operation. 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: Stack buffer overflow in MWI NOTIFY Message-Account parsing
Weaknesses CWE-120
CWE-787
References
Metrics cvssV4_0

{'score': 8.2, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-120

    Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

  • CWE-787

    Out-of-bounds Write

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 2, 2026, 7:45 PM
Reserved
Jun 24, 2026, 2:00 AM
Status
Undergoing Analysis
Published
Oct 27, 2026, 10:17 PM
Modified
Nov 2, 2026, 8:17 PM
Severity
Important
Public date
Oct 27, 2026, 9:32 PM