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.
Published: 2026-10-27
Score: 6 Medium
EPSS: n/a
KEV: No
Impact: Remote code execution
Action: Immediate Patch
AI Analysis

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.

Generated by OpenCVE AI on October 27, 2026 at 22:47 UTC.

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 yet.

History

Tue, 27 Oct 2026 23:00:00 +0000

Type Values Removed Values Added
First Time appeared Asterisk
Asterisk asterisk
Asterisk certified Asterisk
Vendors & Products Asterisk
Asterisk asterisk
Asterisk certified Asterisk

Tue, 27 Oct 2026 21:45:00 +0000

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'}


Subscriptions

Asterisk Asterisk Certified Asterisk
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-27T21:25:40.363Z

Reserved: 2026-06-24T02:00:46.800Z

Link: CVE-2026-57192

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-27T22:17:27.567

Modified: 2026-10-27T22:17:27.567

Link: CVE-2026-57192

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-27T23:00:16Z

Weaknesses