CVE-2026-45562: FreePBX: Authenticated Remote Code Execution in FreePBX Music on Hold (MoH) Module

Published Sep 28, 2026
·
Updated

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

Affected Software

1 affected component
FreePBX Music on Hold (MoH) module<16.0.4, <17.0.6

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade FreePBX Music on Hold (MoH) module to a version that resolves this vulnerability.

    Fixed in 16.0.4
  2. Upgrade

    Upgrade FreePBX Music on Hold (MoH) module to a version that resolves this vulnerability.

    Fixed in 17.0.6

Event History

Sep 28, 2026
CVE Published
via MITRE·05:36 PM
Data Sourced
via MITRE·05:36 PM
DescriptionWeakness
Data Sourced
via NVD·06:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue?

An attacker needs an existing FreePBX administrator account. Successful exploitation allows commands to run with the privileges of the Asterisk service.

2

Which versions contain the fix?

The issue is patched in FreePBX versions 16.0.4 and 17.0.6. Versions prior to those releases are affected.

3

What component and workflow are involved in exploitation?

The vulnerable component is the FreePBX Music on Hold module. An authenticated administrator can submit a custom Asterisk application through a POST parameter; the value is stored and later written into musiconhold_additional.conf, where Asterisk executes it.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203