Asterisk
cli_permissions.conf: deny option does not work for disallowing shell commands
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 18.9-cert14
- >= 18.10, < 18.26.2
- >= 20.0, < 20.7-cert5
- >= 20.8, < 20.14.1
- >= 21.0, < 21.9.1
- >= 22.0, < 22.4.1
Fixed in 18.9-cert14, 18.26.2, 20.7-cert5, 20.14.1, 21.9.1, 22.4.1
Mitigation
Upgrade asterisk to 18.9-cert14 or 18.26.2 or 20.7-cert5 or 20.14.1 or 21.9.1 or 22.4.1 or later.
References
- Vendor advisory github.com/asterisk/asterisk/security/advisori…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.