FreePBX - SQLi (CVE-2025-57819)
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.
psychologyCrowdSec Analysis
CVE-2025-57819 is a critical vulnerability in FreePBX versions 15, 16, and 17 that allows unauthenticated attackers to access the FreePBX Administrator interface due to improper sanitization of user input. Exploiting this flaw can lead to arbitrary database manipulation and remote code execution, making it possible for attackers to fully compromise affected systems.
CrowdSec has been tracking this vulnerability and its exploits since 19th of September 2025.
CrowdSec network data shows that most actors exploiting CVE-2025-57819 rely on broad, untargeted scans with minimal filtering. The activity is largely automated and opportunistic in nature. CrowdSec data also reveals a clear uptick in attacks involving CVE-2025-57819 over the past week. Activity is above the usual baseline, suggesting growing attention from attackers. This may reflect rising awareness, recent exploit releases, or expanded targeting efforts.
Attackers exploit FreePBX by sending crafted requests to /admin/ajax.php with malicious SQL code in the brand parameter, enabling unauthenticated remote code execution and manipulation of backend cron jobs. Subsequent requests may target dynamically created PHP files in the web root to execute arbitrary commands.
Full Intelligence Available
Connect your API key to access CrowdSec scores, exploit timelines, and attacker IPs.
| Event | Date |
|---|---|
| CVE Published | 2025-08-28 |
| CISA KEV | 2025-08-29 |
| Rule Released | 2025-09-19 |
| CrowdSec First Seen | 2025-09-19 |
| CISA Remediation Deadline | 2025-09-19 |
Related Weaknesses
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.
The product requires authentication, but the product has an alternate path or channel that does not require authentication.
Remediation & Protection
External References
- https://github.com/watchtowrlabs/watchTowr-vs-FreePBX-CVE-2025-57819
- https://github.com/FreePBX/security-reporting/security/advisories/GHSA-m42g-xg4c-5f3h
- https://community.freepbx.org/t/security-advisory-please-lock-down-your-administrator-access/107203
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-57819.yaml