CVE-2025-47780
Description
A flaw was found in Asterisk, the open-source private branch exchange (PBX), affecting versions prior to 18.26.2, 20.14.1, 21.9.1, and 22.4.1 (and certified-asterisk versions 18.9-cert14 and 20.7-cert5). The vulnerability stems from an improper implementation of cli_permissions.conf. Specifically, attempts to disallow shell command execution via the Asterisk command line interface (CLI) by configuring cli_permissions.conf (e.g., using deny=!*) do not function as intended.
If an administrator relies on this configuration to prevent arbitrary shell command execution, an authenticated attacker with CLI access could bypass these intended restrictions and execute arbitrary commands on the underlying system with the privileges of the Asterisk process. This could lead to a full system compromise, data exfiltration, or denial of service.
Versions 18.26.2, 20.14.1, 21.9.1, and 22.4.1 of Asterisk, and versions 18.9-cert14 and 20.7-cert5 of certified-asterisk, contain the fix for this issue.
Statement
Red Hat Product Security has determined that this vulnerability does not affect any currently supported Red Hat product. This assessment may evolve based on further analysis and discovery. For more information about this vulnerability and the products it affects, please see the linked references.
Understanding the Weakness (CWE)
Confidentiality,Integrity,Availability,Non-Repudiation
Technical Impact: Execute Unauthorized Code or Commands; DoS: Crash, Exit, or Restart; Read Files or Directories; Modify Files or Directories; Read Application Data; Modify Application Data; Hide Activities
Attackers could execute unauthorized operating system commands, which could then be used to disable the product, or read and modify data for which the attacker does not have permissions to access directly. Since the targeted application is directly executing the commands instead of the attacker, any malicious activities may appear to come from the application or the application's owner.
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.