Skip to main content

PHP CVE-2026-40581

HIGH
Cross-Site Request Forgery (CSRF) (CWE-352)
2026-04-18 security-advisories@github.com
8.1
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

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

  1. Access
    Reconnaissance of ChurchCRM installation
  2. Delivery
    Craft malicious HTML with CSRF payload
  3. Exploit
    Phishing email to administrator
  4. Execution
    Admin visits malicious page while authenticated
  5. Persist
    Browser sends GET request with session cookies
  6. Impact
    Permanent family record deletion

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Anti-CSRF tokens, SameSite cookies
MITRE ATT&CK

1 technique across 1 tactic: Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the SelectDelete.php endpoint to accept family record deletion via GET requests without CSRF token validation, which affects all ChurchCRM versions before 7.2.0 in default configuration. Attack prerequisites: (1) targeted administrator must have an active authenticated session to the ChurchCRM instance, (2) attacker must successfully social engineer the administrator into visiting a malicious webpage via phishing, watering hole, or malicious advertisement while that session is active, (3) attacker must know or enumerate valid family record IDs to target specific deletions (though sequential ID guessing could enable mass deletion campaigns). User interaction (UI:R) is mandatory - the victim must click a link or visit a compromised site. No special ChurchCRM configuration, non-default features, or elevated privileges beyond standard administrator access are required. Browsers with third-party cookie blocking or same-site cookie policies may partially mitigate exploitation by preventing cross-origin cookie transmission, though administrators using the same browser session for both ChurchCRM and external browsing remain vulnerable.

Impact

Real-world risk is MODERATE despite the 8.1 CVSS score. The CVSS vector correctly identifies high integrity and availability impact (I:H/A:H) since attackers can permanently delete critical church records. However, the PR:N metric is misleading - while the attacker needs no authentication, successful exploitation requires an authenticated administrator to be socially engineered into visiting a malicious page (UI:R), significantly raising the practical attack complexity. No EPSS score provided, but CSRF vulnerabilities typically have lower exploitation probability than RCE due to requiring social engineering and timing (admin must be logged in). Not listed in CISA KEV, suggesting no widespread active exploitation. The attack is trivially automatable once victim interaction occurs (single GET request), but targeting requires knowing administrator email addresses or web browsing patterns. Technical impact is severe for targeted organizations (permanent data loss of family records, financial pledges, personal information), making this a priority for ChurchCRM installations but not an internet-wide emergency. The GitHub advisory and commit-level fix (rather than tagged release announcement) suggest responsible disclosure and rapid remediation. Organizations should prioritize patching if administrators routinely access external links from their work browsers.

Exploit ScenarioDerived

An attacker identifies a ChurchCRM installation through reconnaissance (version disclosure, Shodan search, or targeting known churches). They craft an HTML page containing an invisible image tag with src pointing to the vulnerable SelectDelete.php endpoint with parameters specifying a target family ID: <img src='https://victim-church.example/SelectDelete.php?FamilyID=123&Confirmed=true' style='display:none'>. The attacker then sends a phishing email to church administrators with a link to this malicious page, disguised as a relevant church resource or donation portal. When an administrator clicks the link while logged into ChurchCRM, their browser automatically sends the GET request with valid session cookies, triggering permanent deletion of family record 123 and all associated member data, pledges, and notes without any confirmation prompt or audit trail linking to the external attack.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Apr 18, 2026

Cross-Site Request Forgery (CSRF) in ChurchCRM versions before 7.2.0 allows remote attackers to permanently delete family records and all associated data (notes, pledges, persons, property) through the SelectDelete.php endpoint. The endpoint executes irreversible deletions via unauthenticated GET requests without CSRF token validation, requiring only that an authenticated administrator visit a malicious page. Attackers can weaponize this via phishing emails or malicious websites to trigger silent data destruction. Fixed in version 7.2.0 via PR #8613 and commit 3936162. No KEV listing or public POC identified at time of analysis, though exploitation is trivial given the simplicity of CSRF attacks against GET endpoints.

RemediationAI

Upgrade to ChurchCRM version 7.2.0 or later, which implements CSRF token validation for the SelectDelete.php endpoint per commit 39361628613af7682b813f3e62a412559616d674 and pull request #8613 (https://github.com/ChurchCRM/CRM/pull/8613). For organizations unable to immediately upgrade, implement compensating controls: configure web application firewall (WAF) rules to block GET requests to SelectDelete.php (may break legitimate admin workflows if the application UI uses GET for deletion links), educate administrators to never click external links while logged into ChurchCRM (reduces social engineering success but relies on user behavior), or implement network-level restrictions allowing ChurchCRM access only from trusted IP ranges (limits exposure but impacts remote administration). Note that blocking GET requests will likely require application-level changes to use POST, making upgrade the only complete remediation. Review audit logs for suspicious deletion activity in family records between initial deployment and patching, though legitimate administrative deletions may be indistinguishable from CSRF-triggered ones without correlation to user activity timestamps.

Affected ProductsAI

ChurchCRM versions prior to 7.2.0 are affected. ChurchCRM is a PHP-based church management system distributed via GitHub at ChurchCRM/CRM. The vulnerability exists in the SelectDelete.php endpoint responsible for family record deletion. The vendor advisory is available at https://github.com/ChurchCRM/CRM/security/advisories/GHSA-6qxv-xw9j-77pj with technical details in pull request #8613.

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 open-source church management system. The vulnerability stems from CWE-352 (Cross-Site Request Forgery), a classic state-changing operation performed via GET request without anti-CSRF tokens. The SelectDelete.php endpoint accepts deletion commands through URL parameters alone, violating secure coding practices that mandate POST requests and unpredictable tokens for destructive operations. When a browser loads a resource (image tag, iframe, script) pointing to the vulnerable endpoint with crafted parameters, it automatically sends the administrator's session cookies, causing the server to authenticate and execute the deletion. This architectural flaw is common in legacy PHP applications predating widespread CSRF protection frameworks. The CVSS vector AV:N/AC:L/PR:N/UI:R indicates network-accessible exploitation with low complexity, requiring no authentication from the attacker (PR:N) but requiring user interaction (UI:R) - the victim admin must visit the malicious page while authenticated to ChurchCRM.

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 8.1 HIGH
AV:N/AC:L/PR:N/UI:R/S:U/C:N/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
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
High

DescriptionCVE.org

ChurchCRM is an open-source church management system. In versions prior to 7.2.0, the family record deletion endpoint (SelectDelete.php) performs permanent, irreversible deletion of family records and all associated data via a plain GET request with no CSRF token validation. An attacker can craft a malicious page that, when visited by an authenticated administrator, silently triggers deletion of targeted family records including associated notes, pledges, persons, and property data without any user interaction. This issue has been fixed in version 7.2.0.

Executive ViewAI

Why It Matters

ChurchCRM versions before 7.2.0 contain a CSRF vulnerability in the SelectDelete.php endpoint that allows attackers to permanently delete family records and all associated data (notes, pledges, persons, property) by tricking authenticated administrators into visiting a malicious webpage. This represents a critical data loss and business continuity risk for organizations using affected versions, as attackers can silently destroy irreversible organizational records without administrative knowledge or consent.

Business Impact: Severe
Compensating Controls

Vendor-released patch: ChurchCRM 7.2.0 (PR #8613, commit 3936162). If immediate upgrade is not feasible: (1) Restrict network access to SelectDelete.php endpoint to trusted administrative IP ranges only; (2) Disable GET-based deletion requests via web application firewall rules, permitting only POST with CSRF token validation; (3) Implement email filtering to block common CSRF phishing vectors; (4) Require multi-factor authentication for all administrator accounts to reduce phishing success rates.

Threat Intelligence Overview

EPSS Score
0.0%
Top 100% exploitable
Social Media
1
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 HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
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
Partial

Priority Score

40
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +40
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.

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