CVE-2026-57202

Asterisk: ARI setChannelVar bypasses live_dangerously and permits FILE() writes

Published Oct 27, 2026 CVSS 3.1 · 8.1 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 authenticated Asterisk REST Interface (ARI) attacker with read-only privileges may use `setChannelVar` to execute write dialplan functions, including `FILE()` writes, even when `live_dangerously` in `asterisk.conf` is set to no. The Asterisk HTTP web server must be enabled and reachable, and the attacker must already have valid `read-only ARI credentials`. HTTP is disabled by default and binds only to 127.0.0.1 by default even when enabled. 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 vulnerability lies in the Asterisk REST Interface (ARI) setChannelVar function, which incorrectly permits authorized read‑only ARI users to invoke write dialplan commands, notably FILE() writes, even when the configuration value live_dangerously is set to no. This flaw allows an attacker with only read‑only ARI credentials to write arbitrary files to the Asterisk host, potentially enabling the execution of malicious code or further system compromise. The weakness effectively subverts the intended read‑only restriction and can lead to significant confidentiality, integrity and availability damage.

Affected Systems

All Asterisk and Certified Asterisk releases that precede the patch versions 20.20.1, 21.12.3, 22.10.1, 23.4.1, 20.7‑cert11 and 22.8‑cert3 are vulnerable. In other words, any version older than these fix releases is affected. Versions equal to or newer than the listed patches are not vulnerable. The status of later development releases such as 24.0.0‑pre1 is not explicitly documented in the advisory.

Risk and Exploitability

The CVSS score of 8.1 indicates a high‑severity problem. The EPSS score of 0.0044 indicates a very low likelihood of exploitation, but the flaw would still only be exploitable by attackers who can reach the Asterisk HTTP server and possess valid read‑only ARI credentials. The system is not listed in the CISA KEV catalog, suggesting there have been no widely exploited incidents so far. Nevertheless, because the flaw permits arbitrary file creation, a motivated attacker could easily develop further compromise paths, and the required conditions—an enabled HTTP interface with reachable ARI endpoints—are typical in many deployments.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to the latest Asterisk version that includes the fix (20.20.1, 21.12.3, 22.10.1, 23.4.1, 20.7-cert11, or 22.8-cert3).
  • If you cannot upgrade immediately, disable the Asterisk HTTP web server or restrict it to localhost to prevent remote access.
  • Ensure that ARI credentials are not granted read‑only access unless absolutely necessary, and consider removing or tightly restricting ARI users.

Generated by OpenCVE AI on November 2, 2026 at 13:52 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
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 Asterisk REST Interface (ARI) attacker with read-only privileges may use `setChannelVar` to execute write dialplan functions, including `FILE()` writes, even when `live_dangerously` in `asterisk.conf` is set to no. The Asterisk HTTP web server must be enabled and reachable, and the attacker must already have valid `read-only ARI credentials`. HTTP is disabled by default and binds only to 127.0.0.1 by default even when enabled. 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: ARI setChannelVar bypasses live_dangerously and permits FILE() writes
Weaknesses CWE-1220
CWE-267
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-1220

    Insufficient Granularity of Access Control

  • CWE-267

    Privilege Defined With Unsafe Actions

  • CWE-749

    Exposed Dangerous Method or Function

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 28, 2026, 4:13 PM
Reserved
Jun 24, 2026, 2:00 AM
Status
Awaiting Analysis
Published
Oct 27, 2026, 6:17 PM
Modified
Oct 28, 2026, 5:18 PM
Severity
Important
Public date
Oct 27, 2026, 5:58 PM