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 26 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 (26)

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
mistral-large-3 · 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
mistral-large-3 · 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
mistral-large-3 · 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
mistral-large-3 · 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
mistral-large-3 · 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
mistral-large-3 · 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
mistral-large-3 · 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
mistral-large-3 · 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)
mistral-large-3 · 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
mistral-large-3 · analyzed Feb 16, 2026 Full analysis →
github WORKING POC
by TeteREN · pythonremote
https://github.com/TeteREN/CVE-2025-57819-RCE

This exploit chains two vulnerabilities in FreePBX 16: CVE-2025-57819 (unauthenticated stacked SQL injection in the Endpoint module loader) and CVE-2025-61678 (authenticated arbitrary file upload with path traversal). It creates an admin user via SQLi, logs in, and uploads a PHP webshell to achieve RCE.

Classification
Working Poc 99%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: FreePBX 16 (Endpoint module version < 16.0.92)
No auth needed
Prerequisites: Target must be running FreePBX 16 with vulnerable Endpoint module · Network access to the FreePBX admin panel (default ports 80/443) · For reverse shell: attacker-controlled listener
mistral-large-3 · analyzed Aug 01, 2026 Full analysis →
nomisec WORKING POC
by Neobee714 · remote
https://github.com/Neobee714/CVE-2025-57819-POC

This repository contains a functional exploit for CVE-2025-57819, a pre-authentication SQL injection vulnerability in FreePBX that chains with cron job injection to achieve remote code execution via a PHP webshell. The exploit demonstrates the full attack chain with detailed technical implementation.

Classification
Working Poc 98%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: FreePBX (unauthenticated)
No auth needed
Prerequisites: Target must have cron jobs enabled · Web server must have write access to webroot (/var/www/html/) · FreePBX version vulnerable to CVE-2025-57819
mistral-large-3 · analyzed Jul 20, 2026 Full analysis →
nomisec WRITEUP
by Samik-Parajuli · poc
https://github.com/Samik-Parajuli/htb-connected-writeup

This repository provides a detailed technical walkthrough of exploiting CVE-2025-57819 in FreePBX 16, including reconnaissance, vulnerability discovery, initial foothold via reverse shell, and privilege escalation via incron misconfiguration. The writeup demonstrates deep technical understanding of the attack chain and post-exploitation steps.

Classification
Writeup 99%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: FreePBX 16
No auth needed
Prerequisites: Network access to target · FreePBX 16 installation · Basic Linux enumeration tools
mistral-large-3 · analyzed Jul 14, 2026 Full analysis →
github WORKING POC
by K3ysTr0K3R · pythonremote
https://github.com/K3ysTr0K3R/CVE-2025-57819

This repository contains a functional exploit for CVE-2025-57819, a critical unauthenticated SQL injection vulnerability in Sangoma FreePBX (versions 15.x, 16.x, 17.x) leading to remote code execution via cron job injection. The exploit validates the SQLi, injects a reverse shell payload into the cron schedule, and establishes an interactive session.

Classification
Working Poc 98%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Sangoma FreePBX versions 15.x, 16.x, 17.x (prior to patched releases)
No auth needed
Prerequisites: Network access to the FreePBX admin interface · Target must have cron jobs enabled · Outbound connectivity from target to attacker's listener
mistral-large-3 · analyzed Jul 03, 2026 Full analysis →
github WORKING POC
by Its1Zero · pythonremote
https://github.com/Its1Zero/cve-2025-57819-exploit

This repository contains a functional exploit for CVE-2025-57819, targeting an unauthenticated SQL injection in FreePBX's endpoint module. The exploit injects a malicious cron job to achieve remote code execution via a reverse shell.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: FreePBX (endpoint module) < 15.0.66, < 16.0.89, and < 17.0.3
No auth needed
Prerequisites: Vulnerable FreePBX instance · Network access to target · Listener setup for reverse shell
mistral-large-3 · analyzed Jul 02, 2026 Full analysis →
github STUB
by JazzTheRabbit · remote
https://github.com/JazzTheRabbit/FreePBX-SQLi-RCE

The repository contains only a minimal README with a CVE title and no functional exploit code, technical details, or proof-of-concept implementation. It appears to be a placeholder without substantive content.

Classification
Stub 90%
Attack Type
Sqli
Complexity
Theoretical
Reliability
Theoretical
Target: FreePBX (version unspecified)
No auth needed
mistral-large-3 · analyzed Jun 24, 2026 Full analysis →
github WORKING POC
by ozcanpng · pythonremote
https://github.com/ozcanpng/CVE-2025-57819-FreePBX-RCE2Root

This repository contains a functional exploit for CVE-2025-57819, demonstrating an unauthenticated SQL injection in FreePBX's endpoint module that chains into a root shell via cron job injection and incron privilege escalation.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: FreePBX (endpoint module)
No auth needed
Prerequisites: Target running FreePBX with endpoint module · Network access to the target
mistral-large-3 · analyzed Jun 19, 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
mistral-large-3 · 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
mistral-large-3 · 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
mistral-large-3 · 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)
mistral-large-3 · 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
mistral-large-3 · 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)
mistral-large-3 · 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
mistral-large-3 · 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
mistral-large-3 · 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
mistral-large-3 · 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.8827
EPSS Percentile 99.8%
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