FreePBX Vulnerabilities Enables Authentication Bypass that Leads Remote Code Execution
## Cybersecurity: FreePBX Vulnerabilities and Mitigation
Cybersecurity: FreePBX Vulnerabilities and Mitigation
FreePBX has addressed critical vulnerabilities in its Endpoint Manager module that allowed for authentication bypass and remote code execution. These issues, identified by Horizon3.ai researchers, affect telephony endpoint configurations in the open-source IP PBX system.
Researchers discovered three high-severity vulnerabilities:
CVE-2025-66039: Allows authentication bypass when the "webserver" authorization type is enabled, permitting forged Basic Auth headers to access protected endpoints. CVE-2025-61675: Involves multiple SQL injections across various endpoints, affecting 11 parameters for database read/write access. CVE-2025-61678: Enables arbitrary file uploads via the firmware endpoint, allowing PHP webshell deployment for command execution.
The vulnerabilities collectively enable unauthenticated attackers to execute arbitrary code on vulnerable instances, posing significant risks to business communication infrastructure.
The authentication bypass vulnerability (CVE-2025-66039) affects FreePBX deployments configured with webserver-type authentication. Attackers can forge an Authorization header with Basic HTTP authentication credentials, bypassing security checks that rely on Apache-level verification.
FreePBX has addressed critical vulnerabilities in its Endpoint Manager module that allowed for authentication bypass and remote code execution.
The second vulnerability (CVE-2025-61675) involves SQL injection, affecting four unique endpoints and eleven parameters, allowing attackers to read, modify, or delete database entries. These SQL injections enable malicious actors to insert administrative users into the ampusers table or execute operating system commands through the cron_jobs table.
The third vulnerability (CVE-2025-61678) involves an arbitrary-file-upload vulnerability in the firmware upload functionality. Attackers can manipulate file paths and upload PHP webshells without proper validation, resulting in unauthenticated remote code execution.
FreePBX has released patches addressing all three vulnerabilities. Organizations using versions 16.x or 17.x should update immediately to:
Version 16.0.92 and 17.0.6 for SQL injection and file upload issues. Version 16.0.42 and 17.0.22 for the authentication bypass.
Additionally, FreePBX has removed the web server authentication option from the UI, requiring manual configuration via the command line, and now triggers dashboard warnings when enabled.
Horizon3.ai researchers recommend auditing FreePBX instances for suspicious database entries, unauthorized users in the ampusers table, and suspicious files in the /var/www/html directory. They advise against using web server authentication due to its reliance on legacy code and weaker security mechanisms.
For further details and guidance, consult the official FreePBX documentation and ensure all systems are promptly updated.
Based on reporting by Cyber Security News.
