PHP
CVE-2026-40484
CRITICAL
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain administrator credentials
-
DeliveryAuthenticate to ChurchCRM admin panel
-
ExploitCraft backup archive with PHP webshell in Images/ directory
-
InstallUpload malicious archive via restore function
-
C2Trigger extraction and file copy to web root
-
ExecuteAccess webshell via HTTP request
-
ImpactExecute arbitrary commands as web server user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V8 - Authorization Least privilege enforcement
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires authenticated access with administrator-level privileges to the ChurchCRM application. The attacker must have valid credentials for an account with permissions to access the database backup restore functionality, or successfully execute a CSRF attack against a currently authenticated administrator. No additional non-default configuration or specific feature enablement is required beyond standard ChurchCRM installation with the backup/restore feature accessible. The web server must allow PHP execution in the document root's Images/ directory (default configuration in most PHP web server deployments). Exploitation is limited by the need for high-privilege access, but the CSRF vector reduces this limitation by enabling forced exploitation through social engineering. The vulnerability affects default configurations of ChurchCRM versions prior to 7.2.0. |
| Impact | Real-world risk is moderate despite the 9.1 CVSS score. The CVSS vector (AV:N/AC:L/PR:H/UI:N/S:C) indicates network accessibility with low complexity, but requires high privileges (administrator authentication), which significantly constrains the attack surface. The Changed scope (S:C) reflects impact beyond the vulnerable component itself. No EPSS data provided, but the narrow attack surface (admin-only access) suggests lower probability of mass exploitation. Not present in CISA KEV, indicating no confirmed active exploitation at time of analysis. The CSRF component (UI:N in vector contradicts the CSRF requirement - this discrepancy suggests the vector may represent the primary webshell upload path rather than the CSRF variant) moderately increases risk by enabling social engineering attacks. Publicly available patch in version 7.2.0 with specific GitHub commit (68be1d12) reduces urgency for organizations with active patch management. Primary risk is to Internet-facing ChurchCRM installations where administrator accounts may be compromised through credential reuse, phishing, or session hijacking. Organizations with defense-in-depth controls (WAF, file upload restrictions, PHP execution blocking in upload directories) have reduced exposure. |
| Exploit ScenarioDerived | An attacker who has compromised an administrator account (through credential stuffing, phishing, or session hijacking) creates a malicious ChurchCRM backup archive containing a PHP webshell placed within the Images/ directory structure. The attacker authenticates to ChurchCRM, navigates to the database restore function, and uploads the crafted archive. The recursiveCopyDirectory() function extracts and copies the webshell to a predictable web-accessible path such as /Images/shell.php. The attacker then issues HTTP requests directly to the webshell URL, achieving arbitrary command execution as the web server user to exfiltrate database contents, modify records, or pivot to internal network resources. Alternatively, an attacker uses CSRF to trick an authenticated administrator into visiting a malicious page that silently submits the restore request with the weaponized archive, achieving exploitation without directly compromising admin credentials. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 18, 2026
Remote code execution in ChurchCRM <7.2.0 allows authenticated administrators to upload PHP webshells through the database backup restore function, which copies files from archive Images/ directories to web-accessible paths without extension filtering. The vulnerability includes a CSRF bypass enabling forced exploitation through cross-site request forgery. Exploitation requires high privileges (administrator account) but is network-accessible with low complexity (CVSS:3.1/AV:N/AC:L/PR:H). No active exploitation confirmed (not in CISA KEV). Vendor-released fix available in version 7.2.0 via GitHub PR #8610 and commit 68be1d12.
RemediationAI
Upgrade to ChurchCRM version 7.2.0 or later, which implements file extension filtering in the recursiveCopyDirectory() function and adds CSRF token validation to the restore endpoint per GitHub PR #8610 (https://github.com/ChurchCRM/CRM/pull/8610). For environments unable to upgrade immediately, implement compensating controls: (1) Restrict administrator account access to trusted IP ranges via web server configuration or firewall rules - reduces exposure to credential compromise but impacts legitimate remote administration; (2) Block PHP execution in the web document root's Images/ directory and all upload paths using web server configuration (Apache: php_flag engine off in .htaccess; Nginx: location directive denying .php files) - prevents webshell execution but may break legitimate image processing if server-side PHP thumbnailing is used; (3) Implement file upload restrictions at the web application firewall or reverse proxy layer to reject archives containing .php, .phtml, .php5 files - may cause false positives if legitimate backups contain PHP configuration files. Review existing backup archives for suspicious PHP files in Images/ directories. Audit administrator account activity logs for unexpected restore operations.
Affected ProductsAI
ChurchCRM versions prior to 7.2.0 are affected. The vulnerability exists in the database backup restore functionality accessible to authenticated administrators. Specific affected versions are not enumerated in available data, but all versions before the 7.2.0 release should be considered vulnerable. The fix is tracked in GitHub pull request #8610 and commit 68be1d12bc4cc1429575ae797ef05efe47030d39. Vendor advisory available at https://github.com/ChurchCRM/CRM/security/advisories/GHSA-2932-77f9-62fx provides additional context.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
ChurchCRM is a PHP-based church management system providing database backup and restore capabilities. The vulnerability stems from the recursiveCopyDirectory() function used during backup restoration, which performs file copying operations from uploaded archives to the web server's document root without validating file extensions or MIME types. This represents CWE-269 (Improper Privilege Management) where administrative privileges are insufficient to prevent dangerous operations. The restore endpoint processes ZIP/archive files containing an Images/ directory structure, extracting and copying contents directly into publicly accessible web paths. The lack of CSRF token validation on the restore endpoint creates a second attack vector, allowing attackers to force exploitation through social engineering against authenticated administrators. PHP execution in the web document root enables direct code execution as the web server process user (typically www-data, apache, or nginx).
Know when PHP gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
Primary rating from Vendor (github) · only source for this CVE.
CVSS VectorVendor: github
DescriptionCVE.org
ChurchCRM is an open-source church management system. In versions prior to 7.2.0, the database backup restore functionality extracts uploaded archive contents and copies files from the Images/ directory into the web-accessible document root using recursiveCopyDirectory(), which performs no file extension filtering. An authenticated administrator can upload a crafted backup archive containing a PHP webshell inside the Images/ directory, which is then written to a publicly accessible path and executable via HTTP requests, resulting in remote code execution as the web server user. The restore endpoint also lacks CSRF token validation, enabling exploitation through cross-site request forgery targeting an authenticated administrator. This issue has been fixed in version 7.2.0.
Executive ViewAI
ChurchCRM versions prior to 7.2.0 contain a critical remote code execution vulnerability that allows authenticated administrators to upload malicious PHP files through the database backup restore function, potentially compromising the entire application and underlying infrastructure. Organizations running ChurchCRM must immediately upgrade to version 7.2.0 to prevent insider threats and account compromise from resulting in complete system takeover.
Vendor-released patch: version 7.2.0. If immediate upgrade is not feasible, restrict administrator role membership to trusted personnel only, disable the database backup restore function at the application level if possible, and implement network segmentation to limit administrator access to ChurchCRM from trusted networks only. Monitor web server logs for suspicious .php file uploads in image directories. These are interim measures only-patching to 7.2.0 is required for full remediation.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.
Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Related Vulnerabilities in ChurchCRM Multiple Security Vulnerabilities
View all 8In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB