CVE-2025-62521

CRITICAL

ChurchCRM < 5.21.0 - Unauthenticated Remote Code Execution via Setup Wizard PHP Injection

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2025-62521. PoCs published by LucasCsmt, including Metasploit module exploits/multi/http/churchcrm_install_unauth_rce.

AI-analyzed exploit summary This Metasploit module exploits an unauthenticated RCE vulnerability in ChurchCRM 6.8.0 and earlier by injecting malicious PHP code into the installation process via the 'setup' page. It supports multiple payload types (Linux command stager, PHP in-memory, and PHP fetch) and executes arbitrary commands on the target server.

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.

Exploits (1)

metasploit WORKING POC NORMAL
by LucasCsmt · rubypoc
https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/churchcrm_install_unauth_rce.rb

This Metasploit module exploits an unauthenticated RCE vulnerability in ChurchCRM 6.8.0 and earlier by injecting malicious PHP code into the installation process via the 'setup' page. It supports multiple payload types (Linux command stager, PHP in-memory, and PHP fetch) and executes arbitrary commands on the target server.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: ChurchCRM <= 6.8.0
No auth needed
Prerequisites: Target must have the setup page accessible · ChurchCRM version <= 6.8.0
devstral-2 · analyzed Feb 19, 2026 Full analysis →

References (1)

Core 1
Core References

Scores

CVSS v3 10.0
EPSS 0.0415
EPSS Percentile 89.5%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation poc
Automatable yes
Technical Impact total

Details

CWE
CWE-94
Status published
Products (1)
churchcrm/churchcrm < 5.21.0
Published Dec 17, 2025
Tracked Since Feb 18, 2026