CVE-2025-62521 ChurchCRM has unauthenticated RCE in its Install Wizard

Critical 10.0 Published Updated

Unauthenticated attackers can inject arbitrary PHP code during the initial installation process, leading to complete server compromise.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-62521?

CVE-2025-62521 is a critical code injection vulnerability in Churchcrm Churchcrm, published on 17 Dec 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

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.

Weakness: CWE-94

Which versions are affected by CVE-2025-62521?

It affects 1 product.

Products include Churchcrm Churchcrm.

How do I fix CVE-2025-62521?

No fix has been published for CVE-2025-62521 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2025-62521 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-62521 exists.

Public exploit code: 1 Metasploit module.

All Churchcrm Churchcrm vulnerabilities

Sources

Also known as GHSA-m8jq-j3p9-2xf3.

Is CVE-2025-62521 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free