FreePBX is an open source IP PBX. Prior to versions 16.0.4 and 17.0.6, the FreePBX Music on Hold (MoH) module contains a critical security flaw that allows authenticated attackers to execute arbitrary system commands with the privileges of the Asterisk service. Authentication with an existing FreePBX administrator account is required. The root cause lies in the fact that the module accepts a POST parameter that defines a custom Asterisk application, which is then stored in the database without any sanitization. Later, this data is written directly to the musiconhold_additional.conf configuration file without validation. Since Asterisk reads this configuration file and executes the specified application, an attacker can inject arbitrary commands that will be executed with Asterisk's permissions. This issue has been patched in versions 16.0.4 and 17.0.6.
Fix
Patch, vendor advisory and mitigation references on NVD 1
- https://github.com/FreePBX/security-reporting/security/advisories/GHSA-4g6v-whq9-944g Mitigation, Vendor Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 7.7 · sangomaNVD modified 2026-10-16 18:22
Affected (CPE criteria) 1
cpe:2.3:a:sangoma:freepbx:*:*:*:*:*:*:*:*
References 1
- https://github.com/FreePBX/security-reporting/security/advisories/GHSA-4g6v-whq9-944g Mitigation, Vendor Advisory