CVE-2026-45562: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in FreePBX security-reporting
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.
AI Analysis
Technical Summary
CVE-2026-45562 is an OS command injection vulnerability (CWE-78) in the FreePBX Music on Hold module. The module accepts a POST parameter defining a custom Asterisk application, which is stored in the database without sanitization. This data is then written directly to the musiconhold_additional.conf configuration file without validation. Since Asterisk reads and executes commands from this configuration file, an attacker with authenticated administrator access can execute arbitrary system commands with the privileges of the Asterisk service. The vulnerability affects FreePBX versions prior to 16.0.4 and 17.0.6 and has been fixed in these versions.
Potential Impact
An authenticated attacker with administrator privileges can execute arbitrary system commands on the underlying host with the permissions of the Asterisk service. This could lead to full system compromise depending on the privileges of the Asterisk service. The vulnerability requires valid administrator credentials but does not require user interaction beyond authentication.
Mitigation Recommendations
Apply the official patches by upgrading FreePBX to version 16.0.4 or later, or 17.0.6 or later. These versions contain the fix that properly sanitizes and validates the POST parameter before writing to the configuration file. No other mitigation is indicated by the vendor advisory.
CVE-2026-45562: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in FreePBX security-reporting
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.
CVSS v4.0
Score 7.7high
Affected software
FreePBX
security-reporting
pkg:github/freepbx/security-reportingRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-45562 is an OS command injection vulnerability (CWE-78) in the FreePBX Music on Hold module. The module accepts a POST parameter defining a custom Asterisk application, which is stored in the database without sanitization. This data is then written directly to the musiconhold_additional.conf configuration file without validation. Since Asterisk reads and executes commands from this configuration file, an attacker with authenticated administrator access can execute arbitrary system commands with the privileges of the Asterisk service. The vulnerability affects FreePBX versions prior to 16.0.4 and 17.0.6 and has been fixed in these versions.
Potential Impact
An authenticated attacker with administrator privileges can execute arbitrary system commands on the underlying host with the permissions of the Asterisk service. This could lead to full system compromise depending on the privileges of the Asterisk service. The vulnerability requires valid administrator credentials but does not require user interaction beyond authentication.
Mitigation Recommendations
Apply the official patches by upgrading FreePBX to version 16.0.4 or later, or 17.0.6 or later. These versions contain the fix that properly sanitizes and validates the POST parameter before writing to the configuration file. No other mitigation is indicated by the vendor advisory.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-12T19:00:14.599Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6abab9fff7a7c54106139f10
Added to database: 09/28/2026, 19:03:27 UTC
Last enriched: 09/28/2026, 19:17:43 UTC
Last updated: 09/29/2026, 02:48:25 UTC
Views: 10
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.