Skip to main content

PHP CVE-2026-40484

CRITICAL
Improper Privilege Management (CWE-269)
2026-04-18 security-advisories@github.com
9.1
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Obtain administrator credentials
  2. Delivery
    Authenticate to ChurchCRM admin panel
  3. Exploit
    Craft backup archive with PHP webshell in Images/ directory
  4. Install
    Upload malicious archive via restore function
  5. C2
    Trigger extraction and file copy to web root
  6. Execute
    Access webshell via HTTP request
  7. Impact
    Execute 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Vendor (github) PRIMARY 9.1 CRITICAL
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.1%
Top 84% exploitable
Social Media
3
Sightings
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Total

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In 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

CVE-2012-1823 CRITICAL POC
9.8 May 11

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

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

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

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

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

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy