CVE-2026-57199

Asterisk: Asterisk app_sms.c copies externally controlled SMS lengths into fixed in-struct buffers

Published Oct 27, 2026 CVSS 4.0 · 2.3 Low 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, `app_sms.c` copies externally controlled `SMS` lengths into `fixed in-struct buffers` without sufficient bounds checks, allowing an attacker to corrupt memory or crash Asterisk. The administrator must explicitly use the `SMS` dialplan application, which is useful when routing calls to or from `analog devices`, and must not have ensured that data passed to the application is valid. 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

The flaw in Asterisk’s app_sms.c allows externally supplied SMS length values to be copied into statically allocated buffers without sufficient checks. This unsanitized copy can overflow the buffers, corrupt memory, and cause the core PBX process to fail. The vulnerability is categorized as a classic buffer overflow and memory corruption weakness.

Affected Systems

Versions of Asterisk and Certified Asterisk prior to 20.20.1, 21.12.3, 22.10.1, 23.4.1 and their corresponding Certified releases 20.7‑cert11 and 22.8‑cert3 are affected. All earlier releases in these branches are vulnerable.

Risk and Exploitability

The CVSS score of 2.3 indicates a low severity rating, and the EPSS score of < 1% signifies a very low probability of exploitation. The vulnerability is not listed in the CISA KEV catalog. Attackers would need to influence the SMS dialplan application, typically by sending messages with crafted length fields or by routing calls to local analog devices. This generally requires local or privileged access, making the threat largely internal or confined to environments where the SMS application is exposed.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Asterisk to the latest patched releases (20.20.1, 21.12.3, 22.10.1, 23.4.1 or the matching Certified builds).
  • Disable or restrict access to the SMS dialplan application to trusted administrators and enforce strict validation of any supplied length values.
  • Monitor the Asterisk process for crashes or abnormal memory usage and establish an incident response plan for rapid containment.

Generated by OpenCVE AI on November 2, 2026 at 13:51 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
Weaknesses CWE-120
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:H/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, `app_sms.c` copies externally controlled `SMS` lengths into `fixed in-struct buffers` without sufficient bounds checks, allowing an attacker to corrupt memory or crash Asterisk. The administrator must explicitly use the `SMS` dialplan application, which is useful when routing calls to or from `analog devices`, and must not have ensured that data passed to the application is valid. 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: Asterisk app_sms.c copies externally controlled SMS lengths into fixed in-struct buffers
Weaknesses CWE-787
References
Metrics cvssV4_0

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

Weaknesses
  • CWE-120

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

  • CWE-787

    Out-of-bounds Write

Sources

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