# CVE-2026-57197: Asterisk heap buffer overflow in OGG Speex format handler

Source: https://junglewise.ai/threats/cve-2026-57197-asterisk-is-an-open-source-private-branch-exchange-and-telephony  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-27. Updated: 2026-10-27  
License: CC BY 4.0 with a link back

CVE-2026-57197 · Severity: info · Published 2026-10-27

Asterisk is an open-source phone system that processes audio files including Speex-encoded OGG formats. A specially crafted corrupted Speex audio file can trigger a heap buffer overflow that crashes Asterisk, disrupting telephony service. An attacker would need to convince an administrator to load a malicious audio file or have sufficient system access to place one where Asterisk will play it.

Technologies: [Asterisk](https://junglewise.ai/threats/technologies/asterisk), [Asterisk Certified Asterisk](https://junglewise.ai/threats/technologies/certified-asterisk). Vendors: [Asterisk](https://junglewise.ai/threats/vendors/asterisk).

## Quick answers

**Is CVE-2026-57197 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-57197 being exploited in the wild.

**How severe is CVE-2026-57197?** Informational severity, published 27 October 2026.

**Which products and versions are affected?** Asterisk before 20.20.1, before 21.12.3, before 22.10.1, before 23.4.1; Asterisk Certified Asterisk before 20.7-cert11, before 22.8-cert3.

**Is there a fix for CVE-2026-57197?** Yes: fixed in Asterisk 20.20.1, 21.12.3, 22.10.1, 23.4.1; Certified Asterisk 20.7-cert11, 22.8-cert3. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-57197 attacked?** It is attacked with local access, in a hosted service.

**Am I affected by CVE-2026-57197?** Check whether you run Asterisk or Asterisk Certified Asterisk at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- Fixed in Asterisk 20.20.1, 21.12.3, 22.10.1, 23.4.1; Certified Asterisk 20.7-cert11, 22.8-cert3

## Technical details

The ogg_speex_read() function in format_ogg_speex.c performs an unbounded memcpy of OGG packet data into a 200-byte buffer without validating packet size, causing a heap buffer overflow when processing corrupted Speex files. This corrupts the adjacent speex_desc structure containing libogg heap pointers, leading to SIGSEGV crash on playback. The attacker must create and deliver the malicious file, requiring either elevated privileges or social engineering of an administrator.

## Affected products

- Asterisk Asterisk before 20.20.1, before 21.12.3, before 22.10.1, before 23.4.1
- Asterisk Certified Asterisk before 20.7-cert11, before 22.8-cert3

## Timeline

- 2026-10-27: disclosed
- 2026-10-27: patched

## References

- [https://github.com/asterisk/asterisk/commit/0a2c1d9e910f7c4dfffa05e328accb8a96990df8](https://github.com/asterisk/asterisk/commit/0a2c1d9e910f7c4dfffa05e328accb8a96990df8)
- [https://github.com/asterisk/asterisk/commit/0e6d761ed83f1671632c91805252767eae85e1a2](https://github.com/asterisk/asterisk/commit/0e6d761ed83f1671632c91805252767eae85e1a2)

## Related threats

- [Asterisk privilege escalation in ast_loggrabber via /tmp](https://junglewise.ai/threats/cve-2026-57203-asterisk-is-an-open-source-private-branch-exchange-and-telephony)
- [Asterisk OOH323 Q.931 parser denial of service](https://junglewise.ai/threats/cve-2026-57186-asterisk-is-an-open-source-private-branch-exchange-and-telephony)
- [Asterisk authorization bypass in ARI REST-over-WebSocket](https://junglewise.ai/threats/cve-2026-57200-asterisk-is-an-open-source-private-branch-exchange-and-telephony)
- [Asterisk NULL pointer dereference in Manager Interface HTTP digest authentication](https://junglewise.ai/threats/cve-2026-57195-asterisk-is-an-open-source-private-branch-exchange-and-telephony)
- [Asterisk privilege escalation in REST Interface](https://junglewise.ai/threats/cve-2026-57202-asterisk-is-an-open-source-private-branch-exchange-and-telephony)
