CVE-2026-57202
HIGH(8.1)CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
- CVSS 8.1 — Hoch
Erwähnungen (letzte 60 Tage)
EPSS-Score
0.4%
Exploit-Wahrscheinlichkeit (30 Tage)
CVSS Score
8.1
Technische Schwere
Beschreibung
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.
Erkennung & Indikatoren
Ausnutzung
In den geprüften Quellen nicht genannt
Behobene Versionen
- Asterisk 20.20.1
- Asterisk 21.12.3
- Asterisk 22.10.1
- Asterisk 23.4.1
- Certified Asterisk 20.7-cert11
- Certified Asterisk 22.8-cert3
Threat-Hunting-Queries
Detection for attempts to use dangerous dialplan functions via ARI setChannelVar, specifically looking for calls to functions like FILE(), SHELL(), CURL(), STAT(), etc., when 'live_dangerously' is set to 'no'. This requires logging of ARI commands and dialplan function executions.
Sentinel/Defender KQL
let dangerous_functions = dynamic(["FILE(", "SHELL(", "CURL(", "STAT(", "DB("]);
AsteriskLogs
| where EventType == "ARI_setChannelVar"
| where VariableValue has_any (dangerous_functions)
| where Configuration_live_dangerously == "no" // Assuming this config can be logged or correlated
| project TimeGenerated, SourceIp, UserName, ChannelId, VariableName, VariableValue, Configuration_live_dangerously, RawDataSplunk SPL
sourcetype=asterisk_logs EventType="ARI_setChannelVar" (VariableValue=*FILE\(* OR VariableValue=*SHELL\(* OR VariableValue=*CURL\(* OR VariableValue=*STAT\(* OR VariableValue=*DB\(*)
| search Configuration_live_dangerously="no" // Assuming this config can be logged or correlated
| table _time, SourceIp, UserName, ChannelId, VariableName, VariableValue, Configuration_live_dangerouslySigma
title: Asterisk ARI Dangerous Dialplan Function Call
id: 00000000-0000-0000-0000-000000000000
status: experimental
description: Detects attempts to call dangerous dialplan functions via ARI setChannelVar when live_dangerously is disabled.
author: SecBoard
date: 2024/01/01
logsource:
product: asterisk
service: logs
detection:
selection:
EventType: 'ARI_setChannelVar'
VariableValue|contains:
- 'FILE('
- 'SHELL('
- 'CURL('
- 'STAT('
- 'DB('
condition: selection
fields:
- SourceIp
- UserName
- ChannelId
- VariableName
- VariableValue
tags:
- attack.privilege_escalation
- cve.2026.57202Elastic ES|QL
from asterisk_logs
| where event.type == "ARI_setChannelVar"
| where message : ("FILE(", "SHELL(", "CURL(", "STAT(", "DB(")
| where asterisk.config.live_dangerously == "no" // Assuming this config can be logged or correlated
| select @timestamp, source.ip, user.name, asterisk.channel.id, asterisk.variable.name, asterisk.variable.value, asterisk.config.live_dangerouslySecBoard-generated · behavioral · requires customization — Von SecBoard erzeugt und nicht in einer Zielumgebung validiert. Vor dem Einsatz an die eigene Protokollierung anpassen.
Indikatoren
Datei-Hashes (6)
- 8f8ccaf70a80e518147b0c35c0c252de4735446f
- 92a5dd1003b737ae1cd2df4e60b73beb8d5e42bb
- ba04e7f1f98887c3c6e0dc4ddce663021f7e948a
- bf9354267557ef6d6b75f5304faa243f595a5a66
- caa4d50d9c3bf04fc979b5b2cdc5dc425772d845
- d47b0b6e5a384746db194f751b53d559aba8dba9
Übernommen wurden nur Indikatoren, die wörtlich in einer Hersteller- oder Research-Quelle standen.
Ausgewertete Quellen
- https://github.com/asterisk/asterisk/commit/8f8ccaf70a80e518147b0c35c0c252de4735446f
- https://github.com/asterisk/asterisk/commit/92a5dd1003b737ae1cd2df4e60b73beb8d5e42bb
- https://github.com/asterisk/asterisk/commit/ba04e7f1f98887c3c6e0dc4ddce663021f7e948a
- https://github.com/asterisk/asterisk/commit/bf9354267557ef6d6b75f5304faa243f595a5a66
- https://github.com/asterisk/asterisk/commit/caa4d50d9c3bf04fc979b5b2cdc5dc425772d845
- https://github.com/asterisk/asterisk/commit/d47b0b6e5a384746db194f751b53d559aba8dba9
Referenzen
- https://github.com/asterisk/asterisk/commit/8f8ccaf70a80e518147b0c35c0c252de4735...
- https://github.com/asterisk/asterisk/commit/92a5dd1003b737ae1cd2df4e60b73beb8d5e...
- https://github.com/asterisk/asterisk/commit/ba04e7f1f98887c3c6e0dc4ddce663021f7e...
- https://github.com/asterisk/asterisk/commit/bf9354267557ef6d6b75f5304faa243f595a...
- https://github.com/asterisk/asterisk/commit/caa4d50d9c3bf04fc979b5b2cdc5dc425772...
- https://github.com/asterisk/asterisk/commit/d47b0b6e5a384746db194f751b53d559aba8...
- https://github.com/asterisk/asterisk/commit/d8614505b27688dec3a1d14554f52fda9471...
- https://github.com/asterisk/asterisk/releases/tag/20.20.1
- https://github.com/asterisk/asterisk/releases/tag/21.12.3
- https://github.com/asterisk/asterisk/releases/tag/22.10.1