This module exploits a Remote Code Execution (RCE) vulnerability in ChurchCRM versions prior to 6.2.0. The vulnerability resides in the Database Restore functionality, which allows an authenticated user with administrative privileges to upload a malicious backup file. By bypassing upload restrictions via a crafted .htaccess file, the module enables PHP code execution in the target directory, ultimately providing the attacker with a Meterpreter shell.
Exploit database
Vulnerability
CVE-2025-68109
ChurchCRM vulnerable to RCE with database restore functionality
Vulnerability details
- Score
- 9.1
- Severity
- critical
CVSS 3.1 · GitHub_M
Vector string
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:HDescription
ChurchCRM is an open-source church management system. In versions prior to 6.5.3, the Database Restore functionality does not validate the content or file extension of uploaded files. As a result, an attacker can upload a web shell file and subsequently upload a .htaccess file to enable direct access to it. Once accessed, the uploaded web shell allows remote code execution (RCE) on the server. Version 6.5.3 fixes the issue.
CVE ProgramExploit source choices
1 sourceChurchCRM Database Restore RCE 6.2.0
2025-12-17churchcrm_db_restore_rce.rb