{"id":"CVE-2026-57197","kind":"vulnerability","aliases":["CVE-2026-57197"],"related":[],"title":"Asterisk: corrupted Speex audio file overflows heap and crashes server","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 `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.","summary":"A malformed OGG/Speex audio file triggers an unbounded memcpy in Asterisk's format_ogg_speex, overflowing a heap buffer. The result is a crash of the Asterisk process when the file is played.","severity":"high","cvss":7.7,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["asterisk","pbx","runtime","self-hosted","telephony"],"not_affected_if":["default-config","no-speex-playback"],"how_to_check":"- Run `asterisk -V` to get the installed version and compare it with the fixed releases.\n- Check whether the configuration plays OGG/Speex files from directories writable by untrusted users or from uploads.","fix":"- Upgrade Asterisk to `20.20.1`, `21.12.3`, `22.10.1` or `23.4.1`.\n- Upgrade Certified Asterisk to `20.7-cert11` or `22.8-cert3`.","status":"open","published_at":"2026-10-27T17:17:01+00:00","first_seen_at":"2026-10-27T17:32:46+00:00","triaged_at":"2026-10-27T17:34:32+00:00","updated_at":"2026-10-27T17:34:32+00:00","category":"runtime","confidence":0.8,"triage":{"at":"2026-10-27T17:34:32Z","model":"claude-haiku-5-5","output":{"fix":"- Upgrade Asterisk to `20.20.1`, `21.12.3`, `22.10.1` or `23.4.1`.\n- Upgrade Certified Asterisk to `20.7-cert11` or `22.8-cert3`.","reach":"local","title":"Asterisk: corrupted Speex audio file overflows heap and crashes server","impact":"low","summary":"A malformed OGG/Speex audio file triggers an unbounded memcpy in Asterisk's format_ogg_speex, overflowing a heap buffer. The result is a crash of the Asterisk process when the file is played.","category":"runtime","nicknames":[],"who_cares":["asterisk","telephony","self-hosted","pbx"],"confidence":0.8,"needs_auth":"yes","worst_case":"Asterisk process crashes, causing telephony service outage","analyst_note":"","how_to_check":"- Run `asterisk -V` to get the installed version and compare it with the fixed releases.\n- Check whether the configuration plays OGG/Speex files from directories writable by untrusted users or from uploads.","needs_analyst":false,"not_affected_if":["default-config","no-speex-playback"],"who_is_affected":"Asterisk deployments older than the fixed releases that are configured to play OGG/Speex files. Exposure depends on whether an attacker can place such a file where Asterisk reads it, which needs elevated privileges or an administrator being tricked into adding it. Systems that do not play Speex files or that only use directories under strict administrator control are less exposed.","user_interaction":"yes","needs_special_setup":"yes","severity_if_unknown":"high"},"cost_usd":0.000633,"input_tokens":3495,"output_tokens":566,"severity_before":"high"},"analyst_status":null,"analyst_note":null,"search":"'-2026':12A,15A '-57197':13A,16A '20.20.1':71C,152C '20.7':78C,159C '21.12.3':72C,153C '22.10.1':73C,154C '22.8':80C,161C '23.4.1':74C,155C 'administr':132C 'also':139C 'asterisk':1A,17B,34B,50B,57C,70C,77C,101C,121C,131C,137C,151C,158C 'attack':111C 'audio':4A,27B,109C 'avail':119C,136C 'branch':63C 'buffer':42B,97C 'caus':94C 'cert11':79C,160C 'cert3':81C,162C 'certifi':76C,157C 'configur':141C 'contain':106C 'convinc':129C 'corrupt':2A,107C 'crash':9A,47B,100C 'creat':113C 'cve':11A,14A 'data':88C 'either':122C 'elev':125C 'exchang':64C 'file':5A,28B,54B,105C,115C,145C 'fix':149C 'format':36B,90C 'heap':7A,41B,96C 'host':22B 'issu':147C 'make':117C,134C 'malform':25B 'memcpi':32B,84C 'must':112C,138C 'ogg':37B,91C 'ogg/speex':26B,86C 'open':60C 'overflow':6A,39B,98C 'packet':87C 'pbx':18B 'play':56B,143C 'prior':68C 'privat':62C 'privileg':126C 'process':51B 'read':103C 'result':44B 'runtim':19B 'self':21B 'self-host':20B 'server':10A 'sourc':61C 'speex':3A,38B,92C,108C 'suffici':124C 'telephoni':23B,66C 'toolkit':67C 'trigger':29B 'unbound':31B,83C","nicknames":[],"mitigations":[],"who_affected":"Asterisk deployments older than the fixed releases that are configured to play OGG/Speex files. Exposure depends on whether an attacker can place such a file where Asterisk reads it, which needs elevated privileges or an administrator being tricked into adding it. Systems that do not play Speex files or that only use directories under strict administrator control are less exposed.","tier":"B","verified":{},"analyst_revisit_at":null,"first_public_at":"2026-10-27T17:17:01+00:00","kev":null,"cvss_vector":"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","cvss_by":"security-advisories@github.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-57197","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-57197","severity":null,"published_at":"2026-10-27T17:17:01+00:00","modified_at":"2026-10-27T17:17:01+00:00","first_seen_at":"2026-10-27T17:32:46+00:00","fetched_at":"2026-10-27T17:32:46+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}