CVE-2026-57188

Asterisk: Stack buffer overflow in res_xmpp XMPP namespace prefix handling

Published Oct 27, 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 stack buffer overflow in `res_xmpp` `XMPP namespace prefix` handling using carefully crafted packets. The `res_xmpp` module must be loaded, an XMPP connection must be configured in `xmpp.conf`, and the attacker must have an XMPP account on the same or a federated server. 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 stack buffer overflow occurs when the res_xmpp module processes an XMPP namespace prefix in a packet. The flaw may allow an attacker with an authenticated XMPP account to create a packet that overflows a stack buffer, potentially leading to arbitrary code execution on the Asterisk system. This vulnerability is identified as CWE-787, a classic out‑of‑bounds write to stack memory.

Affected Systems

The vulnerability affects the Asterisk open source PBX and its certified counterpart. Versions before 20.20.1, 21.12.3, 22.10.1, 23.4.1, and Certified Asterisk 20.7‑cert11, 22.8‑cert3 are impacted. The res_xmpp module must be loaded and an XMPP connection configured in xmpp.conf for the flaw to be exploitable.

Risk and Exploitability

The CVSS score of 7.1 indicates a moderate to high severity. EPSS is not available, and the issue is not listed in the CISA KEV catalog. The flaw requires an attacker to have an authenticated XMPP account on the same or a federated server, and the XMPP module must be active. Successful exploitation can result in remote code execution, compromising confidentiality, integrity, and availability of the affected server.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Asterisk to version 20.20.1 or later, or 21.12.3, 22.10.1, 23.4.1, and the corresponding Certified releases (20.7‑cert11, 22.8‑cert3).
  • If an upgrade cannot be performed immediately, disable the res_xmpp module or remove the XMPP configuration from xmpp.conf to prevent the vulnerable code path from being exercised.
  • Add firewall rules to block inbound XMPP traffic to the Asterisk server until the vulnerability is patched.

Generated by OpenCVE AI on October 27, 2026 at 21:12 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': 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
Metrics ssvc

{'options': {'Automatable': 'no', '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 authenticated attacker may cause a stack buffer overflow in `res_xmpp` `XMPP namespace prefix` handling using carefully crafted packets. The `res_xmpp` module must be loaded, an XMPP connection must be configured in `xmpp.conf`, and the attacker must have an XMPP account on the same or a federated server. 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 res_xmpp XMPP namespace prefix handling
Weaknesses CWE-787
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

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 30, 2026, 8:22 PM
Reserved
Jun 24, 2026, 2:00 AM
Status
Undergoing Analysis
Published
Oct 27, 2026, 6:17 PM
Modified
Oct 30, 2026, 9:16 PM
Severity
Moderate
Public date
Oct 27, 2026, 5:55 PM