ChurchCRM is an open-source church management system. Prior to version 5.21.0, a pre-authentication remote code execution vulnerability in ChurchCRM's setup wizard allows unauthenticated attackers to inject arbitrary PHP code during the initial installation process, leading to complete server compromise. The vulnerability exists in `setup/routes/setup.php` where user input from the setup form is directly concatenated into a PHP configuration template without any validation or sanitization. Any parameter in the setup form can be used to inject PHP code that gets written to `Include/Config.php`, which is then executed on every page load. This is more severe than typical authenticated RCE vulnerabilities because it requires no credentials and affects the installation process that administrators must complete. Version 5.21.0 patches the issue.
References
| Link | Resource |
|---|---|
| https://github.com/ChurchCRM/CRM/security/advisories/GHSA-m8jq-j3p9-2xf3 | Exploit Vendor Advisory |
Configurations
History
18 Dec 2025, 19:10
| Type | Values Removed | Values Added |
|---|---|---|
| First Time |
Churchcrm churchcrm
Churchcrm |
|
| References | () https://github.com/ChurchCRM/CRM/security/advisories/GHSA-m8jq-j3p9-2xf3 - Exploit, Vendor Advisory | |
| CPE | cpe:2.3:a:churchcrm:churchcrm:*:*:*:*:*:*:*:* |
17 Dec 2025, 19:16
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2025-12-17 19:16
Updated : 2025-12-18 19:10
NVD link : CVE-2025-62521
Mitre link : CVE-2025-62521
CVE.ORG link : CVE-2025-62521
JSON object : View
Products Affected
churchcrm
- churchcrm
CWE
CWE-94
Improper Control of Generation of Code ('Code Injection')
