CVE-2026-45562

FreePBX: Authenticated Remote Code Execution in FreePBX Music on Hold (MoH) Module

Published Sep 28, 2026 CVSS 4.0 · 7.7 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

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 available
History
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'}

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'}

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'}

Weaknesses
  • CWE-78

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

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 28, 2026, 6:37 PM
Reserved
May 12, 2026, 7:00 PM
Status
Analyzed
Published
Sep 28, 2026, 6:17 PM
Modified
Oct 16, 2026, 6:22 PM