CVE-2025-62521 in Churchcrm
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 vulnera...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Churchcrm | Churchcrm | < 5.21.0 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2025-62521 |
|---|---|
| BreachSpider ID | BS-2025-GLOBAL-026514-C |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2025-12-17 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-94: Code Injection
Attacker injects arbitrary code that is executed by the application process.
Related attack patterns (CAPEC)
CAPEC-35 Leverage Executable Code in Non-Executable Files via CWE-94
CAPEC-77 Manipulating User-Controlled Variables via CWE-94
CAPEC-242 Code Injection via CWE-94
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
ChurchCRM, an open-source church management system, is vulnerable to a pre-authentication remote code execution (RCE) in versions prior to 5.21.0. This vulnerability allows unauthenticated attackers to inject arbitrary PHP code during the initial installation process, leading to complete server compromise. The vulnerability is critical due to its ease of exploitation and the lack of required authentication.
The vulnerability exists in the `setup/routes/setup.php` file, where user input from the setup form is directly concatenated into a PHP configuration template without any validation or sanitization. This allows an attacker to inject PHP code that gets written to `Include/Config.php`, which is executed on every page load. The attacker can exploit this vulnerability without any credentials, making it particularly dangerous.
Compensating controls AI-drafted, review before use
Implement strict input validation and sanitization for all user inputs in the setup wizard. Use a web application firewall (WAF) to block suspicious requests containing PHP code.
NERC CIP: CIP-007 CIP-007-R2
IEC 62443: SR 7.6
Not validated for your network. A compensating control does not replace the vendor fix.
Questions
What is CVE-2025-62521?
ChurchCRM, an open-source church management system, is vulnerable to a pre-authentication remote code execution (RCE) in versions prior to 5.21.0. This vulnerability allows unauthenticated attackers to inject arbitrary PHP code during the initial installation process, leading to complete server compromise. The vulnerability is critical due to its ease of exploitation and the lack of required authentication.
What is the CVSS score for CVE-2025-62521?
CVE-2025-62521 has CVSS 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 3.0%.
Is CVE-2025-62521 actively exploited?
No confirmed active exploitation of CVE-2025-62521 as of 2026-09-25.
How do I remediate CVE-2025-62521?
Priority: IMMEDIATE.
What systems are affected by CVE-2025-62521?
CVE-2025-62521 affects Churchcrm Churchcrm.
What NERC-CIP standard applies to CVE-2025-62521?
NERC CIP CIP-007 CIP-007-R2: This vulnerability violates CIP-007-R2 by allowing unauthorized access to the system, which can lead to the compromise of critical assets and data.
What IEC 62443 requirement maps to CVE-2025-62521?
IEC 62443 SR 7.6: This vulnerability maps to SR 7.6, which requires the implementation of secure coding practices to prevent injection attacks. The lack of input validation and sanitization in the setup wizard violates this requirement.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Churchcrm","product":"Churchcrm","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.