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

- Severity: High 7.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 31% of CVEs (2026-12-01)
- Published: 2026-09-28T17:36:08.431Z
- Modified: 2026-10-16T18:22:24.560Z
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- FreePBX security-reporting: < 16.0.4; < 17.0.6
- sangoma freepbx: from 16.0 before 16.0.4; from 17.0 before 17.0.6

## Every score

- GitHub_M: CVSS:4.0 7.7 High `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`
- NVD: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/FreePBX/security-reporting/security/advisories/GHSA-4g6v-whq9-944g> (mitigation, vendor-advisory)

## Sources

- CVE List: [CVE-2026-45562](https://www.cve.org/CVERecord?id=CVE-2026-45562), CVE Terms of Use, modified 2026-09-28
- NVD: [CVE-2026-45562](https://nvd.nist.gov/vuln/detail/CVE-2026-45562), Public domain, modified 2026-10-16

---

Page: https://cve.day/CVE-2026-45562 · Whole record: https://cve.day/CVE-2026-45562.json · Rebuilt by cve.day 2026-11-25T22:59:41.365Z
