CVE-2026-57192

Asterisk: Out-of-Bounds Write in Codec2 Decoder Due to Floor/Ceil Sample Count Mismatch

Published Oct 27, 2026 CVSS 4.0 · 6 Medium 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 authenticated attacker may cause a heap buffer overflow through an out-of-bounds write in the `Codec2` decoder caused by a `floor/ceil sample-count mismatch`. The `codec_codec2` module must be loaded and `Codec2` must be configured on the attacked endpoint. The attacker must pass SIP authentication by username/password or `source IP address matching`, establish a call using `Codec2`, and send carefully crafted `Codec2` audio packets. 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

An authenticated attacker can trigger a heap buffer overflow by sending specially crafted Codec2 audio packets, leading to potential remote code execution or denial of service. The vulnerability is caused by a floor/ceil sample-count mismatch in the Codec2 decoder, classified as CWE-125, CWE-131, and CWE-787.

Affected Systems

The flaw affects Asterisk installations that have the codec_codec2 module loaded and Codec2 configured on an endpoint. Versions prior to 20.20.1, 21.12.3, 22.10.1, 23.4.1 and Certified Asterisk 20.7‑cert11, 22.8‑cert3 are vulnerable; the issue is resolved in the listed releases.

Risk and Exploitability

With a CVSS score of 6, the vulnerability represents a moderate severity risk. EPSS data is unavailable, but the lack of KEV listing indicates no known widespread exploitation yet. The likely attack scenario requires successful SIP authentication (by username/password or source‑IP matching) and an endpoint capable of Codec2 media. Given the moderate CVSS and the need for valid credentials, the overall exploitability is considered moderate with a potential for significant impact to confidentiality and availability if an attacker bypasses authentication.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Asterisk software to 20.20.1 or later, or to the corresponding releases for the 21.x, 22.x, 23.x, and Certified branches.
  • If an upgrade cannot be performed immediately, disable the codec_codec2 module or configure the endpoint to reject Codec2 media streams so the decoder is never invoked.
  • Enhance SIP authentication by enforcing strong username/password policies or stricter source‑IP matching to limit access for authenticated users.

Generated by OpenCVE AI on October 27, 2026 at 22:47 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': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate

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 authenticated attacker may cause a heap buffer overflow through an out-of-bounds write in the `Codec2` decoder caused by a `floor/ceil sample-count mismatch`. The `codec_codec2` module must be loaded and `Codec2` must be configured on the attacked endpoint. The attacker must pass SIP authentication by username/password or `source IP address matching`, establish a call using `Codec2`, and send carefully crafted `Codec2` audio packets. 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: Out-of-Bounds Write in Codec2 Decoder Due to Floor/Ceil Sample Count Mismatch
Weaknesses CWE-125
CWE-131
CWE-787
References
Metrics cvssV4_0

{'score': 6, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 3, 2026, 12:15 PM
Reserved
Jun 24, 2026, 2:00 AM
Status
Undergoing Analysis
Published
Oct 27, 2026, 10:17 PM
Modified
Nov 3, 2026, 1:17 PM
Severity
Moderate
Public date
Oct 27, 2026, 9:25 PM