SecurityContext

CVE-2026-45562: FreePBX - Command Injection

  • Cve: CVE-2026-45562
  • Name: FreePBX - Command Injection
  • 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.
  • Impact: Authenticated attackers can execute arbitrary system commands with Asterisk service privileges, potentially compromising the entire system.
  • Remediation: Upgrade to versions 16.0.4 or 17.0.6 or later.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: logged_in
  • Requirements: Attacker must have an existing FreePBX administrator account
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.2
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.0036
  • Epss percentile: 0.30406
  • Assignee: [email protected]
  • Published at: 2026-09-28T18:17:21Z
  • Age in days: 57
  • Modified at: 2026-10-16T18:22:24Z
  • Patch available: yes
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-45562
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-78Improper Neutralization of Special Elements used in an OS Command

References

UrlSourceTags
https://github.com/FreePBX/security-reporting/security/advisories/GHSA-4g6v-whq9-944gnvdMitigation, Vendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
sangoma:freepbx>= 17.0, < 17.0.6; >= 16.0, < 16.0.4nonvd/v1/products/sangoma/freepbx

Projects

RepositoryLink kindsIndexedUrl
FreePBX/security-reportingsecurity_advisoryyes/v1/repositories/FreePBX/security-reporting

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Exposed hosts: 11277
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports