Skip to main content

PHP CVE-2026-40480

HIGH
Authorization Bypass Through User-Controlled Key (CWE-639)
2026-04-18 security-advisories@github.com
7.1
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

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

  1. Access
    Obtain valid low-privilege credentials
  2. Delivery
    Authenticate to ChurchCRM web interface
  3. Exploit
    Enumerate GET /api/person/{personId} with sequential IDs
  4. Execution
    Extract sensitive PII from JSON responses
  5. Impact
    Compile member database

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Object-level authorization, IDOR prevention
Exploitation Conditions

Attacker must possess valid authenticated credentials to ChurchCRM with at least EditSelf permission level, which is the default minimum privilege granted to any registered user or volunteer. The vulnerable /api/person/{personId} endpoint must be accessible over the network (standard for all ChurchCRM deployments supporting remote access or mobile clients). No special configuration, non-default features, or additional privileges beyond basic user authentication are required. The application must be running ChurchCRM version 7.1.x or earlier. Exploitation is NOT limited by user interaction (UI:N), privilege level beyond basic authentication (PR:L), or deployment mode. However, the attacker cannot be completely unauthenticated (PR:L excludes PR:N) - the vulnerability requires bypassing object-level authorization after successful user authentication, not bypassing authentication itself. Default ChurchCRM installations are vulnerable without any configuration changes.

Impact

Real-world risk is MODERATE-HIGH for organizations running ChurchCRM <7.2.0, despite the 7.1 CVSS score. The attack requires only low-privileged authenticated access (PR:L), which any registered church volunteer or member typically possesses in these systems. Attack complexity is low (AC:L) with network accessibility (AV:N), meaning exploitation requires minimal technical skill - a simple authenticated HTTP request or browser developer tools suffices. The absence of EPSS scoring and KEV listing suggests no widespread automated exploitation or mass-scale targeting, but the public GitHub advisory (GHSA-5w59-32c8-933v) and fix commit provide full implementation details that sophisticated attackers or curious insiders could weaponize. The 'Authentication Bypass' tag is slightly misleading - this is not full authentication bypass but rather authorization bypass after authentication. Primary risk factors: (1) church management systems contain highly sensitive PII including children's data, pastoral notes, and financial records; (2) volunteer users often have legitimate low-level accounts, providing easy initial access; (3) many ChurchCRM instances are self-hosted by non-technical church staff with slow patch cycles. Mitigating factors: exploitation requires existing user credentials (not unauthenticated RCE), and impact is limited to confidentiality (no data manipulation or service disruption). SSVC assessment: exploitation=none (no public POC/KEV), automatable=yes (simple API parameter manipulation), technical_impact=partial (PII disclosure), suggests TRACK priority until exploitation evidence emerges, then escalate to ATTEND.

Exploit ScenarioDerived

A volunteer with basic EditSelf privileges (e.g., nursery coordinator, event organizer) authenticates to ChurchCRM with their legitimate credentials. Using browser developer tools or a simple Python script, they enumerate the GET /api/person/{personId} endpoint by iterating personId from 1 to 10000, harvesting full records for all church members including pastoral staff, donors, and families. The attacker compiles names, home addresses, phone numbers, and email addresses into a spreadsheet for sale to marketing firms, identity theft rings, or to facilitate targeted phishing campaigns against church members. The attack leaves minimal forensic trace if API logging is not enabled, and appears as normal authenticated API usage in default server logs.

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

Broken object-level authorization in ChurchCRM 7.1.x and earlier allows authenticated users with minimal EditSelf privileges to enumerate and exfiltrate sensitive personal data (names, addresses, phone numbers, emails) of all church members via the unauthenticated GET /api/person/{personId} API endpoint. While legacy UI enforces canEditPerson() checks, the API layer completely omits these authorization controls, enabling horizontal privilege escalation. Fixed in version 7.2.0. CVSS 7.1 (AV:N/AC:L/PR:L) indicates network-accessible exploitation by any low-privileged authenticated user with no technical complexity. EPSS data unavailable; no KEV listing or public POC identified at time of analysis, though the fix commit and GitHub advisory provide full technical details for replication.

RemediationAI

Upgrade to ChurchCRM version 7.2.0 immediately, which implements object-level authorization checks on the GET /api/person/{personId} endpoint per commit 28ea7a2965fc2fe30e150fadb1ae38a97f8225c2. The fix enforces canEditPerson() authorization logic consistently across both the legacy UI and API layers. Download from the official GitHub repository at https://github.com/ChurchCRM/CRM/releases and follow the project's upgrade procedures, ensuring database migrations complete successfully. For organizations unable to upgrade immediately, implement the following compensating controls with noted trade-offs: (1) Restrict /api/person/* routes to administrator roles only via web server configuration (Apache mod_rewrite or nginx location blocks) - this breaks legitimate API usage by non-admin users including mobile apps or integrations. (2) Deploy a web application firewall (WAF) rule blocking sequential personId enumeration patterns (e.g., more than 10 different personId requests per user per hour) - may generate false positives during legitimate bulk operations. (3) Enable comprehensive API access logging and monitor for abnormal GET /api/person/ request volumes from single user accounts - detective control only, does not prevent initial exploitation. Review access logs since initial deployment for evidence of unauthorized enumeration (users accessing personId values outside their authorized scope). Consult the fix pull request at https://github.com/ChurchCRM/CRM/pull/8616 for implementation details if backporting the authorization check to custom forks.

Affected ProductsAI

ChurchCRM versions prior to 7.2.0 are confirmed vulnerable per the GitHub security advisory GHSA-5w59-32c8-933v. The vulnerability exists in the PHP-based API layer introduced in modern versions (exact version range not specified, but affects all 7.x releases before 7.2.0). Both self-hosted deployments and any cloud-hosted instances running outdated versions are impacted. The vendor advisory at https://github.com/ChurchCRM/CRM/security/advisories/GHSA-5w59-32c8-933v provides authoritative affected version details. No CPE strings were provided in the input data, preventing precise automated asset identification via vulnerability scanners.

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 platform providing member directories, family records, and pastoral tools. The vulnerability stems from CWE-639 (Authorization Bypass Through User-Controlled Key), where the /api/person/{personId} REST endpoint accepts user-supplied personId parameters without verifying the requester's authorization to access that specific person record. The legacy PersonView.php controller implements canEditPerson() authorization checks that restrict data access based on user roles and permissions, but the API layer (likely introduced for modern SPA or mobile client support) fails to invoke these same authorization functions. This creates an Insecure Direct Object Reference (IDOR) attack surface where authenticated users can iterate through sequential or guessable personId values to harvest the entire member database. The CVSS 4.0 vector (VC:H/VI:N/VA:N) confirms high confidentiality impact with no integrity or availability effects, consistent with unauthorized read-only data exfiltration. GitHub references show the authorization check was added in commit 28ea7a2965fc2fe30e150fadb1ae38a97f8225c2 and tracked via issue #8617 and PR #8616.

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 7.1 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (github) · only source for this CVE.

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

ChurchCRM is an open-source church management system. In versions prior to 7.2.0, the GET /api/person/{personId} endpoint loads and returns person records without performing object-level authorization checks. Although the legacy PersonView.php page enforces canEditPerson() restrictions, the API layer omits this check. Any authenticated user with only EditSelf privileges can enumerate and read other members' records, exposing sensitive PII including names, addresses, phone numbers, and email addresses. This issue has been fixed in version 7.2.0.

Executive ViewAI

Why It Matters

ChurchCRM versions 7.1.x and earlier contain a broken authorization flaw in the API layer that allows any authenticated user-even those with minimal privileges-to access and export sensitive personal information (names, addresses, phone numbers, emails) for all church members. This represents a direct breach of member privacy and exposes the organization to regulatory risk, reputational damage, and potential legal liability if member data is exfiltrated.

Business Impact: High
Compensating Controls

Until vendor patch (version 7.2.0) is deployed: (1) Disable or restrict network access to the /api/person/* endpoints at the API gateway or firewall level if the endpoint is not required for critical operations; (2) Implement rate-limiting and anomaly detection on API calls to person endpoints; (3) Restrict API access to a whitelist of trusted internal IP addresses only; (4) Monitor and log all API requests to person endpoints for manual review; (5) Communicate to staff that API access to member data is restricted and audit any recent integrations using this endpoint. These are temporary mitigations only-upgrade to 7.2.0 is mandatory.

Threat Intelligence Overview

EPSS Score
0.0%
Top 89% 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
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

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

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

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