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.