FreePBX Affected by Authentication Bypass Leading to SQL Injection and RCE (CVE-2025-57819)
Published Last modified In CISA KEV since Sources: pwn.watch, CVE.org, SingCERT
- Actively exploited
- Source: VulnCheck KEV (opens in a new tab), CSA/SingCERT How we classify
- Public exploit
What is affected, what to do
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.
The vulnerability is being actively exploited; treat it as a priority. Update FreePBX Endpoint to version 15.0.66, FreePBX Endpoint to version 16.0.89, FreePBX Endpoint to version 17.0.3. Immediate actions, mitigation and detection rules are in the runbook below.
- Affected
- FreePBX Endpoint
lt *..15.0.66 - FreePBX Endpoint
lt *..16.0.89 - FreePBX Endpoint
lt *..17.0.3
- FreePBX Endpoint
- Fixed in
- FreePBX Endpoint
15.0.66 - FreePBX Endpoint
16.0.89 - FreePBX Endpoint
17.0.3
- FreePBX Endpoint
Not sure whether and how you are affected? Ask a question about this vulnerability
Metrics
10.0
Priority
XIEM Effective CVSS: highest available CVSS rating from NVD and vendor data.
Source: NVD, CVSS v4
9.8
CVSS v3
Severity Critical on the scale from 0 to 10.
Source: pwn.watch, CVE.org, SingCERT
95.2 %
EPSS score
High — model estimates ≥ 50% chance of real-world exploitation within 30 days.
Source: FIRST EPSS, percentile 99.86
Show all metrics
- Severity
- Critical
Priority (0–325)
The priority score is a consolidated metric that condenses several individual signals into a single, action-guiding ranking: technical severity (CVSS), exploitation likelihood (EPSS), known-exploited status (KEV) and the context of the affected asset. The aim is to answer the only truly important question in vulnerability management: what first?
Read in glossary- 240.39 Methodology
Exploit maturity
An exploit is code or a technique that specifically uses a concrete vulnerability to force unintended behaviour — such as executing code or escalating privileges. It is the tool that turns a theoretical flaw into a practical attack.
Read in glossary- actively exploitedSource: VulnCheck KEV (opens in a new tab), CSA/SingCERT How we classify
XIEM Effective CVSS
XIEM® is the tiered managed-security operating model from NEOSEC and a registered trademark of NEOSEC GmbH. It extends classic SIEM — the central collection, normalisation and correlation of security-relevant events — with endpoint forensics, network visibility and deception technology, and consolidates them into three building tiers: Sentry, Orchestrate and Command.
Read in glossary- 10.0 Methodology
CVSS v3
CVSS is the globally established, open standard for assessing the technical severity of a vulnerability on a scale from 0 to 10. It describes how easily a flaw can be exploited and what damage it can cause — but not how likely its actual exploitation is. CVSS and the complementary EPSS deliberately answer different questions.
Read in glossary- 9.8
CVSS v4
CVSS is the globally established, open standard for assessing the technical severity of a vulnerability on a scale from 0 to 10. It describes how easily a flaw can be exploited and what damage it can cause — but not how likely its actual exploitation is. CVSS and the complementary EPSS deliberately answer different questions.
Read in glossary- 10.0
EPSS score
The EPSS score is the absolute model output for an individual vulnerability: the estimated probability of real-world exploitation within the next 30 days, expressed as a value between 0 and 1 (i.e. 0 % to 100 %). A score of 0.42 means „the model estimates a 42 % chance of real-world exploitation within 30 days“.
Read in glossary- 95.2 %
- High — model estimates ≥ 50% chance of real-world exploitation within 30 days.
EPSS percentile
The EPSS percentile is the relative position of a vulnerability within all EPSS-scored CVEs, expressed as a value between 0 and 1. A percentile of 0.90 means „this CVE has a higher EPSS score than 90 % of all other scored CVEs“. Unlike the EPSS score, it is not a probability — but a positioning within a ranking.
Read in glossary- 99.86
- Critical — this CVE ranks in the top fifth of all CVEs scored today (rank ≥ 80%).
KEV status
The KEV catalogue is a list maintained by the US authority CISA of vulnerabilities for which active exploitation in the wild has been confirmed. It answers not the question „how severe?“ but „is it already being attacked?“ — thereby sharply prioritising patching.
Read in glossary- Actively exploited
- Published
In CISA KEV since
The KEV catalogue is a list maintained by the US authority CISA of vulnerabilities for which active exploitation in the wild has been confirmed. It answers not the question „how severe?“ but „is it already being attacked?“ — thereby sharply prioritising patching.
Read in glossary- CISA assessment (SSVC)
- Exploitation: active · automatable · Technical impact: total
- Source: CISA Vulnrichment, as of 29 August 2025
CWE
CWE is a catalogue of typical weakness types in software and hardware — such as flawed input validation, unsafe memory handling or poor authentication. Where a CVE names a concrete vulnerability in a concrete product, a CWE describes the underlying class of defect.
Read in glossary- CWE-89, CWE-288
Response and mitigation
Why act now?
Prioritisation rationale
This flaw is network-reachable without authentication or user interaction and turns a SQL injection straight into admin access and code execution on the phone system. It ranks among the CVEs most likely to be exploited, and disclosure was followed by automated mass scanning and backdooring of internet-facing admin panels. Typical victims are SMEs, call centres, municipalities and service providers running self-hosted FreePBX, with attackers going after toll fraud, persistence and a pivot into the internal network. CISA does not flag known ransomware use. If your admin GUI was internet-reachable, treat the box as potentially compromised and handle it as top priority under an emergency change. For internal-only deployments, patch within the regular emergency window, i.e. within a few days.
Runbook step 1
Immediate response (0-24 h)
- Find exposure and lock down the admin GUI now: Inventory every FreePBX instance (versions 15, 16, 17) and block internet access to the Administrator Control Panel (
/admin/, TCP 80/443) immediately. Use the FreePBX Firewall module (admin access from "Trusted" zones only) or an upstream firewall. Leave SIP/RTP for call handling untouched. - Patch: Upgrade the
endpointmodule to 15.0.66 (FreePBX 15), 16.0.89 (FreePBX 16) or 17.0.3 (FreePBX 17). Check the installed version withfwconsole ma list | grep -i endpoint, upgrade withfwconsole ma upgrade endpoint, then runfwconsole reload. If you don't use the commercialendpointmodule, uninstall it entirely. - Hunt for compromise before you close the ticket: Patching does not remove backdoors that are already in place. Check:
asterisk.ampusersfor unknown admin accounts.- The
cron_jobstable and theasteriskuser's crontab for foreign entries. /var/www/html/for unknown PHP or shell files (e.g..clean.sh)./etc/freepbx.conffor deletion or tampering.
- If you find indicators: Isolate the host and capture forensic artefacts (DB dump, webroot,
/var/log/). Rebuild from a known-clean backup rather than attempting in-place cleanup. Patch the rebuilt system and re-expose the GUI only in restricted form. - Rotate credentials: Rotate all GUI admin passwords, the MySQL/MariaDB user (AMPDBPASS), SIP trunk and provider credentials, and extension secrets. Stolen SIP credentials are a direct route to toll fraud.
- Contain financial impact: Ask your SIP provider to enable spend caps and block premium-rate and international destinations while the investigation runs.
- Find exposure and lock down the admin GUI now: Inventory every FreePBX instance (versions 15, 16, 17) and block internet access to the Administrator Control Panel (
Runbook step 2
Mitigation layers
- Network segmentation: Put the PBX in a dedicated voice VLAN or DMZ. Expose the admin GUI only to a management network or via VPN/jump host. Restrict PBX egress to SIP providers, Sangoma update servers and NTP; this kills reverse shells and second-stage downloads.
- WAF/reverse proxy: Drop requests to
/admin/ajax.phpthat target the endpoint module (module=parameter) and carry SQL metacharacters (',--,UNION,SLEEP(,INSERT INTO). As a general rule, reject unauthenticated requests to/admin/ajax.phpand/admin/config.phpthat arrive without a valid session cookie. - IPS: Enable Suricata/Snort SQLi signatures for FreePBX endpoints and pull vendor rule updates that reference CVE-2025-57819. As a stopgap, use an
http.uricontent match onajax.phpcombined with apcrefor SQLi patterns. - Host hardening: Apply file integrity monitoring (AIDE, auditd watches) to
/var/www/html/. Reduce web-server write permissions to the bare minimum. Mount/tmpand/var/tmpwithnoexec. - IAM/least privilege: Keep the number of GUI admins minimal and enforce MFA or a VPN/SSO gate in front of the GUI. Bind the database to localhost only (
bind-address=127.0.0.1).
Runbook step 3
Detection rules
- Web access logs (Apache
/var/log/httpd/or/var/log/apache2/): Look for requests to/admin/ajax.phpwithmodule=plusbrand=/template=/model=carrying SQL metacharacters, coming from external IPs with no preceding login. Also flag POSTs tomodular.phpor to unknown PHP files in the webroot. SPL:index=web uri_path="/admin/ajax.php" (uri_query="*%27*" OR uri_query="*UNION*" OR uri_query="*SLEEP*") | stats count by src_ip - Database artefacts: Diff
SELECT username FROM asterisk.ampusers;against a baseline on a schedule and alert on new accounts. New or modifiedcron_jobsrows containing shell commands (curl,wget,base64,bash -c) are a high-confidence compromise indicator. - auditd/EDR process ancestry: Alert on
httpd/php-fpm→sh/bash→curl/wget/base64/nc, and oncrondrunning scripts from the webroot. Sigma shape:ParentImage|endswith: ['/httpd','/php-fpm'] AND Image|endswith: ['/bash','/sh','/curl','/wget']. - Asterisk CDR/full log (
/var/log/asterisk/full): Watch for:- Calls to unknown or test extensions (e.g.
9998). - Sudden international or premium-rate calls.
- New extensions or trunks created without a change ticket.
- Calls to unknown or test extensions (e.g.
- Network telemetry (Zeek/Suricata): Flag outbound HTTP(S) or raw TCP from the PBX to destinations outside the egress allowlist, and DNS lookups for newly registered domains.
- Web access logs (Apache
Detection rules
No NEOSEC detection rule is available for this vulnerability yet.
Classification under NIS2 and CRA
Rule-based classification from exploitation status and severity. It does not replace a case-by-case assessment.
NIS2
NIS2 is EU Directive (EU) 2022/2555 to raise the level of cybersecurity across the Union. It substantially broadens obligations compared with the first NIS directive: more sectors, mandatory risk management, staged reporting duties and personal accountability of senior management.
Read in glossary- Actively exploited: treat the vulnerability as a priority in vulnerability handling under Art. 21(2)(e) NIS2. If it is exploited in your environment, check the reporting obligation under Art. 23 (early warning within 24 hours).
CRA
The CRA is EU Regulation (EU) 2024/2847 setting horizontal cybersecurity requirements for „products with digital elements“ — from industrial controllers and software to connected consumer devices. For the first time manufacturers must ensure security across the entire product lifecycle, handle vulnerabilities and provide security updates.
Read in glossary- Since 11.09.2026, manufacturers of affected products with digital elements must report actively exploited vulnerabilities under Art. 14 CRA, with an early warning within 24 hours via ENISA's single reporting platform.
ISO/IEC 27001
ISO/IEC 27001 is the internationally leading standard for an information security management system (ISMS). It describes a risk-based, process-oriented framework to systematically plan, implement, review and improve information security.
Read in glossary- Control A.8.8, management of technical vulnerabilities: assess relevance to your systems, plan remediation and keep evidence.
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.
Source: pwn.watch, NVD (NIST), CISA KEV Catalog, CVE.org (MITRE), CSA/SingCERT, cvelistv5
Affected products
The following versions are affected. Older releases of the same product line are also vulnerable unless stated otherwise.
| Affected versions | Fixed in | ||
|---|---|---|---|
| FreePBX | endpoint |
|
|
| sangoma | freepbx |
|
|
Vendors and products
Weakness classes (CWE)
CWE-89Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Base
The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.
Entry at MITRE CWE-89CWE-288Authentication Bypass Using an Alternate Path or Channel
Base
The product requires authentication, but the product has an alternate path or channel that does not require authentication.
Entry at MITRE CWE-288
Public exploit references
Publicly reported proof-of-concepts, exploit modules and detection templates for this vulnerability. NEOSEC links to the original sources only and does not provide any exploit code.
| CISA KEV Catalog | CISA Known Exploited Vulnerability (opens in a new tab)cisa.gov | actively exploited | |
| CSA/SingCERT | Critical Vulnerability in FreePBX Servers (opens in a new tab)CSA/SingCERT | actively exploited | |
| GitHub | watchtowrlabs/watchTowr-vs-FreePBX-CVE-2025-57819 (opens in a new tab)github.com | PoC (publicly reported)reported, not verified | — |
| PoC-in-GitHub (nomi-sec) | CVE-2025-57819 (opens in a new tab)github.com | PoC (publicly reported)reported, not verified | |
| PoC-in-GitHub (nomi-sec) | freepbx-rce-detector (opens in a new tab)github.com | PoC (publicly reported)reported, not verified | |
| PoC-in-GitHub (nomi-sec) | FreePBX-Breaker (opens in a new tab)github.com | PoC (publicly reported)reported, not verified | |
| PoC-in-GitHub (nomi-sec) | cve-2025-57819 (opens in a new tab)github.com | PoC (publicly reported)reported, not verified | |
| PoC-in-GitHub (nomi-sec) | cve-2025-57819-freepbx-range (opens in a new tab)github.com | PoC (publicly reported)reported, not verified | |
| PoC-in-GitHub (nomi-sec) | CVE-2025-57819 (opens in a new tab)github.com | PoC (publicly reported)reported, not verified | |
| PoC-in-GitHub (nomi-sec) | htb-labs-connected (opens in a new tab)github.com | PoC (publicly reported)reported, not verified | |
| PoC-in-GitHub (nomi-sec) | CVE-2025-57819-RCE (opens in a new tab)github.com | PoC (publicly reported)reported, not verified | |
| PoC-in-GitHub (nomi-sec) | CVE-2025-57819-POC (opens in a new tab)github.com | PoC (publicly reported)reported, not verified | |
| PoC-in-GitHub (nomi-sec) | htb-connected-writeup (opens in a new tab)github.com | PoC (publicly reported)reported, not verified | |
| PoC-in-GitHub (nomi-sec) | CVE-2025-57819 (opens in a new tab)github.com | PoC (publicly reported)reported, not verified | |
| PoC-in-GitHub (nomi-sec) | FreePBX-SQLi-RCE (opens in a new tab)github.com | PoC (publicly reported)reported, not verified | |
| PoC-in-GitHub (nomi-sec) | CVE-2025-57819-FreePBX-RCE2Root (opens in a new tab)github.com | PoC (publicly reported)reported, not verified | |
| PoC-in-GitHub (nomi-sec) | FreePBX-CVE-2025-57819-CVE-2025-61678 (opens in a new tab)github.com | PoC (publicly reported)reported, not verified | |
| PoC-in-GitHub (nomi-sec) | FreePBX-CVE-2025-57819 (opens in a new tab)github.com | PoC (publicly reported)reported, not verified | |
| PoC-in-GitHub (nomi-sec) | freepbx-endpoint-sqli-rce (opens in a new tab)github.com | PoC (publicly reported)reported, not verified | |
| PoC-in-GitHub (nomi-sec) | CVE-2025-57819-exploit (opens in a new tab)github.com | PoC (publicly reported)reported, not verified | |
| PoC-in-GitHub (nomi-sec) | CVE-2025-57819-poc (opens in a new tab)github.com | PoC (publicly reported)reported, not verified |
References & sources
- github.comFreePBX/security-reporting/security/advisories/GHSA-m42g-xg4c-5…x_refsource_CONFIRM, pwn-watch
- community.freepbx.orgt/security-advisory-please-lock-down-your-administrator-access/…x_refsource_MISC
- github.comwatchtowrlabs/watchTowr-vs-FreePBX-CVE-2025-57819Exploit
- cisa.govknown-exploited-vulnerabilities-catalog?field_cve=CVE-2025-57819government-resource
- pwn.watchpwn.watch: Sangoma FreePBX: FreePBX Authentication Bypass Vulnerabilitypwn-watch
- NVD (NIST)NVD: CVE-2025-57819pwn-watch
- cisa.govCISA Known Exploited Vulnerabilities Catalogpwn-watch
Changes to this CVE
Who changed this CVE and when: NVD (analysis, affected products, CVSS), the CVE publisher (CNA) and additional providers such as CISA (ADP).
NVD analysis modifiedNVD
One NVD translation into another language is hidden.
Embed badge
Show the severity and KEV status of this vulnerability on your site – with a link back here. The image is updated hourly.
<a href="https://intel.neosec.eu/en/cve/CVE-2025-57819"><img src="https://intel.neosec.eu/badge/cve/CVE-2025-57819.svg?lang=en" alt="CVE-2025-57819 – NEOSEC Intel" height="20"></a>