CVE-2026-57197

Asterisk: Heap Buffer Overflow in OGG/Speex File Playback (format_ogg_speex)

Published Oct 27, 2026 CVSS 4.0 · 7.7 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 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.

Analysis

AI-generated

Technical impact

A unbounded memcpy of OGG/Speex packet data in the format_ogg_speex module overflows a heap buffer when Asterisk processes a malformed Speex file. The overflow corrupts heap structures, causing the Asterisk telephony engine to crash and resulting in a denial‑of‑service. The weakness is an example of unbounded buffer manipulation (CWE‑122) and improper bounds checking (CWE‑787). The crash does not directly expose sensitive information, but it can interrupt voice services for the affected instance.

Affected Systems

Asterisk and Certified Asterisk installations running any version prior to 20.20.1, 21.12.3, 22.10.1, 23.4.1 and the certified releases 20.7‑cert11 and 22.8‑cert3 are vulnerable.

Risk and Exploitability

The CVSS score of 7.7 classifies this vulnerability as high severity. The EPSS score is 0.00531 (0.531%), indicating a very low but nonzero exploitation probability. The vulnerability is not listed in CISA KEV, indicating no known active exploitation cases. Based on the description, it is inferred that an attacker must create a corrupted Speex file and place it where Asterisk can read it, typically by leveraging elevated file‑system privileges or persuading an administrator to allow the upload. Once the file is played, the unbounded memcpy will trigger a heap buffer overflow that crashes Asterisk, causing a denial of service to the PBX.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Asterisk to 20.20.1 or newer, 21.12.3 or newer, 22.10.1 or newer, 23.4.1 or newer, or to Certified Asterisk 20.7‑cert11, 22.8‑cert3 or newer
  • If an immediate upgrade is not possible, restrict or block access to any user‑supplied OGG/Speex files that are not trusted
  • Configure Asterisk to validate or restrict playback of external audio files, ensuring that only verified or signed media can be played

Generated by OpenCVE AI on November 2, 2026 at 14:31 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-120
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

threat_severity

Important

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 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.
Title Asterisk: Heap Buffer Overflow in OGG/Speex File Playback (format_ogg_speex)
Weaknesses CWE-122
CWE-787
References
Metrics cvssV4_0

{'score': 7.7, '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'}

Weaknesses
  • CWE-120

    Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

  • CWE-122

    Heap-based Buffer Overflow

  • CWE-787

    Out-of-bounds Write

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 2, 2026, 7:27 PM
Reserved
Jun 24, 2026, 2:00 AM
Status
Undergoing Analysis
Published
Oct 27, 2026, 5:17 PM
Modified
Nov 2, 2026, 8:17 PM
Severity
Important
Public date
Oct 27, 2026, 4:35 PM