CVE-2025-57819

CRITICAL KEV NUCLEI LAB

FreePBX 15.0-15.0.65 - Unauthenticated Authentication Bypass and Remote Code Execution

Title source: llm
STIX 2.1

Exploitation Summary

CVE-2025-57819 is actively exploited and listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, added August 29, 2025. EIP tracks 19 public exploits from researchers including watchtowrlabs, cybertechajju, blueisbeautiful, including a Metasploit module exploits/unix/http/freepbx_unauth_sqli_to_rce. A Nuclei detection template is also available.

AI-analyzed exploit summary This PoC exploits CVE-2025-57819, a pre-auth RCE vulnerability in FreePBX, by leveraging SQL injection to either upload a PHP webshell or add a new user. It demonstrates the vulnerability by generating detection artifacts.

Description

FreePBX is an open-source web-based graphical user interface. FreePBX 15, 16, and 17 endpoints are vulnerable due to insufficiently sanitized user-supplied data allowing unauthenticated access to FreePBX Administrator leading to arbitrary database manipulation and remote code execution. This issue has been patched in endpoint versions 15.0.66, 16.0.89, and 17.0.3.

Exploits (19)

nomisec WORKING POC 9 stars
by watchtowrlabs · remote
https://github.com/watchtowrlabs/watchTowr-vs-FreePBX-CVE-2025-57819

This PoC exploits CVE-2025-57819, a pre-auth RCE vulnerability in FreePBX, by leveraging SQL injection to either upload a PHP webshell or add a new user. It demonstrates the vulnerability by generating detection artifacts.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: FreePBX < 15.0.66, < 16.0.89, < 17.0.3
No auth needed
Prerequisites: Network access to the FreePBX admin interface
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WRITEUP 6 stars
by cybertechajju · poc
https://github.com/cybertechajju/cve-2025-57819

This repository provides a writeup and Nuclei templates for detecting and validating CVE-2025-57819, an authentication bypass vulnerability in FreePBX. It includes a detection template and an exploit PoC template for creating a temporary admin user.

Classification
Writeup 90%
Attack Type
Auth Bypass
Complexity
Trivial
Reliability
Reliable
Target: FreePBX < 15.0.66, FreePBX < 16.0.89, FreePBX < 17.0.3
No auth needed
Prerequisites: Access to the target FreePBX instance · Nuclei toolkit
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 3 stars
by blueisbeautiful · poc
https://github.com/blueisbeautiful/CVE-2025-57819

This repository contains a functional exploit for CVE-2025-57819, a critical SQL injection vulnerability in FreePBX versions 15-17. The exploit demonstrates unauthenticated SQL injection leading to authentication bypass and potential RCE through webshell upload.

Classification
Working Poc 95%
Attack Type
Sqli
Complexity
Moderate
Reliability
Reliable
Target: FreePBX 15-17 (commercial endpoint module)
No auth needed
Prerequisites: Network access to target FreePBX instance · Vulnerable endpoint module installed
devstral-2 · analyzed May 12, 2026 Full analysis →
nomisec WORKING POC 3 stars
by fuckyourheroes · poc
https://github.com/fuckyourheroes/CVE-2025-57819

This repository contains a functional exploit for CVE-2025-57819, a critical SQL injection vulnerability in FreePBX versions 15-17. The exploit demonstrates unauthenticated SQL injection leading to authentication bypass and potential RCE through webshell upload.

Classification
Working Poc 95%
Attack Type
Sqli
Complexity
Moderate
Reliability
Reliable
Target: FreePBX 15-17 (commercial endpoint module)
No auth needed
Prerequisites: Network access to target FreePBX instance · Vulnerable endpoint module installed
devstral-2 · analyzed May 03, 2026 Full analysis →
nomisec WORKING POC 3 stars
by brokendreamsclub · infoleak
https://github.com/brokendreamsclub/CVE-2025-57819

This is a functional exploit for CVE-2025-57819, targeting a critical SQL injection vulnerability in FreePBX versions 15-17. The exploit includes time-based detection, database information extraction, and webshell upload capabilities.

Classification
Working Poc 95%
Attack Type
Sqli
Complexity
Moderate
Reliability
Reliable
Target: FreePBX 15-17 (commercial endpoint module)
No auth needed
Prerequisites: Network access to target FreePBX instance · Vulnerable endpoint module enabled
devstral-2 · analyzed Feb 16, 2026 Full analysis →
github WORKING POC 1 stars
by 0xEhab · pythonremote
https://github.com/0xEhab/FreePBX-CVE-2025-57819-RCE

This repository contains a functional exploit for CVE-2025-57819, which chains an unauthenticated SQL injection (CVE-2025-57819) with an authenticated file upload vulnerability (CVE-2025-61678) to achieve remote code execution on FreePBX 16. The exploit creates an admin user via SQL injection, logs in, and uploads a PHP webshell to gain RCE.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: FreePBX 16 (Endpoint module prior to 16.0.92)
No auth needed
Prerequisites: Network access to the target FreePBX instance · Python 3 with requests library
devstral-2 · analyzed Jun 07, 2026 Full analysis →
nomisec SCANNER 1 stars
by rxerium · poc
https://github.com/rxerium/CVE-2025-57819

This repository provides a Nuclei template to detect vulnerable FreePBX versions (16.0.0.0–16.0.88.19 or 17.0.0.0–17.0.2.31) affected by CVE-2025-57819, an unauthenticated privilege escalation/RCE vulnerability in the Endpoint Manager module.

Classification
Scanner 90%
Attack Type
Info Leak
Complexity
Trivial
Reliability
Reliable
Target: FreePBX (Endpoint Manager module)
No auth needed
Prerequisites: Publicly accessible FreePBX Administrator Control Panel
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 1 stars
by xV4nd3Rx · infoleak
https://github.com/xV4nd3Rx/CVE-2025-57819_FreePBX-PoC

This repository contains a Python-based SQL injection checker for CVE-2025-57819, targeting FreePBX's `/admin/ajax.php` endpoint. It employs error-based, boolean-based, and time-based techniques to detect SQLi vulnerabilities in the `template`, `model`, and `brand` parameters without modifying the database.

Classification
Working Poc 95%
Attack Type
Sqli
Complexity
Moderate
Reliability
Reliable
Target: FreePBX (version not specified)
No auth needed
Prerequisites: Access to the target FreePBX instance · Network connectivity to the `/admin/ajax.php` endpoint
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 1 stars
by ImBIOS · remote
https://github.com/ImBIOS/lab-cve-2025-57819

This repository provides a working proof-of-concept for CVE-2025-57819, an unauthenticated SQL injection vulnerability in FreePBX 15's `userman` AJAX endpoints, which can be chained to achieve remote code execution. It includes a Docker-based lab environment, a Nuclei template for detection, and scripts to validate the vulnerability.

Classification
Working Poc 95%
Attack Type
Sqli
Complexity
Moderate
Reliability
Reliable
Target: FreePBX 15
No auth needed
Prerequisites: Docker · Docker Compose · Nuclei (optional)
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WRITEUP 1 stars
by net-hex · poc
https://github.com/net-hex/CVE-2025-57819

This repository contains a detailed technical writeup for CVE-2025-57819, an SQL injection vulnerability in FreePBX that allows unauthenticated remote code execution. The writeup explains the root cause, attack flow, and indicators of compromise.

Classification
Writeup 95%
Attack Type
Sqli
Complexity
Moderate
Reliability
Reliable
Target: FreePBX 15, 16, and 17
No auth needed
Prerequisites: Exposed FreePBX instance · Network access to modular.php
devstral-2 · analyzed Feb 16, 2026 Full analysis →
github WORKING POC
by 0xyngtg · pythonpoc
https://github.com/0xyngtg/FreePBX-CVE-2025-57819-CVE-2025-61678

This repository contains a functional exploit PoC that chains CVE-2025-57819 (stacked SQL injection) and CVE-2025-61678 (authenticated file upload) to achieve Remote Code Execution (RCE) on FreePBX. The exploit first creates an admin account via SQLi, authenticates, and then uploads a PHP webshell for command execution.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: FreePBX (specific version not specified)
Auth required
Prerequisites: Network access to FreePBX admin interface · Valid credentials or ability to exploit SQLi to create an admin account
devstral-2 · analyzed Jun 12, 2026 Full analysis →
github WORKING POC
by YuvrajSHAD · pythonremote
https://github.com/YuvrajSHAD/FreePBX-CVE-2025-57819

This repository contains a functional exploit for CVE-2025-57819, an unauthenticated SQL injection vulnerability in FreePBX's endpoint module. The exploit chains SQLi to achieve RCE via cron job insertion and escalates to root via incron and fwconsole hooks.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: FreePBX (endpoint module)
No auth needed
Prerequisites: Network access to the target · Python 3 environment
devstral-2 · analyzed Jun 08, 2026 Full analysis →
nomisec WORKING POC
by jf-gondim · remote
https://github.com/jf-gondim/freepbx-endpoint-sqli-rce

This repository contains a functional exploit for CVE-2025-57819, demonstrating an unauthenticated SQL injection in FreePBX's Endpoint Manager module that leads to remote code execution via a cron-scheduled PHP webshell. The exploit injects a malicious cron job that writes a webshell to the web root, allowing command execution.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: FreePBX 17.x (unpatched)
No auth needed
Prerequisites: Network access to the target FreePBX instance · FreePBX 17.x (unpatched) with Endpoint Manager module enabled
devstral-2 · analyzed Jun 08, 2026 Full analysis →
github WORKING POC
by Jeanback1 · pythonremote
https://github.com/Jeanback1/CVE-2025-57819-exploit

This repository contains a functional exploit for CVE-2025-57819, an unauthenticated SQL injection in FreePBX's endpoint module leading to remote code execution via cron job injection. The exploit supports staged reverse shell and admin user creation modes.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Sangoma FreePBX 15, 16, 17 with endpoint module < 15.0.66 / < 16.0.89 / < 17.0.3
No auth needed
Prerequisites: Python 3.6+ · requests library · msfvenom (for staged mode)
devstral-2 · analyzed Jun 07, 2026 Full analysis →
github WORKING POC
by b4sh2 · pythonremote
https://github.com/b4sh2/CVE-2025-57819-poc

This repository contains a functional exploit for CVE-2025-57819, an unauthenticated SQL injection in FreePBX that leads to remote code execution via cron job manipulation. The exploit confirms the vulnerability, injects a reverse shell into the cron_jobs table, and establishes an interactive shell.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: FreePBX 15 < 15.0.66, 16 < 16.0.89, 17 < 17.0.3
No auth needed
Prerequisites: Network access to the target FreePBX instance · Python 3 with requests and urllib3 libraries
devstral-2 · analyzed Jun 07, 2026 Full analysis →
nomisec WORKING POC
by orange0Mint · remote
https://github.com/orange0Mint/CVE-2025-57819_FreePBX

This repository contains two Python PoC scripts for CVE-2025-57819, an unauthenticated SQL injection vulnerability in FreePBX. The scripts demonstrate admin user creation and credential extraction via SQLMap.

Classification
Working Poc 95%
Attack Type
Sqli
Complexity
Trivial
Reliability
Reliable
Target: FreePBX (versions ≤ 15.0.65, ≤ 16.0.88, ≤ 17.0.2)
No auth needed
Prerequisites: Python 3.x · requests library · sqlmap (for credential extraction)
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC
by MuhammadWaseem29 · infoleak
https://github.com/MuhammadWaseem29/SQL-Injection-and-RCE_CVE-2025-57819

This PoC demonstrates an unauthenticated SQL injection vulnerability in FreePBX versions 15, 16, and 17, leading to remote code execution. The exploit uses a crafted curl request to extract database user information, confirming the vulnerability.

Classification
Working Poc 95%
Attack Type
Sqli
Complexity
Trivial
Reliability
Reliable
Target: FreePBX versions 15, 16, and 17
No auth needed
Prerequisites: Network access to the target FreePBX instance
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec SCANNER
by Sucuri-Labs · poc
https://github.com/Sucuri-Labs/CVE-2025-57819-ioc-check

This repository provides a bash script to scan for indicators of compromise (IoCs) related to CVE-2025-57819, an authentication bypass vulnerability in FreePBX endpoint modules leading to SQL injection and RCE. The script checks for exploit artifacts, suspicious logs, and database entries.

Classification
Scanner 90%
Attack Type
Info Leak
Complexity
Trivial
Reliability
Reliable
Target: FreePBX with endpoint module < 15.0.66, < 16.0.89, or < 17.0.3
No auth needed
Prerequisites: Access to the target FreePBX server · Presence of exploit artifacts or logs
devstral-2 · analyzed Feb 16, 2026 Full analysis →
metasploit WORKING POC EXCELLENT
by Echo_Slow, Piotr Bazydlo, Sonny · rubypoc
https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/unix/http/freepbx_unauth_sqli_to_rce.rb

This Metasploit module exploits an unauthenticated SQL injection in FreePBX's ajax.php endpoint to achieve remote code execution by scheduling a cronjob via SQL injection. The exploit is reliable and includes cleanup functionality.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: FreePBX prior to versions 15.0.66, 16.0.89, and 17.0.3
No auth needed
Prerequisites: Network access to the target's FreePBX installation
devstral-2 · analyzed Feb 16, 2026 Full analysis →

Nuclei Templates (1)

FreePBX - Remote Code Execution
CRITICALby watchtowr,pussycat0x,DhiyaneshDk
Shodan: http.title:"freepbx" || http.favicon.hash:"-1908328911" || http.favicon.hash:"1574423538" || http.title:"freepbx administration"
FOFA: icon_hash="-1908328911" || icon_hash="1574423538" || title="freepbx administration" || title="freepbx"

Scores

CVSS v3 9.8
EPSS 0.8736
EPSS Percentile 99.7%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation active
Automatable yes
Technical Impact total

Details

CISA KEV 2025-08-29
VulnCheck KEV 2025-08-28
ENISA EUVD EUVD-2025-26123
CWE
CWE-288 CWE-89
Status published
Products (1)
sangoma/freepbx 15.0 - 15.0.66
Published Aug 28, 2025
KEV Added Aug 29, 2025
Tracked Since Feb 18, 2026