Bug 2368043 (CVE-2025-47780)

Summary: CVE-2025-47780 asterisk: cli_permissions.conf: deny option does not work for disallowing shell commands
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedKeywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2025-05-22 18:01:23 UTC
Asterisk is an open-source private branch exchange (PBX). Prior to 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, trying to disallow shell commands to be run via the Asterisk command line interface (CLI) by configuring `cli_permissions.conf` (e.g. with the config line `deny=!*`) does not work which could lead to a security risk. If an administrator running an Asterisk instance relies on the `cli_permissions.conf` file to work and expects it to deny all attempts to execute shell commands, then this could lead to a security vulnerability. 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 fix the issue.