CVE-2025-47780
Linux Debian vulnerability analysis and mitigation

Overview

CVE-2025-47780 affects Asterisk, an open-source private branch exchange (PBX) system. The vulnerability was discovered in versions prior to 18.26.2, 20.14.1, 21.9.1, and 22.4.1 of Asterisk and versions prior to 18.9-cert14 and 20.7-cert5 of certified-asterisk. The issue involves a security bypass in the CLI permissions configuration that fails to properly restrict shell command execution. The vulnerability was disclosed on May 22, 2025 (GitHub Advisory).

Technical details

The vulnerability stems from a flaw in the CLI permissions configuration system where attempts to disallow shell commands through the cli_permissions.conf file (using configurations like deny=!*) are ineffective. The root cause is in main/asterisk.c:remoteconsolehandler() and consolehandler(), where astsafesystem is executed immediately, bypassing the cli.c:clihaspermissions() check. The vulnerability has been assigned a CVSS v4.0 base score of 4.8 (Medium) with the vector string CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N (GitHub Advisory).

Impact

When exploited, this vulnerability allows users to execute shell commands via the Asterisk CLI even when explicitly denied through configuration. This bypass of security controls could lead to unauthorized command execution within the system's context, potentially compromising system security. The impact is particularly significant for administrators who rely on cli_permissions.conf to enforce command restrictions (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in Asterisk versions 18.26.2, 20.14.1, 21.9.1, and 22.4.1, and in certified-asterisk versions 18.9-cert14 and 20.7-cert5. Users should upgrade to these patched versions to address the security issue (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management