{"id":"MSF-unix--http--freepbx_unauth_sqli_to_rce","name":"FreePBX ajax.php unauthenticated SQLi to RCE","description":"This module exploits an unauthenticated SQL injection flaw in FreePBX prior to versions 15.0.66, 16.0.89, and 17.0.3. The vulnerability lies in the /admin/ajax.php endpoint, which is accessible without authentication. Additionally, the database user created by FreePBX can schedule cronjobs, allowing remote code execution on the target system.","cves":["CVE-2025-57819"],"author":"Echo_Slow, Piotr Bazydlo, Sonny","published":"2025-08-28","platform":"Linux","type":"remote","language":"Ruby","source":"metasploit","sourceUrl":"https://github.com/rapid7/metasploit-framework/blob/90dfbaa741421d0179f9f371109c215d49400444/modules/exploits/unix/http/freepbx_unauth_sqli_to_rce.rb","path":"modules/exploits/unix/http/freepbx_unauth_sqli_to_rce.rb","revision":"90dfbaa741421d0179f9f371109c215d49400444","filename":"freepbx_unauth_sqli_to_rce.rb","vulnerabilities":[{"id":"CVE-2025-57819","state":"PUBLISHED","title":"FreePBX Affected by Authentication Bypass Leading to SQL Injection and RCE","titleSource":"CVE Program","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.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2025-57819","cvss":{"version":"4.0","baseScore":10,"severity":"critical","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","source":"GitHub_M","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2025-57819"},"updatedAt":"2026-02-26T17:47:51.014Z","retrievedAt":"2026-11-25T16:13:33.979Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/MSF-unix--http--freepbx_unauth_sqli_to_rce.png?v=2","url":"https://exploitbin.com/exploits/MSF-unix--http--freepbx_unauth_sqli_to_rce","downloadUrl":"https://exploitbin.com/api/v1/exploits/MSF-unix--http--freepbx_unauth_sqli_to_rce/download","codeUrl":"https://exploitbin.com/api/v1/exploits/MSF-unix--http--freepbx_unauth_sqli_to_rce/code","licenseUrl":"https://exploitbin.com/sources#metasploit"}