CVE-2026-39337·PHP vulnerability
ChurchCRM is an open-source church management system. Prior to 7.1.0, critical 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 "$dbPassword" variable is not sanitized. This vulnerability exists due to an incomplete fix for CVE-2025-62521. This vulnerability is fixed in 7.1.0.
- Severity
- critical
- Software
- PHP
- Fixed in
- 7.1.0
- Published
- 2026-04-07
Affected versions
Until: 7.1.0
Fixed in: 7.1.0
How to fix this CVE
Upgrade ChurchCRM to version 7.1.0 or later immediately, as this critical vulnerability allows unauthenticated attackers to execute arbitrary PHP code through the setup wizard without authentication. If you are running an affected version of PHP with ChurchCRM installed, disable or restrict access to the setup wizard endpoint until you can complete the upgrade. Additionally, review your web server logs for any suspicious activity during the setup phase and consider redeploying your application from a clean state after patching.
sudo dnf update phpDefensia detects this vulnerability
What an exploitation attempt looks like
Sample log line indicative of exploitation attempts:
POST /setup.php|install/index.php with parameter dbPassword containing PHP code patterns such as: <?php, system(, exec(, shell_exec(, passthru(, or base64 encoding followed by eval(WAF mitigation (if patching is not yet possible)
Add this rule to your WAF to block exploitation attempts while you schedule the patch.
Block all POST/GET requests to setup.php, install/*, or any installation wizard endpoints from non-trusted IP ranges. Implement authentication gate before setup wizard is accessible. Add ModSecurity rule to detect PHP code injection in POST parameters: SecRule ARGS 'php\s*\(' 'id:1000,phase:2,deny,status:403' for setup endpoints. Restrict setup.php execution to localhost only using IP whitelist rules.How to check if you are affected
- Check your ChurchCRM version by navigating to the admin panel or checking the version file: grep -r 'VERSION' /path/to/churchcrm/src/ | head -5
- Verify the setup.php or install wizard is still accessible by checking file permissions: ls -la /path/to/churchcrm/setup.php or ls -la /path/to/churchcrm/install/
- Search web server access logs for POST requests to setup or installation endpoints: grep -i 'setup\|install' /var/log/apache2/access.log | grep POST
- Confirm the patch is applied by checking ChurchCRM version matches 7.1.0+: curl http://localhost/churchcrm/api/version 2>/dev/null || check the composer.lock file version constraint
FAQ
What is CVE-2026-39337?
CVE-2026-39337 is a pre-authentication remote code execution vulnerability in ChurchCRM's setup wizard that allows attackers to inject malicious PHP code through an unsanitized database password parameter, bypassing authentication entirely and compromising the entire server.
Is CVE-2026-39337 being actively exploited?
No, CVE-2026-39337 is not currently listed in CISA's Known Exploited Vulnerabilities catalog and no public exploits are available, though the attack surface is critical and remediation should not be delayed.
What versions of ChurchCRM are affected by CVE-2026-39337?
All versions of ChurchCRM prior to 7.1.0 are affected, including all versions that attempted to patch the earlier CVE-2025-62521 but left the dbPassword variable unsanitized.
How do I check if my server is vulnerable to CVE-2026-39337?
Run: grep -r 'dbPassword' /path/to/churchcrm/setup.php | grep -v 'sanitize\|escape\|prepared' and verify ChurchCRM version with: grep '"version"' /path/to/churchcrm/composer.json | head -1. If the version is below 7.1.0 and setup.php is accessible without authentication, your system is vulnerable.
Does Defensia detect CVE-2026-39337?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If ChurchCRM is installed on a monitored server, CVE-2026-39337 will appear in your dashboard with remediation steps.
Related PHP CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-39337. Free for 1 server.
Get started free