CVE-2026-57197: Asterisk: Heap Buffer Overflow in OGG/Speex File Playback (format_ogg_speex)
CVE-2026-57197 affects 239 listed versions of Sangoma Asterisk in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
Sangoma Asterisk
239 of 250 listed versions are affected. Fixed in 23.4.1, 22.10.1, 21.12.3, 20.20.1. The newest release, 24.0.0, is not affected.
23.4.0 23.3.0 23.2.2 23.2.1 23.2.0 23.1.0 23.0.0 22.10.0 22.9.0 22.8.2 22.8.1 22.8.0 22.7.0 22.6.0 22.5.2 22.5.1 22.5.0 22.4.1 22.4.0 22.3.0 22.2.0 22.1.1 22.1.0 22.0.0 22.0.0-rc2 22.0.0-rc1 21.12.2 21.12.1 21.12.0 21.11.0 21.10.2 21.10.1 21.10.0 21.9.1 21.9.0 21.8.0 21.7.0 21.6.1 21.6.0 21.5.0 21.4.3 21.4.2 21.4.1 21.4.0 21.3.1 21.3.0 21.2.0 21.1.0 21.0.2 21.0.1 21.0.0 20.20.0 20.19.0 20.18.2 20.18.1 20.18.0 20.17.0 20.16.0 20.15.2 20.15.1 and 179 more
What it is
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 `memcpy` of `OGG/Speex` packet data in `format_ogg_speex` can cause a heap buffer overflow and crash Asterisk when reading a file containing corrupted Speex audio. The attacker must create the file and make it available to Asterisk either through sufficiently elevated privileges or by convincing an Asterisk administrator to make it available. Asterisk must also be configured to play that file. 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.
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X (GitHub)
Published by GitHub on 27 October 2026. Last changed 2 November 2026.
Sources
Check one version you run: look CVE-2026-57197 up, or pick a product and version in the quick lookup.
Updated 2 December 2026.