Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2025-57819: Pre-authentication SQL Injection in FreePBX Endpoint Manager

Published Aug 28, 2025 · Updated 25 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days2 mentions · peak 2 in a dayToday
CVSS10.0Critical · v4
EPSS95.6%100th percentile
CISA KEVYesAdded Aug 29, 2025
In the wildActivePer CISA KEV
Vendor
Sangoma Technologies Corporation
IdentifiersCVE-2025-57819CWE-89 · Improper Neutralization of Special…

CVE-2025-57819 is a pre-authentication SQL injection vulnerability in the commercial Endpoint Manager module of Sangoma FreePBX 15, 16, and 17. Insufficient sanitization of user-supplied input allows remote attackers to manipulate database queries, bypass authentication to the Administrator Control Panel, and achieve remote code execution. Exploitation can abuse database-backed scheduled tasks to execute attacker-controlled commands. Additional exploitation steps can potentially provide root-level access. The vulnerability was actively exploited on or before August 21, 2025. Fixed Endpoint module versions are 15.0.66, 16.0.89, and 17.0.3.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation compromises the confidentiality, integrity, and availability of the PBX system through unauthorized administrator access, arbitrary database reads and modifications, and remote code execution. Attackers can alter call routing and other telephony settings, access sensitive information and credentials, deploy persistent backdoors, and disrupt communications. Compromised systems can support toll fraud and further network intrusion. Root-level compromise is possible through additional exploitation steps.

Mitigation

If you can’t patch tonight, do this now.

Remove direct public access to the Administrator Control Panel. Restrict management access to trusted IP addresses through firewall rules and access-control lists, preferably behind a VPN or isolated management network. Monitor exposed systems for unauthorized administrator accounts, database changes, scheduled tasks, webshells, and suspicious call activity. For suspected compromise, isolate the PBX or tightly restrict its network access pending investigation. Carrier-side registration IP restrictions, destination blocks, spending limits, and anomaly alerts can reduce downstream toll-fraud exposure.

Remediation

Patch, then assume compromise.

Update the FreePBX Endpoint module to version 15.0.66, 16.0.89, or 17.0.3, as appropriate for the installed branch, or a later supported release. Verify the installed module version and security-update status rather than relying solely on update notifications. Investigate previously exposed systems for compromise: the patch prevents new exploitation but does not remove an existing infection. If compromise is detected, isolate the system, preserve evidence, and rebuild from a clean image or verified clean backup where possible. Remove unauthorized persistence and accounts, then rotate exposed telephony, administrator, host, database, and other service credentials after the environment is clean.

Public exploits

Exploits

25 exploits validated by Mallory's analysis. Hidden: 13 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.

View more in app →
freepbx_unauth_sqli_to_rce.rbThis repository contains a single Metasploit module (Ruby file) that exploits an unauthenticated SQL injection vulnerability (CVE-2025-57819) in FreePBX versions prior to 15.0.66, 16.0.89, and 17.0.3. The vulnerability is present in the /admin/ajax.php endpoint, which is accessible without authentication. The exploit leverages SQL injection to insert a malicious cronjob into the FreePBX database, which is then executed by the system, allowing arbitrary command execution (remote code execution) as the database user. The module supports customizable payloads, with the default being a reverse shell (meterpreter). The exploit includes a check method to determine if the target is vulnerable, an exploit method to deliver the payload, and a cleanup method to remove the malicious cronjob after exploitation. The code is weaponized, operational within the Metasploit framework, and targets Linux systems running vulnerable FreePBX installations.Disclosed Aug 28, 2025 · Framework: metasploit · ruby · networkWeaponizedCVE-2025-57819This repository contains a single exploit script (exploit.py) targeting CVE-2025-57819, a critical unauthenticated SQL injection vulnerability in the commercial 'endpoint' module of FreePBX versions 15-17. The exploit is written in Python and is executed via the command line, taking a target URL as its argument. The script first checks the accessibility of the target, then attempts to detect the vulnerability by sending time-based SQL injection payloads to several known endpoints. If the target is found to be vulnerable, the script proceeds to extract database information, upload a PHP webshell to the server, and establish persistence. The attacker is then provided with an interactive shell interface for remote command execution. The exploit is operational and provides a working attack chain from detection to post-exploitation. The main fingerprintable endpoints are the FreePBX AJAX endpoints used for the SQL injection. The repository is structured simply, with a README, LICENSE, and the main exploit script.brokendreamsclub · Disclosed Sep 1, 2025 · python · networkOperationalCVE-2025-57819This repository contains a single Python exploit script (exploit.py) targeting CVE-2025-57819, a critical unauthenticated SQL injection vulnerability in the commercial 'endpoint' module of FreePBX versions 15-17. The exploit works by sending crafted POST requests to specific FreePBX endpoints to test for and exploit SQL injection. Upon confirming the vulnerability, it extracts database information, uploads a PHP webshell to the target server, and provides an interactive shell for remote command execution. The script is operational and automates the full attack chain from detection to post-exploitation. The README provides basic usage instructions, and the LICENSE is MIT. The main entry point is exploit.py, which is invoked with the target URL as an argument. The exploit is not part of a framework and is a standalone operational exploit.blueisbeautiful · Disclosed Sep 1, 2025 · python · networkOperationalAshwesker-CVE-2025-57819This repository contains a critical exploit for CVE-2025-57819, a SQL injection vulnerability in FreePBX versions 15-17 (prior to 15.0.66, 16.0.89, and 17.0.3) affecting the commercial 'endpoint' module. The main exploit script ('Blackash-CVE-2025-57819') is a Python 3 tool that performs unauthenticated SQL injection via specific FreePBX endpoints, allowing authentication bypass and remote code execution (RCE). The script checks for vulnerability by sending time-based SQLi payloads to endpoints such as '/admin/ajax.php?module=userman&command=checkPasswordReminder' and '/ucp/ajax.php?module=userman&command=checkPasswordReminder'. Upon successful exploitation, it uploads a persistent webshell and provides an interactive shell for the attacker. The repository also includes a Nuclei YAML template ('CVE-2025-57819.yaml') for detection of vulnerable FreePBX instances, and a detailed README with background, indicators of compromise, mitigation steps, and usage instructions. The exploit is operational, providing a working attack chain from detection to RCE, and is intended for use against network-accessible FreePBX servers.Ashwesker · Disclosed Sep 8, 2025 · python · yaml · networkOperationalCVE-2025-57819-pocThis repository is a small, focused exploit repo containing 2 files: a README and a single Python exploit script. The code is a one-shot unauthenticated exploit for CVE-2025-57819 affecting FreePBX Endpoint Manager. It chains an error-based SQL injection in the unauthenticated AJAX handler at /admin/ajax.php into remote code execution by inserting a malicious row into the FreePBX cron_jobs database table. The exploit structure is straightforward: exploit.py defines helper output functions, a Linux-specific interface IP discovery routine, a FreePBXExploit class implementing the SQLi primitive, and a main routine that orchestrates exploitation. The SQLi primitive sends GET requests to /admin/ajax.php with module=FreePBX\modules\endpoint\ajax, command=model, template=x, model=model, and a malicious brand parameter. It uses EXTRACTVALUE-based error extraction to leak query results in chunks, first to confirm vulnerability by reading VERSION(), then to verify that a malicious cron_jobs row was inserted. For code execution, the script builds a bash reverse-shell command and injects it via a stacked INSERT INTO cron_jobs statement. It then starts a local TCP listener, waits for the target's cron subsystem to execute the row, accepts the callback, attempts a PTY upgrade using python3 and /bin/bash, and finally removes the cron job with a stacked DELETE query. This makes the exploit operational rather than a mere PoC: it includes end-to-end exploitation, callback handling, shell interaction, and cleanup. There are no hardcoded victim IPs or external C2 servers in the code. The main network target is the user-supplied FreePBX base URL, while the callback destination is attacker-controlled via --ip/--interface and --port. The README also documents additional files that are not present in this analyzed snapshot, so the actual repository contents here are limited to the main exploit and documentation.b4sh2 · Disclosed Jun 6, 2026 · python · markdown · web · networkOperationalFreePBX-CVE-2025-57819-RCEThis repository is a compact two-file exploit PoC for chaining two FreePBX vulnerabilities into unauthenticated remote code execution. The structure is simple: README.md documents the attack chain, affected versions, and usage examples; exploit.py contains the full exploit logic and is the sole executable entry point. The Python exploit targets FreePBX 16 and automates a four-stage attack. First, it sends unauthenticated GET requests to /admin/ajax.php with crafted parameters module=FreePBX\modules\endpoint\ajax, command=model, template=x, model=model, and a malicious brand value containing stacked SQL. That SQL deletes any prior matching username and inserts a new administrator directly into the asterisk.ampusers table with wildcard section access. Second, it authenticates to /admin/config.php using the newly created credentials. Third, it abuses the authenticated Endpoint Manager firmware upload handler at /admin/ajax.php?module=endpoint&command=upload_cust_fw by supplying fwbrand=../../../var/www/html/<random_dir>, causing path traversal out of the firmware directory and writing a PHP webshell into the web root. The exploit sets a Referer header to /admin/config.php?display=epm_advanced to satisfy request checks. Fourth, it verifies code execution by calling the uploaded shell with a cmd parameter and either runs a single command or launches one of several reverse shell payloads. Main capabilities include: unauthenticated SQL injection, creation of a persistent admin account, authenticated arbitrary file upload with traversal, deployment of a PHP command webshell, arbitrary command execution over HTTP, and reverse shell callback to an attacker host. The reverse shell payloads include bash /dev/tcp, mkfifo+nc, and python3 socket/pty variants. The exploit uses requests for HTTP session handling and optionally pwntools to start a listener and provide an interactive shell. There are no hardcoded victim domains or IPs; the target host and optional callback host/port are supplied at runtime. Fingerprintable target paths and artifacts include /admin/ajax.php, /admin/config.php, /admin/ajax.php?module=endpoint&command=upload_cust_fw, traversal to ../../../var/www/html/<dir>, the dropped .php webshell path, the asterisk.ampusers database table, and /tmp/f used by one shell variant. Overall, this is a real operational exploit PoC rather than a detector: it performs end-to-end compromise of a vulnerable FreePBX instance and provides immediate post-exploitation command execution.0xEhab · Disclosed Jun 6, 2026 · markdown · python · web · networkOperationalCVE-2025-57819-exploitRepository contains a small standalone exploit project with 2 files: a README and one Python script, cve_2025_57819_aio.py, which is the main entry point. The exploit targets CVE-2025-57819 in Sangoma FreePBX endpoint module and is not part of a larger exploitation framework. The Python code implements an unauthenticated web attack against /admin/ajax.php using module=FreePBX\modules\endpoint\ajax, command=model, and a malicious brand parameter to inject SQL. Its primary capability is to insert a row into the cron_jobs table so the target executes an attacker-controlled command every minute, yielding RCE as the asterisk user. In staged mode, it generates or reuses an ELF reverse shell payload, hosts it on a local HTTP server bound to 0.0.0.0:<STAGE_PORT>, starts a TCP listener on 0.0.0.0:<LPORT>, and relies on the victim to fetch http://<LHOST>:<STAGE_PORT>/<payload_file> and connect back. It also includes cleanup logic that deletes the inserted cron job via a second SQL injection. A secondary mode, --create-user, uses SQL injection to create a new FreePBX administrator account and then verifies access by POSTing to /admin/ajax.php?module=userman&command=checkPasswordReminder, referencing /admin/config.php as the admin panel. Overall, this is an operational exploit with real post-exploitation capability, not merely a detector or README-only PoC.Jeanback1 · Disclosed Jun 7, 2026 · markdown · python · web · networkOperationalfreepbx-endpoint-sqli-rceThis repository is a small standalone exploit repo with 3 files: LICENSE, README.md, and a single Python exploit script, exploit.py. The code is not part of a larger exploitation framework. The README documents CVE-2025-57819 affecting the FreePBX Endpoint Manager module on unpatched FreePBX 17.x, describing an unauthenticated SQL injection in the brand parameter of /admin/ajax.php that can be chained into remote code execution. The exploit script performs a full attack chain rather than simple detection. It first probes the target over HTTP, then sends a crafted GET request to /admin/ajax.php with parameters module=FreePBX%5Cmodules%5Cendpoint%5Cajax, command=model, template=x, model=model, and a malicious brand value containing stacked SQL. That SQL inserts a row into the cron_jobs table. The inserted cron command decodes a base64-encoded PHP payload and writes /var/www/html/webshell.php containing <?php system($_GET[cmd]); ?>. After waiting a configurable delay (default 65 seconds) for cron execution, the script requests /webshell.php?cmd=id to verify successful code execution. Main exploit capabilities: unauthenticated network exploitation, SQL injection against a web endpoint, persistence of a malicious cron job entry, creation of a PHP webshell in the web root, and arbitrary command execution via the cmd query parameter. The README additionally explains how an operator could use the webshell to run further commands or trigger a reverse shell, though the Python script itself only deploys and verifies the webshell. Repository structure is straightforward: exploit.py is the only code file and clear entry point; README.md provides vulnerability background, usage examples, expected output, and remediation guidance. The exploit assumes plain HTTP, a Linux-style FreePBX deployment, cron execution of cron_jobs entries, and write access to /var/www/html/.jf-gondim · Disclosed Jun 7, 2026 · python · markdown · network · webOperationalFreePBX-CVE-2025-57819Repository contains two files: a README describing the exploit chain and one Python script, full_exlpoit.py, which is the operational entry point. The script targets CVE-2025-57819 in FreePBX’s endpoint module and automates a full unauthenticated compromise chain over HTTPS. It first sends crafted GET requests to /admin/ajax.php with module=FreePBX\modules\endpoint\ajax and a malicious brand parameter to verify error-based SQL injection and extract DB metadata (database name, version, DB user). It then uses stacked SQL queries to insert a row into the cron_jobs table so FreePBX cron execution writes a base64-decoded PHP webshell to /var/www/html/shell.php. After polling the webshell and confirming command execution as the asterisk user, the script performs light post-exploitation recon and attempts privilege escalation by generating a compressed/base64 payload embedded in a filename under /var/spool/asterisk/incron/api.fwconsole-commands.<payload>. According to the repository, incrond and sysadmin_manager process this file and invoke a signed fwconsole hook as root, allowing shell metacharacter injection through a command prefixed with 'help;' and resulting in a bash reverse shell to the attacker’s supplied LHOST:LPORT. The script also includes optional cleanup to delete the cron_jobs entry and remove the webshell. Overall, this is not a detector but a full-chain exploit PoC with hardcoded post-exploitation behavior and a customizable callback address.YuvrajSHAD · Disclosed Jun 8, 2026 · markdown · python · web · networkOperationalFreePBX-CVE-2025-57819-CVE-2025-61678This repository is a compact two-file exploit PoC targeting FreePBX by chaining two vulnerabilities: CVE-2025-57819 for stacked SQL injection and CVE-2025-61678 for authenticated arbitrary file upload leading to RCE. The repository contains a short README describing the chain and a single Python exploit script as the operational entry point. The exploit flow in exploit.py is straightforward and fully weaponized enough for practical use, though payloads and target values are hardcoded. First, the SQLi class abuses the /admin/ajax.php Endpoint Manager model handler by sending crafted GET parameters with a malicious brand value. The injected SQL first deletes any existing ampusers row for the chosen username, then inserts a new administrator account into the asterisk.ampusers table with a SHA1 password hash and wildcard sections value. This gives the attacker valid FreePBX admin credentials. Next, authenticate() uses requests.Session to interact with /admin/config.php and /admin/ajax.php?module=userman&command=checkPasswordReminder, then posts the injected credentials to the admin interface to establish an authenticated session. Finally, the RCE class abuses the authenticated upload endpoint /admin/ajax.php?module=endpoint&command=upload_cust_fw. It submits multipart form data with a traversal-style fwbrand value ../../../var/www/html/shell_dir_1 so the uploaded file lands in a web-accessible directory. The uploaded payload is a minimal PHP webshell using system($_REQUEST[md5('cmd')]). The script then computes the expected shell URL and enters an interactive loop, sending attacker-supplied commands to the webshell and printing command output. Overall capability: unauthenticated-to-authenticated privilege creation via SQL injection, followed by authenticated arbitrary file upload and interactive remote command execution on the FreePBX host. The code is a real exploit, not a detector, and is best classified as OPERATIONAL because it includes a working hardcoded payload and exploitation chain but is not part of a larger reusable framework.0xyngtg · Disclosed Jun 12, 2026 · python · markdown · web · networkOperationalCVE-2025-57819-FreePBX-RCE2RootSmall standalone Python exploit repository containing one main PoC script, a README, and a requirements file. The core file, CVE-2025-57819.py, implements a full exploit chain against FreePBX's endpoint module for CVE-2025-57819. The script targets the unauthenticated /admin/ajax.php endpoint over HTTPS and abuses the brand parameter in requests routed to module=FreePBX\modules\endpoint\ajax. It first verifies error-based SQL injection using EXTRACTVALUE, then uses SQLi write capability to plant a cron job that drops a base64-decoded PHP webshell (shell.php) into the web root. After waiting for cron execution, it interacts with the webshell via the cmd GET parameter to run commands as the asterisk user, performs reconnaissance, and then escalates privileges by writing incron/fwconsole hook material under /var/spool/asterisk/incron using the api.fwconsole-commands trigger. The final stage is a reverse shell callback to operator-supplied LHOST:LPORT, yielding root access. The script also supports optional cleanup of artifacts. Repository structure is minimal and purpose-built: README.md documents the attack chain, affected versions (15.x/16.x/17.x with patched versions listed), setup, and usage; requirements.txt lists requests and urllib3 dependencies. Overall, this is an operational end-to-end exploit rather than a detector or partial PoC.ozcanpng · Disclosed Jun 18, 2026 · python · markdown · web · networkOperationalFreePBX-SQLi-RCEThe supplied repository contains a standalone Python exploit, JTR-CVE-2025-57819.py (11,112 declared bytes), and README.md (6,130 declared bytes). The repository URL is inferred from the README clone command; no revision or archive size was supplied, so ref is unknown and size_bytes uses 0 as an unknown placeholder. The README also references a screenshot absent from the two-file inventory. The visible Python code uses requests with TLS certificate verification disabled. It accepts a target and callback host/port, submits SQL injection through the endpoint AJAX handler's brand parameter, parses error-based extraction responses, generates random administrator credentials, and attempts authentication. The orchestrator then calls cron injection, webshell polling, privileged triggering, cron cleanup, and a fallback reverse-shell method. The README describes a PHP webshell written through a database cron job and a conditional root-escalation chain involving incron, sysadmin_manager, and fwconsole. This is an exploitation attempt rather than a detection-only script, and it includes basic command payloads, supporting an OPERATIONAL classification without implying verified effectiveness. Important limitations: the Python source is explicitly truncated midway through query(), omitting essential implementation details. Error-based SQL extraction alone does not establish support for stacked statements, database writes, or the complete RCE chain. The claimed privilege escalation includes GPG signature validation, but the visible material does not establish how that prerequisite is satisfied. Claimed CVE attribution, affected version ranges, and exploitation success are not independently verified. The visible orchestration waits a fixed 60 seconds and then attempts the fallback shell without visibly checking whether root access was obtained. Cleanup visibly targets the cron job only; removal of the new administrator, webshell, and escalation artifacts is not established. No clear evidence of a fake exploit or a fixed exfiltration destination appears in the supplied excerpt. External badges, author profiles, and advisory links are documentation references, not demonstrated exploit traffic.HexBytee · Disclosed Jun 24, 2026 · python · web · localOperationalFreePBX-SQLi-RCEThis repository is a small standalone Python exploit PoC for CVE-2025-57819 against FreePBX, consisting of one executable script and one README. The main file, JTR-CVE-2025-57819.py, is the entry point and implements a multi-stage exploitation chain over HTTPS using the requests library. The script targets the unauthenticated brand parameter in /admin/ajax.php within the endpoint module AJAX handler to perform SQL injection, first verifying the issue and then inserting a new admin user into the ampusers table. It then logs into /admin/config.php with the created credentials, injects a cron job through database manipulation to write a PHP webshell to /var/www/html/shell.php, waits for the shell to become active, and uses it for command execution. After initial code execution as the asterisk user, it attempts a conditional privilege escalation path based on incron monitoring of /var/spool/asterisk/incron/, invocation of /usr/bin/sysadmin_manager, and command injection into /usr/sbin/fwconsole to obtain a root reverse shell. If that path fails or times out, the script falls back to spawning a reverse shell as the asterisk user using bash over /dev/tcp to the operator-supplied LHOST:LPORT. Overall, this is a real exploit rather than a detector: it automates account creation, authenticated session establishment, persistence of a webshell, remote command execution, and optional privilege escalation.JazzTheRabbit · Disclosed Jun 24, 2026 · python · markdown · web · networkOperationalcve-2025-57819-exploitThis repository is a small, single-purpose exploit PoC for CVE-2025-57819 affecting the FreePBX endpoint module. It contains two files: a README describing the vulnerability, affected versions, and usage, and one Python exploit script (cve-2025-57819.py) that serves as the sole entry point. The exploit is a real unauthenticated web/network attack against a vulnerable FreePBX AJAX endpoint. The script constructs HTTP GET requests to http://<target>/admin/ajax.php with module=FreePBX\modules\endpoint\ajax and injects SQL through the brand parameter. Its main capability is converting SQL injection into remote code execution by inserting a malicious row into the cron_jobs database table. That row causes the target to run a command every minute that reconstructs a hex-encoded bash reverse shell into revshell.sh, marks it executable, and launches it. Operational flow: (1) generate_payload() builds a bash reverse shell command using attacker-supplied lhost/lport and hex-encodes it using local shell tools; (2) exploit() inserts a cron_jobs entry with a randomized revshell-<suffix> job name and a * * * * * schedule; (3) the script waits 120 seconds for cron execution; (4) clean_malicious_cronjob() sends a second SQL injection to delete cron_jobs entries matching revshell-%. This cleanup reduces obvious persistence, though the reverse shell may already have executed. Notable implementation details: requests.get(..., verify=False) is used even though the URL is hardcoded to HTTP, suggesting certificate validation was disabled generically. The script does not perform vulnerability verification, authentication, target fingerprinting, or robust error handling; it assumes the endpoint is reachable and exploitable. Because it includes a working reverse shell payload but with limited customization beyond host/port arguments, the maturity is best classified as OPERATIONAL rather than a framework-grade weaponized exploit.Its1Zero · Disclosed Jul 1, 2026 · python · markdown · web · networkOperationalCVE-2025-57819-POCThis repository is a small standalone exploit PoC for CVE-2025-57819 targeting FreePBX. It contains three files: a Python exploit script (exploit.py), a README describing the vulnerability and usage, and a .gitignore. The exploit is not part of a larger framework. The main capability is unauthenticated remote code execution through a chained attack: the script sends an HTTP request to the vulnerable FreePBX endpoint /admin/ajax.php, abusing the brand parameter for stacked SQL injection. The injected SQL inserts a row into the cron_jobs table. That cron job runs every minute and executes a shell command that base64-decodes a PHP webshell into /var/www/html/shell.php. After deployment, the script can poll for shell availability, execute a single command, or provide an interactive pseudo-shell over HTTP. The Python code uses requests.Session with TLS verification disabled and a browser-like User-Agent. It normalizes the target into a base URL, builds the SQLi payload, sends the exploit request, derives the shell URL as /shell.php, and then uses the webshell query parameter (default cmd) to run arbitrary commands. Based on the README and visible code, the exploit supports target host and port selection, optional shell interaction, single-command execution, custom webshell parameter naming, skipping the wait/poll phase, and adjustable verbosity. Operationally, this is more than a detection script or bare PoC because it includes a working payload and post-exploitation interaction logic, but it is still a simple standalone implementation with a hardcoded webshell path and cron-based persistence mechanism. The exploit depends on the target exposing the vulnerable FreePBX admin AJAX endpoint without authentication and on the server environment allowing cron execution plus write access to the web root.Neobee714 · Disclosed Jul 20, 2026 · python · markdown · network · webOperationalCVE-2025-57819-RCEThis repository contains a single Python proof-of-concept exploit script and a README. The main file, CVE-2025-57819_PoC.py, implements a full exploit chain against vulnerable FreePBX deployments. It first abuses CVE-2025-57819 by sending crafted requests to /admin/ajax.php with module=FreePBX\modules\endpoint\ajax, command=model, and a malicious brand parameter containing stacked SQL statements. Those statements delete any prior matching user and insert a new admin account directly into the asterisk.ampusers table with full access. The script then authenticates to /admin/config.php using the newly created credentials. After authentication, it exploits CVE-2025-61678 by POSTing multipart form data to /admin/ajax.php?module=endpoint&command=upload_cust_fw. The fwbrand field contains a traversal sequence ../../../var/www/html/<random_dir>, causing the uploaded PHP file to be written into the web root instead of the intended firmware directory. The uploaded payload is a minimal PHP webshell that executes the cmd request parameter via system(). The script verifies successful RCE by invoking the shell URL and checking command output. Operational capabilities include: unauthenticated privilege creation, authenticated session establishment, arbitrary command execution through the webshell, and reverse shell delivery using multiple fallback payloads (bash TCP, mkfifo+nc, and python3 socket/pty). The exploit is not merely a detector; it performs end-to-end compromise. Repository structure is minimal: one executable Python script as the entry point and one README describing the vulnerability chain, affected versions, and usage examples.TeteREN · Disclosed Aug 1, 2026 · python · markdown · web · networkOperationalCVE-2025-5781This is a small standalone Python exploit repository containing one primary executable script (exploit.py), a README, and a requirements file. The exploit targets FreePBX versions earlier than 16.0.26.0 and claims CVE-2025-57819, abusing a SQL injection condition in the web-accessible AJAX endpoint /admin/ajax.php. The script is not part of a larger exploitation framework. Repository structure and purpose: README.md explains the vulnerability, usage, and expected outcomes; exploit.py implements the attack flow; requirements.txt lists Python dependencies. The Python script uses requests with TLS verification disabled, accepts a target host plus attacker callback host/port, and constructs SQL injection strings appended to GET requests against host/admin/ajax.php. Main exploit capability: the script attempts remote code execution by injecting INSERT statements into the cron_jobs table. The first injected cron job writes a base64-decoded PHP webshell into /var/www/html/pbxshell.php. The script then polls the resulting URL for up to 120 seconds to confirm creation. The second injected cron job writes a PHP reverse shell wrapper into /var/www/html/auto_rev.php; that payload executes a bash reverse shell to the supplied LHOST:LPORT. The script also starts a local netcat listener to catch the callback. Notable observables and targets include the vulnerable endpoint /admin/ajax.php, dropped files /var/www/html/pbxshell.php and /var/www/html/auto_rev.php, the pbxshell.php web path, the cron_jobs database table, and the reverse-shell callback over TCP to the attacker-supplied host and port. Overall, this is an operational RCE exploit with hardcoded payload behavior rather than a detection-only script.jasonbernier · Disclosed Aug 11, 2026 · markdown · python · web · networkOperationalhtb-labs-connectedThis five-file repository is an HTB Connected walkthrough rather than a self-contained CVE exploit repository. README.md and README-ES.md provide English and Spanish versions of the same attack chain; scans/ contains Nmap and Gobuster command notes; payloads/reverse_shell.sh is the sole executable artifact. No WatchTowr/FreePBX exploit source, PHP webshell source, or automated privilege-escalation code is included—the README instructs the operator to clone and execute an external WatchTowr CVE-2025-57819 repository. The included Bash script takes an IP and port and creates a Bash reverse shell. The documented chain enumerates SSH/HTTP/HTTPS, discovers FreePBX paths, uses the claimed CVE to create a command-executing PHP webshell running as asterisk, then abuses writable /etc/dahdi/init.conf plus an incron watch on dahdi_restart to obtain root-level command execution. It is operational as a manual attack guide with a functional basic reverse-shell payload, but the initial-access exploit is only referenced externally.DiegoRivas1 · Disclosed Aug 27, 2026 · bash · markdown · web · network · localOperationalCVE-2025-57819This four-file repository contains a standalone Python proof-of-concept, exploit.py, plus README, license, and ignore rules. The script sends unauthenticated requests to FreePBX Endpoint Manager's admin/ajax.php model handler and places an error-based SQLi payload in the brand parameter to verify injection by extracting the database user. It then uses a stacked INSERT into FreePBX's cron_jobs table to schedule a base64-decoded PHP webshell in the web root, polls the shell for up to 90 seconds, and supports arbitrary command execution. The optional --root path abuses a purported asterisk-writable DAHDI init.conf and an incron-triggered root DAHDI restart to create and invoke a setuid bash binary. No exploit framework is used; the payloads and target behavior are hardcoded, making it an operational standalone exploit.r3vpwnx · Disclosed Sep 6, 2026 · python · network · web · localOperationalcve-2025-57819This 15-file repository is a standalone Docker-based educational CTF, not a copy or full reproduction of FreePBX or Sangoma software. It contains a PHP 8.2/Apache frontend, MariaDB 10.11 database, Compose deployment, initialization/flag-seeding code, and a Python 3 standard-library solver. The principal exploit file, exploit/solve.py, validates a supplied HTTP(S) base URL, URL-encodes a UNION SELECT payload into the brand parameter, requests admin/ajax.php, parses the JSON response, and prints a matching WINS{...} value. The vulnerable getModels branch in src/admin/ajax.php directly interpolates brand into SELECT id, brand, model FROM endpoint_models WHERE brand = '$brand';. The injected query reads ctf_flags.flag_value for the cve-2025-57819 challenge. A separate model route is also intentionally vulnerable through three concatenated parameters, whereas modelSafe demonstrates parameterized queries. docker/entrypoint.sh validates the FLAG format, writes it to /flag, and docker/seed_flag.php safely upserts it into ctf_flags. The application is exposed on host port 10021, while MariaDB is limited to the internal Compose bridge network.donggle0802-code · Disclosed Sep 23, 2026 · python · php · webOperationalCVE-2025-57819The repository contains README.md (69 bytes) and poc.py (15,867 bytes). The README supplies a FOFA discovery query matching the FreePBX title and administration-page text; it contains no exploit implementation. The standalone Python script uses standard-library HTTP, threading, argument parsing, and logging facilities and embeds a basic PHP command webshell. The documented attack chain abuses pre-authentication PHP module autoloading through /admin/ajax.php to reach the endpoint module AJAX handler. Unsanitized brand, template, or model values in an endpoint_models query allegedly permit stacked SQL statements. An inserted cron_jobs record then causes the FreePBX job runner to execute a command that installs the webshell. The fixed marker V57819M and GET parameter c are useful payload fingerprints. Other relevant artifacts are unexpected cron_jobs entries and newly created PHP files in the webroot. Visible orchestration supports deduplicated target lists and ThreadPoolExecutor-based concurrent scanning. Logging separates debug output, overall results, vulnerable targets, and injectable targets. The script defines an SSL context with certificate and hostname verification disabled and rotates among three browser User-Agent strings. Advertised verdicts distinguish confirmed RCE, SQL injection without confirmed shell execution, patched systems, unavailable endpoint functionality, and errors. SQL syntax errors, an array-offset error after insertion, and HTTP 501 responses are described as classification signals, not independently verified guarantees. This is exploit-oriented code rather than merely a detector, although it advertises a --check mode that avoids writes. Optional cleanup is described as deleting the injected cron row; removal of the deployed webshell is not established. No fixed attacker infrastructure is visible: targets and reverse-shell destinations are operator supplied, and the private IP addresses in usage examples are illustrative. The supplied poc.py content is substantially truncated, omitting the principal request-building, injection, shell-delivery, and scan_target implementations. Consequently, exploit reliability and several advertised features cannot be fully validated. There is no visible evidence of a fake exploit or unrelated destructive behavior. Repository URL, git reference, and archive size were not provided; their metadata fields use empty strings and zero as unknown-value placeholders.Wayang1337 · Disclosed Oct 11, 2026 · python · php · web · networkOperationalFreePBX-CVE-2025-057819-Remote-Code-ExecutionThe supplied repository contains README.md and one standalone Python exploit, exploit.py. The Python file embeds a small PHP webshell and uses requests for all communications; no exploit framework is present. Its FreePBX class implements target normalization, SQL injection, administrator login, webshell upload, and command execution. The CLI adds proxy support, request timeouts, optional TLS verification, and either single-command execution or an interactive HTTP command loop. The exploit sends two unauthenticated stacked SQL-injection requests through the Endpoint Manager model loader's brand parameter. These remove any matching generated username and insert an unrestricted administrator with a SHA-1 password hash. It then logs in normally and submits a multipart upload to upload_cust_fw, placing traversal in fwbrand to write the embedded PHP payload beneath /var/www/html. Subsequent requests execute commands through the shell's cmd parameter. There is no reverse connection, hardcoded external command-and-control host, or implemented cleanup. Static inspection supports classification as a substantive exploit rather than a detector or obvious fake, but successful exploitation was not independently verified. Reliability checks are weak: an HTTP 500 response is treated as successful SQL-payload delivery, login success relies on a Dashboard text match, and upload_shell reports success without inspecting the upload response or checking shell availability. The README also references freepbx_rce.py and requirements.txt, neither of which exists in the supplied file listing. Version and patch claims come from the README; the script performs no version detection. Repository URL, git reference, and archive size were not supplied.Amoru-Bek · Disclosed Nov 17, 2026 · python · php · network · webOperationalCVE-2025-57819_FreePBXThis repository provides two Python proof-of-concept scripts targeting CVE-2025-57819, a critical unauthenticated SQL injection vulnerability in FreePBX (versions ≤15.0.65, ≤16.0.88, ≤17.0.2). The vulnerability allows remote attackers to execute arbitrary SQL queries via the /admin/ajax.php endpoint, specifically through the 'module' parameter. - 'poc_admin.py' exploits the vulnerability to create a new admin user with a known password by injecting a crafted SQL statement. The script takes a target URL as input and prints the credentials for the new admin user. - 'poc_auto_get_username_pass.py' automates the use of sqlmap to extract all usernames and password hashes from the ampusers table across multiple FreePBX targets. It reads a list of target URLs from a file, runs sqlmap for each, and saves the output in a log directory. Both scripts require Python 3, and the second script requires a local copy of sqlmap. The main attack vector is remote, unauthenticated access to the vulnerable /admin/ajax.php endpoint. The repository is structured with clear documentation (README.md) and two functional exploit scripts, making it a practical resource for security researchers and penetration testers.orange0Mint · Disclosed Sep 18, 2025 · python · markdown · networkPoCCVE-2025-57819This repository is a small standalone Python exploit for CVE-2025-57819 affecting Sangoma FreePBX. It contains two files: a README with vulnerability background and one executable script, exploit.py. The script is not part of a larger exploitation framework. The exploit workflow is straightforward and operational: it first probes the target's /admin/ajax.php endpoint with crafted GET parameters intended to trigger an SQL error containing the database user, using the brand parameter as the injection point. If the response contains both "XPATH syntax error" and "freepbxuser", the script treats the target as vulnerable. It then starts a local TCP listener, constructs a bash reverse shell payload, base64-encodes it, hex-encodes the final command for SQL insertion, and sends a second crafted request to the same endpoint. That request attempts to INSERT a row into the FreePBX cron_jobs table with modulename=sysadmin, jobname=revshell, and a schedule of '* * * * *', causing the target to execute the reverse shell command via cron roughly once per minute. Once the target connects back, the script provides an interactive session and tries to improve shell usability by spawning a PTY with python3, python, or script. This means the exploit's main capability is unauthenticated remote code execution leading to an interactive reverse shell on the underlying Linux host. Fingerprintable artifacts include the vulnerable web path /admin/ajax.php, the module routing string FreePBX\\modules\\endpoint\\ajax, the cron_jobs database table, the inserted job identifiers sysadmin and revshell, the cron expression '* * * * *', and the reverse-shell transport using bash over /dev/tcp/{lhost}/{lport}. Overall, this is a real exploit rather than a detector: it performs validation, payload delivery, persistence via scheduled task insertion, and session handling.K3ysTr0K3R · Disclosed Jul 2, 2026 · markdown · python · network · webPoCcve-2025-57819-freepbx-rangeThis 100-file repository is an isolated Docker Compose cyber range that emulates the CVE-2025-57819 attack chain rather than shipping an exploit against vendor FreePBX installations. Its main components are a PHP/Apache FreePBX-style target, MariaDB seed/schema data, a Python PBX scheduler simulator, an attacker workstation with Python reconnaissance and HTTP-request utilities, an observer that monitors JSON logs, detection content (Nuclei, Sigma, and YARA), challenge material, and a patched comparison profile. The primary vulnerable code is target/app/admin/ajax.php: endpoint-related module names bypass the normal authentication requirement in vulnerable mode and are dispatched to the Endpoint Manager controller. Repository documentation and detection artifacts establish that the controller's brand input is intentionally modeled as concatenated SQL. The documented impact chain is unauthenticated AJAX access -> brand SQL injection -> cron_jobs modification -> PBX scheduler execution. Execution is deliberately constrained: execute_job.py only accepts commands from a fixed registry, and the intended write_flag action only writes a training artifact. Attacker tools enumerate, verify, request, and collect evidence from internal http://target/ and include an explicit refusal to target hosts outside the lab naming/local-host allowlist. No standalone SQL injection payload, arbitrary shell payload, reverse shell, Internet scanning logic, or direct MariaDB access is supplied.shivammittal2403 · Disclosed Sep 17, 2026 · php · python · web · networkPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Sangoma Technologies CorporationFreepbxapplication
FAQ

Frequently asked questions

Is CVE-2025-57819 exploited in the wild?
Yes. As of Oct 28, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Aug 29, 2025.
Is there a public exploit for CVE-2025-57819?
Yes. Mallory tracks 25 public exploits or proofs of concept for CVE-2025-57819, the earliest disclosed Aug 28, 2025.
Is there a patch for CVE-2025-57819?
Update the FreePBX Endpoint module to version 15.0.66, 16.0.89, or 17.0.3, as appropriate for the installed branch, or a later supported release. Verify the installed module version and security-update status rather than relying solely on update notifications.
What products are affected by CVE-2025-57819?
Sangoma Technologies Corporation Freepbx.
How severe is CVE-2025-57819?
CVE-2025-57819 has a CVSS v4 score of 10.0 (Critical) and an EPSS score of 95.6% (100th percentile) as of Oct 28, 2026.
Activity feed

Recent activity

94 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+12 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence2Every report linking this CVE to a named adversary.
Associated malware2Malware families linked to this CVE, with evidence and IOCs.
Detection signatures5YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity76Community discussion across Reddit, Mastodon, and other social sources.