FreePBX Recordings Module Command Injection Vulnerability Allowing Remote Code Execution

Vulnerability

A command injection vulnerability has been identified in the FreePBX recordings module, affecting versions 16.0.17.2 prior to 16.0.20 and 17.0.2.4 prior to 17.0.5. This vulnerability allows authenticated users to inject arbitrary commands that are executed on the server via the Media handling subsystem. The flaw arises because user-supplied POST parameters, such as 'file' and 'filenames[]', are not properly sanitized before being passed to shell-executed operations. As a result, an attacker could exploit this vulnerability to execute commands on the underlying host, potentially gaining remote access as the 'asterisk' user.

Impact

Exploitation of this vulnerability allows authenticated users to execute arbitrary shell commands on the server, with the possibility of obtaining remote access as the 'asterisk' user.

Remediation

Users are advised to update the recordings module to the latest version. Additionally, access to the FreePBX Administration Control Panel should be restricted to authorized users, and hostile network access should be denied using the FreePBX Firewall module.

Added: Mar 5, 2026, 7:20 PM
Updated: Mar 5, 2026, 7:43 PM

Vulnerability Rating

Custom Algorithm
spread
4.5
impact
10.0
exploitability
4.0
remediation
7.9
relevance
3.5
threat
0.0
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.