CVE-2026-54710

FreePBX: Authenticated Superfecta Arbitrary PHP Code Execution (RCE via Unsafe File Inclusion)

Published Sep 28, 2026 CVSS 4.0 · 8.6 High EPSS < 1% KEV · Not listed
Description
FreePBX is an open source IP PBX. Prior to versions 16.0.40 and 17.0.7, a critical remote code execution (RCE) vulnerability exists in the superfecta module due to unsafe inclusion of arbitrary PHP files, allowing authenticated attackers to execute arbitrary PHP code on the server with the privileges of the web server user. Authentication with a known username is required. The vulnerability is rooted in the options and save_options cases in the Superfecta module's AJAX handler. The code dynamically includes PHP files from the sources/ directory based on user-supplied input. This allows an attacker to execute arbitrary code when combined with arbitrary directory creation (e.g., via the backup module) and file uploads that reveal full paths (e.g., via the soundlang module). This issue has been patched in versions 16.0.40 and 17.0.7.

Analysis

AI-generated

Technical impact

An authenticated attacker can execute arbitrary PHP code on the FreePBX web server by exploiting unsafe file inclusion within the Superfecta module. The vulnerability allows the attacker to control the server process using the web server user’s privileges, posing a severe threat to confidentiality, integrity, and availability of the PBX system.

Affected Systems

FreePBX installations running Superfecta prior to version 16.0.40 or 17.0.7 are affected. The flaw is present in the module’s AJAX handler, specifically the options and save_options cases, which improperly include PHP files supplied by user input from the sources/ directory.

Risk and Exploitability

The CVSS score of 8.6 indicates high severity. EPSS is not available, so the current likelihood of exploitation is unknown, but the vulnerability is not listed in the CISA KEV catalog. Exploitation requires authentication with a known username and the ability to influence file paths—attacks typically combine the creation of arbitrary directories (via the backup module) and disclosure of full file paths (via the soundlang module).

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade FreePBX to version 16.0.40 or 17.0.7 to apply the vendor patch.
  • Disable or restrict the backup and soundlang modules to prevent arbitrary directory creation and path disclosure, thereby blocking the exploitation chain.
  • Revoke or limit Superfecta module access to trusted administrators, ensuring least‑privilege access and preventing unauthorised use of the vulnerable functionality.

Generated by OpenCVE AI on September 28, 2026 at 18:36 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': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Freepbx
Freepbx security-reporting
Vendors & Products Freepbx
Freepbx security-reporting
Type Values Removed Values Added
Description FreePBX is an open source IP PBX. Prior to versions 16.0.40 and 17.0.7, a critical remote code execution (RCE) vulnerability exists in the superfecta module due to unsafe inclusion of arbitrary PHP files, allowing authenticated attackers to execute arbitrary PHP code on the server with the privileges of the web server user. Authentication with a known username is required. The vulnerability is rooted in the options and save_options cases in the Superfecta module's AJAX handler. The code dynamically includes PHP files from the sources/ directory based on user-supplied input. This allows an attacker to execute arbitrary code when combined with arbitrary directory creation (e.g., via the backup module) and file uploads that reveal full paths (e.g., via the soundlang module). This issue has been patched in versions 16.0.40 and 17.0.7.
Title FreePBX: Authenticated Superfecta Arbitrary PHP Code Execution (RCE via Unsafe File Inclusion)
Weaknesses CWE-20
CWE-94
References
Metrics cvssV4_0

{'score': 8.6, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-20

    Improper Input Validation

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 29, 2026, 3:33 PM
Reserved
Jun 15, 2026, 10:58 PM
Status
Analyzed
Published
Sep 28, 2026, 6:17 PM
Modified
Oct 16, 2026, 6:16 PM