module

FreePBX firmware file upload

Disclosed
Dec 11, 2025
Created
Jan 28, 2026

Description

The FreePBX versions prior to 16.0.44,16.0.92 and 17.0.6,17.0.23 are vulnerable to multiple CVEs, specifically CVE-2025-66039 and CVE-2025-61678, in the context of this module. The versions before 16.0.44 and 17.0.23 are vulnerable to CVE-2025-66039, while versions before 16.0.92 and 17.0.6 are vulnerable to CVE-2025-61678. The former represents an authentication bypass: when FreePBX uses Webserver Authorization Mode (an option the admin can enable), it allows an attacker to authenticate as any user. The latter allows unrestricted file uploads via firmware upload, including path traversal. These vulnerabilities allow unauthenticated remote code execution by bypassing authentication and placing a webshell in the web server's directory.

Authors

Noah King
msutovsky-r7

Platform

PHP

Architectures

php

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':


msf > use exploit/unix/http/freepbx_firmware_file_upload
msf exploit(freepbx_firmware_file_upload) > show targets
...targets...
msf exploit(freepbx_firmware_file_upload) > set TARGET < target-id >
msf exploit(freepbx_firmware_file_upload) > show options
...show and set options...
msf exploit(freepbx_firmware_file_upload) > exploit

Title
NEW

Explore Exposure Command

Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.