Description
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.
Published: 2026-09-28
Score: 7.7 High
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

The FreePBX Music on Hold (MoH) module accepts a POST parameter that defines a custom Asterisk application. The module stores this input in the database without sanitization and later writes it directly to musiconhold_additional.conf. Since Asterisk reads this configuration file and executes the specified application, an attacker who can authenticate with an existing FreePBX administrator account can inject arbitrary system commands that are executed with Asterisk’s privileges. This flaw provides a direct remote code execution path from an authenticated web interface to the underlying operating system.

Affected Systems

FreePBX installations running any version prior to 16.0.4 or 17.0.6 are affected. The vulnerability is present in the FrePBX Music on Hold module and is fixed in the specified later releases.

Risk and Exploitability

The flaw carries a CVSS score of 7.7, indicating moderate to high severity. Exploitation requires a valid administrator login, meaning the attacker must first compromise or have access to legitimate credentials. Once authenticated, the attacker can send a crafted POST request to the MoH module and trigger arbitrary command execution via Asterisk. No EPSS score is available, and the issue is not listed in the CISA KEV catalog, but the critical nature of RCE combined with elevated privileges makes the risk significant.

Generated by OpenCVE AI on September 28, 2026 at 18:24 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade FreePBX to version 16.0.4 or later, or 17.0.6 or later to apply the vendor‑provided patch.
  • If an upgrade cannot be performed immediately, revoke or reset credentials for all administrator accounts that may have been compromised and restrict administrative access to trusted users only.
  • As a temporary safeguard, review musiconhold_additional.conf to remove any unexpected custom application entries and consider implementing input validation to prevent future unsanitized data from being stored.

Generated by OpenCVE AI on September 28, 2026 at 18:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 16 Oct 2026 18:30:00 +0000

Type Values Removed Values Added
First Time appeared Sangoma
Sangoma freepbx
CPEs cpe:2.3:a:sangoma:freepbx:*:*:*:*:*:*:*:*
Vendors & Products Sangoma
Sangoma freepbx
Metrics cvssV3_1

{'score': 7.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H'}


Mon, 28 Sep 2026 19:30:00 +0000

Type Values Removed Values Added
First Time appeared Freepbx
Freepbx security-reporting
Vendors & Products Freepbx
Freepbx security-reporting
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Mon, 28 Sep 2026 17:45:00 +0000

Type Values Removed Values Added
Description 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.
Title FreePBX: Authenticated Remote Code Execution in FreePBX Music on Hold (MoH) Module
Weaknesses CWE-78
References
Metrics cvssV4_0

{'score': 7.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Freepbx Security-reporting
Sangoma Freepbx
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-28T18:37:05.448Z

Reserved: 2026-05-12T19:00:14.599Z

Link: CVE-2026-45562

cve-icon Vulnrichment

Updated: 2026-09-28T18:37:01.072Z

cve-icon NVD

Status : Analyzed

Published: 2026-09-28T18:17:21.947

Modified: 2026-10-16T18:22:24.560

Link: CVE-2026-45562

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-28T19:15:05Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')