FreePBX endpoint
FreePBX Affected by Authentication Bypass Leading to SQL Injection and RCE
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 15.0.66
- < 16.0.89
- < 17.0.3
Fixed in 15.0.66, 16.0.89, 17.0.3
Mitigation
Upgrade endpoint to 15.0.66 or 16.0.89 or 17.0.3 or later.
References
- Vendor advisory github.com/FreePBX/security-reporting/security…
Timeline
Days relative to CVE publicationFirst public PoC 6 h before publication; added to CISA KEV 1 day after publication. First PoC: rxerium/CVE-2025-57819 (created 28 Aug 2025, found by us: backfilled).
PoC repositories
Found on GitHub.27 PoCs · 4 pending · 3 informational · 1 not a PoC · 1 suspicious or fake
PoCs 27
Pending 4
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| Amoru-Bek/FreePBX-CVE-2025-057819-Remote-Code-Execution | 17 Nov 2026 +1.2 y | 18 Nov 2026 | 0 | Pending · listed by PoC Index; via PoC Index |
| alinaclark672377250/SQL-Injection-and-RCE_CVE-2025-57819 | 18 Nov 2026 +1.2 y | 18 Nov 2026 | 0 | Pending |
| B1ack4sh/Blackash-CVE-2025-57819 | unknown | backfilled | 0 | Pending · repository unavailable (HTTP 404) |
| net-hex/CVE-2025-57819 | unknown | backfilled | 0 | Pending · repository unavailable (HTTP 404) |
Informational 3
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Sucuri-Labs/CVE-2025-57819-ioc-check | 29 Aug 2025 +19 h | 0 | Informational · detection |
| Jeanback1/exploit-vault | 20 Jul 2026 +326 d | 0 | Informational · list |
| foxcornlab/freepbx-rce-detector | 8 Oct 2026 +1.1 y | 0 | Informational · detection |
Not a PoC 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| jasonbernier/CVE-2025-5781 | 11 Aug 2026 +348 d | 0 | Not a PoC · unrelated |
Suspicious or fake 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| donggle0802/cve-2025-57819 | 23 Sep 2026 +1.1 y | 0 | Suspicious · score 50
Why suspicious
|
Only PoCs count toward the first-PoC date and the characteristics below. Suspicious repositories (score ≥ 50) never count. "Backfilled" means we found the repository more than 30 days after it was created. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| Exploit-DB | FreePBX 17.0.2 - Remote Code Execution (RCE) | 3 Sep 2026 | 14 Nov 2026 |
| Metasploit | Metasploit exploit: FreePBX ajax.php unauthenticated SQLi to RCE (exploit/unix/http/freepbx_unauth_sqli_to_rce) | 21 Sep 2025 | 14 Nov 2026 |
| nuclei template | nuclei template: FreePBX - Remote Code Execution | 11 Sep 2025 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 27 PoC reposGET /admin/ajax.php
- Query
module=FreePBX\modules\endpoint\ajaxcommand=modeltemplate=xmodel=modelbrand=brand=x';cmd=echotemplate=model=brand=x' AND EXTRACTVALUE(1,CONCAT('~USER:',(SELECT USER()),'~')) --module=endpointbrand=Ciscomodule=command=brand=Cisco)- Ports
- 443, 8080, 8082
- Seen in
- 11 repos: 0xEhab/FreePBX-CVE-2025-57819-RCE, HexBytee/FreePBX-SQLi-RCE, JazzTheRabbit/FreePBX-SQLi-RCE, Jeanback1/CVE-2025-57819-exploit, MuhammadWaseem29/SQL-Injection-and-RCE_CVE-2025-57819, RokuSec/FreePBX-SQLi-RCE, TeteREN/CVE-2025-57819-RCE, TheScriptKiddoz/FreePBX-SQLi-RCE, jf-gondim/freepbx-endpoint-sqli-rce, r3vpwnx/CVE-2025-57819, shivammittal2403/cve-2025-57819-freepbx-range
- Evidence
- 0xEhab/FreePBX-CVE-2025-57819-RCE/exploit.py:89 HexBytee/FreePBX-SQLi-RCE/JTR-CVE-2025-57819.py:125 HexBytee/FreePBX-SQLi-RCE/JTR-CVE-2025-57819.py:141 HexBytee/FreePBX-SQLi-RCE/JTR-CVE-2025-57819.py:160 JazzTheRabbit/FreePBX-SQLi-RCE/JTR-CVE-2025-57819.py:125 JazzTheRabbit/FreePBX-SQLi-RCE/JTR-CVE-2025-57819.py:141
POST /admin/config.php
- Body markers
username=password=username=pbx_inapplication/x-www-form-urlencoded- Seen in
- 7 repos: 0xEhab/FreePBX-CVE-2025-57819-RCE, 0xyngtg/FreePBX-CVE-2025-57819-CVE-2025-61678, HexBytee/FreePBX-SQLi-RCE, JazzTheRabbit/FreePBX-SQLi-RCE, RokuSec/FreePBX-SQLi-RCE, TeteREN/CVE-2025-57819-RCE, TheScriptKiddoz/FreePBX-SQLi-RCE
- Evidence
- 0xEhab/FreePBX-CVE-2025-57819-RCE/exploit.py:106 0xyngtg/FreePBX-CVE-2025-57819-CVE-2025-61678/exploit.py:48 HexBytee/FreePBX-SQLi-RCE/JTR-CVE-2025-57819.py:102 JazzTheRabbit/FreePBX-SQLi-RCE/JTR-CVE-2025-57819.py:102 RokuSec/FreePBX-SQLi-RCE/JTR-CVE-2025-57819.py:102 TeteREN/CVE-2025-57819-RCE/CVE-2025-57819_PoC.py:106
POST /admin/ajax.php
- Query
module=endpointcommand=upload_cust_fwmodule=usermancommand=checkPasswordReminder- Key headers
Referer: {var}/admin/config.php?display=epm_advancedReferer: {var}/admin/config.phpX-Requested-With: XMLHttpRequest- Body markers
name="dzuuid"name="dzchunkindex"name="dztotalfilesize"name="dzchunksize"name="dztotalchunkcount"name="dzchunkbyteoffset"name="# traversal out of /tftpboot/customfw/ into the web root; new dir so mkdir() succeeds "fwbrand""name="fwmodel"name="fwversion"name="file"module=corecommand=backupbackup_id=' OR 1=1-- -username=watchTowrpassword=loginpanel=admininmultipart/form-data- Seen in
- 5 repos: 0xEhab/FreePBX-CVE-2025-57819-RCE, Jeanback1/CVE-2025-57819-exploit, TeteREN/CVE-2025-57819-RCE, cybertechajju/cve-2025-57819, watchtowrlabs/watchTowr-vs-FreePBX-CVE-2025-57819
- Evidence
- 0xEhab/FreePBX-CVE-2025-57819-RCE/exploit.py:144 Jeanback1/CVE-2025-57819-exploit/cve_2025_57819_aio.py:286 TeteREN/CVE-2025-57819-RCE/CVE-2025-57819_PoC.py:144 cybertechajju/cve-2025-57819/cve-2025-57829.yaml:54 watchtowrlabs/watchTowr-vs-FreePBX-CVE-2025-57819/watchTowr-vs-FreePBX-CVE-2025-57819.py:77
GET /admin/config.php
- Seen in
- 4 repos: 0xEhab/FreePBX-CVE-2025-57819-RCE, 0xyngtg/FreePBX-CVE-2025-57819-CVE-2025-61678, TeteREN/CVE-2025-57819-RCE, cybertechajju/cve-2025-57819
- Evidence
- 0xEhab/FreePBX-CVE-2025-57819-RCE/exploit.py:105 0xEhab/FreePBX-CVE-2025-57819-RCE/exploit.py:115 0xyngtg/FreePBX-CVE-2025-57819-CVE-2025-61678/exploit.py:21 TeteREN/CVE-2025-57819-RCE/CVE-2025-57819_PoC.py:105 TeteREN/CVE-2025-57819-RCE/CVE-2025-57819_PoC.py:115 cybertechajju/cve-2025-57819/cve-2025-57829.yaml:20
GET /{var}
- Query
cmd=echocmd=id)cmd=idcmd=- Seen in
- 3 repos: YuvrajSHAD/FreePBX-CVE-2025-57819, ozcanpng/CVE-2025-57819-FreePBX-RCE2Root, r3vpwnx/CVE-2025-57819
- Evidence
- YuvrajSHAD/FreePBX-CVE-2025-57819/full_exlpoit.py:118 YuvrajSHAD/FreePBX-CVE-2025-57819/full_exlpoit.py:253 ozcanpng/CVE-2025-57819-FreePBX-RCE2Root/CVE-2025-57819.py:134 ozcanpng/CVE-2025-57819-FreePBX-RCE2Root/CVE-2025-57819.py:384 r3vpwnx/CVE-2025-57819/exploit.py:71 r3vpwnx/CVE-2025-57819/exploit.py:84
GET /admin/config.php#
- Seen in
- 1 repo: rxerium/CVE-2025-57819
- Evidence
- rxerium/CVE-2025-57819/template.yaml:19
GET /api/health.php
- Ports
- 8080, 8082
- Seen in
- 1 repo: shivammittal2403/cve-2025-57819-freepbx-range
- Evidence
- shivammittal2403/cve-2025-57819-freepbx-range/attacker/tools/lab_verify.py:5 shivammittal2403/cve-2025-57819-freepbx-range/scripts/healthcheck.sh:3 shivammittal2403/cve-2025-57819-freepbx-range/scripts/verify.sh:5 shivammittal2403/cve-2025-57819-freepbx-range/target/scripts/healthcheck.sh:2 shivammittal2403/cve-2025-57819-freepbx-range/tests/test_target.sh:3
GET /api/status.php
- Ports
- 8080, 8082
- Seen in
- 1 repo: shivammittal2403/cve-2025-57819-freepbx-range
- Evidence
- shivammittal2403/cve-2025-57819-freepbx-range/attacker/tools/recon.py:8
GET /webshell.php
- Query
cmd=idcmd=cat /etc/passwdcmd=php -r '$sock=fsockopen("- Seen in
- 1 repo: jf-gondim/freepbx-endpoint-sqli-rce
- Evidence
- jf-gondim/freepbx-endpoint-sqli-rce/README.md:102 jf-gondim/freepbx-endpoint-sqli-rce/README.md:103 jf-gondim/freepbx-endpoint-sqli-rce/README.md:117
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/admin/ajax\.php\?(?:.*&)?module=FreePBX\\modules\\endpoint\\ajax.*command=model.*template=x.*model=model.*brand=.*brand=x';.*cmd=echo.*template=.*model=.*brand=x' AND EXTRACTVALUE\(1,CONCAT\('~USER:',\(SELECT USER\(\)\),'~'\)\) --.*module=endpoint.*brand=Cisco.*module=.*command=.*brand=Cisco\)
(?i)^/admin/config\.php(?:[?#].*)?$
(?i)^/admin/ajax\.php\?(?:.*&)?module=endpoint.*command=upload_cust_fw.*module=userman.*command=checkPasswordReminder
(?i)^/admin/config\.php(?:[?#].*)?$
(?i)^/[^/?#]*\?(?:.*&)?cmd=echo.*cmd=id\).*cmd=id.*cmd=
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [443,8080,8082] (msg:"GG PoC-Monitor CVE-2025-57819 FreePBX endpoint exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/admin/ajax.php"; http.uri; content:"module=FreePBX|5c|modules|5c|endpoint|5c|ajax"; http.uri; content:"command=model"; http.uri; content:"template=x"; http.uri; content:"model=model"; http.uri; content:"brand="; http.uri; content:"brand=x'|3b|"; http.uri; content:"cmd=echo"; http.uri; content:"template="; http.uri; content:"model="; http.uri; content:"brand=x' AND EXTRACTVALUE(1,CONCAT('~USER:',(SELECT USER()),'~')) --"; http.uri; content:"module=endpoint"; http.uri; content:"brand=Cisco"; http.uri; content:"module="; http.uri; content:"command="; http.uri; content:"brand=Cisco)"; reference:url,poc.griffinguard.io/cve/CVE-2025-57819; classtype:web-application-attack; sid:9707815; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2025-57819 FreePBX endpoint exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/admin/config.php"; http.request_body; content:"username="; http.request_body; content:"password="; http.request_body; content:"username=pbx_"; reference:url,poc.griffinguard.io/cve/CVE-2025-57819; classtype:web-application-attack; sid:9310597; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2025-57819 FreePBX endpoint exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/admin/ajax.php"; http.uri; content:"module=endpoint"; http.uri; content:"command=upload_cust_fw"; http.uri; content:"module=userman"; http.uri; content:"command=checkPasswordReminder"; http.header_names; content:"Referer"; nocase; http.header_names; content:"Referer"; nocase; http.header; content:"X-Requested-With: XMLHttpRequest"; nocase; http.request_body; content:"name=|22|dzuuid|22|"; http.request_body; content:"name=|22|dzchunkindex|22|"; http.request_body; content:"name=|22|dztotalfilesize|22|"; http.request_body; content:"name=|22|dzchunksize|22|"; http.request_body; content:"name=|22|dztotalchunkcount|22|"; http.request_body; content:"name=|22|dzchunkbyteoffset|22|"; http.request_body; content:"name=|22|# traversal out of /tftpboot/customfw/ into the web root|3b| new dir so mkdir() succeeds
|22|fwbrand|22||22|"; http.request_body; content:"name=|22|fwmodel|22|"; http.request_body; content:"name=|22|fwversion|22|"; http.request_body; content:"name=|22|file|22|"; http.request_body; content:"module=core"; http.request_body; content:"command=backup"; http.request_body; content:"backup_id=' OR 1=1-- -"; http.request_body; content:"username=watchTowr"; http.request_body; content:"password="; http.request_body; content:"loginpanel=admin"; reference:url,poc.griffinguard.io/cve/CVE-2025-57819; classtype:web-application-attack; sid:9074953; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2025-57819 FreePBX endpoint exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/admin/config.php"; reference:url,poc.griffinguard.io/cve/CVE-2025-57819; classtype:web-application-attack; sid:9826763; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2025-57819 FreePBX endpoint exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"cmd=echo"; http.uri; content:"cmd=id)"; http.uri; content:"cmd=id"; http.uri; content:"cmd="; reference:url,poc.griffinguard.io/cve/CVE-2025-57819; classtype:web-application-attack; sid:9290212; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: FreePBX endpoint exploit attempt (CVE-2025-57819)
id: gg-pocmon-cve-2025-57819-9707815
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-57819. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-57819
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/admin/ajax.php'
cs-uri-query|contains|all:
- 'module=FreePBX\modules\endpoint\ajax'
- 'command=model'
- 'template=x'
- 'model=model'
- 'brand='
- 'brand=x'';'
- 'cmd=echo'
- 'template='
- 'model='
- 'brand=x'' AND EXTRACTVALUE(1,CONCAT(''~USER:'',(SELECT USER()),''~'')) --'
- 'module=endpoint'
- 'brand=Cisco'
- 'module='
- 'command='
- 'brand=Cisco)'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2025.57819
title: FreePBX endpoint exploit attempt (CVE-2025-57819)
id: gg-pocmon-cve-2025-57819-9310597
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-57819. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-57819
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/admin/config.php'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2025.57819
title: FreePBX endpoint exploit attempt (CVE-2025-57819)
id: gg-pocmon-cve-2025-57819-9074953
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-57819. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-57819
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/admin/ajax.php'
cs-uri-query|contains|all:
- 'module=endpoint'
- 'command=upload_cust_fw'
- 'module=userman'
- 'command=checkPasswordReminder'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2025.57819
title: FreePBX endpoint exploit attempt (CVE-2025-57819)
id: gg-pocmon-cve-2025-57819-9826763
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-57819. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-57819
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/admin/config.php'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2025.57819
title: FreePBX endpoint exploit attempt (CVE-2025-57819)
id: gg-pocmon-cve-2025-57819-9290212
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-57819. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-57819
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-query|contains|all:
- 'cmd=echo'
- 'cmd=id)'
- 'cmd=id'
- 'cmd='
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2025.57819