The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-40480

CVE-2026-40480: ChurchCRM Auth Bypass Vulnerability

CVE-2026-40480 is an authentication bypass flaw in ChurchCRM that allows authenticated users to access sensitive personal data of other members. This article covers the technical details, affected versions, and mitigation.

Published: April 23, 2026

CVE-2026-40480 Overview

CVE-2026-40480 is an Insecure Direct Object Reference (IDOR) vulnerability affecting ChurchCRM, 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 entirely.

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 authorization bypass allows horizontal privilege escalation where low-privileged users can access data belonging to other members of the organization.

Critical Impact

Authenticated users with minimal privileges can enumerate and access sensitive personal information of all church members, creating significant privacy risks and potential regulatory compliance violations.

Affected Products

  • ChurchCRM versions prior to 7.2.0
  • ChurchCRM API endpoint GET /api/person/{personId}
  • ChurchCRM installations with users having EditSelf privileges

Discovery Timeline

  • 2026-04-18 - CVE-2026-40480 published to NVD
  • 2026-04-20 - Last updated in NVD database

Technical Details for CVE-2026-40480

Vulnerability Analysis

This vulnerability is classified as CWE-639 (Authorization Bypass Through User-Controlled Key), commonly known as an Insecure Direct Object Reference (IDOR). The fundamental issue stems from an inconsistency between the legacy web interface and the modern API layer in ChurchCRM's authorization model.

The legacy PersonView.php page properly enforces the canEditPerson() authorization check before displaying member data. However, when the REST API was implemented, this critical authorization check was not replicated in the /api/person/{personId} endpoint. This oversight creates a security gap where the API directly returns person records based solely on the provided personId parameter without validating whether the requesting user has permission to access that specific record.

The vulnerability enables horizontal privilege escalation, allowing any authenticated user—even those restricted to only editing their own profile—to access personal data of all other members in the church database by simply iterating through person IDs.

Root Cause

The root cause is the missing object-level authorization check in the API layer. While the legacy PHP page implemented proper access controls through the canEditPerson() function, this validation was not carried forward to the REST API implementation. The API assumes that authentication alone is sufficient, when in fact object-level authorization is required to prevent unauthorized data access.

Additionally, users with no administrative permissions were not properly blocked from API access, allowing accounts with limited privileges to leverage the API endpoints that should have been restricted.

Attack Vector

An attacker with valid but limited credentials (such as a regular church member with only EditSelf privileges) can exploit this vulnerability through the following attack pattern:

  1. Authenticate to ChurchCRM using valid credentials
  2. Send GET requests to /api/person/{personId} with sequential or enumerated person IDs
  3. The API returns full person records without authorization validation
  4. The attacker can systematically harvest all member PII from the database

The attack requires network access and valid authentication credentials, but no special privileges beyond basic account access.

php
// Security patch in src/ChurchCRM/Slim/Middleware/AuthMiddleware.php
// Source: https://github.com/ChurchCRM/CRM/commit/28ea7a2965fc2fe30e150fadb1ae38a97f8225c2

                $logger->debug('API key authentication successful', [
                    'path' => $request->getUri()->getPath()
                ]);

+                // Block users with no admin permissions from API access (GHSA-5w59-32c8-933v)
+                $apiUser = AuthenticationManager::getCurrentUser();
+                if ($apiUser->hasNoAdminPermissions()) {
+                    $response = new Response();
+                    $response->getBody()->write(json_encode(['error' => 'Account has limited permissions. Contact an administrator.']));
+                    return $response->withStatus(403)->withHeader('Content-Type', 'application/json');
+                }
            } elseif (AuthenticationManager::validateUserSessionIsActive(!$this->isPath($request, 'background'))) {
                // validate the user session; however, do not update tLastOperation if the requested path is "/background"
                // since /background operations do not connotate user activity.

+                // Block users with no admin permissions from MVC/API access (GHSA-5w59-32c8-933v)
+                $sessionUser = AuthenticationManager::getCurrentUser();
+                if ($sessionUser->hasNoAdminPermissions()) {
+                    if ($this->isBrowserRequest($request)) {
+                        $rootPath = SystemURLs::getRootPath();
+                        return (new Response())->withStatus(302)->withHeader('Location', $rootPath . '/external/limited-access');
+                    }
+                    // API request — return 403
+                    $response = new Response();
+                    $response->getBody()->write(json_encode(['error' => 'Account has limited permissions. Contact an administrator.']));
+                    return $response->withStatus(403)->withHeader('Content-Type', 'application/json');
+                }

                // User with an active browser session is still authenticated.
                // For browser requests (non-background), enforce any required redirect steps (e.g. forced password change).

Detection Methods for CVE-2026-40480

Indicators of Compromise

  • Unusual patterns of sequential GET requests to /api/person/{personId} with incrementing IDs from a single user session
  • API access logs showing low-privileged users querying person records they should not have access to
  • High volume of person record API requests from accounts with only EditSelf permissions
  • Evidence of data exfiltration patterns in application logs

Detection Strategies

  • Implement API request logging and monitor for enumeration patterns (sequential ID access)
  • Alert on users accessing person records outside their authorized scope
  • Deploy web application firewall (WAF) rules to detect IDOR attack patterns
  • Review access logs for users with EditSelf privileges accessing multiple person endpoints

Monitoring Recommendations

  • Enable detailed API access logging including user ID, requested resource ID, and response status
  • Configure alerting for high-frequency API requests to person endpoints from single sessions
  • Monitor for failed authentication attempts followed by successful exploitation patterns
  • Implement anomaly detection for API usage patterns that deviate from normal user behavior

How to Mitigate CVE-2026-40480

Immediate Actions Required

  • Upgrade ChurchCRM to version 7.2.0 or later immediately
  • Review API access logs for evidence of exploitation prior to patching
  • Audit user accounts and revoke unnecessary API access for low-privileged users
  • Notify affected members if data breach is suspected

Patch Information

The vulnerability has been fixed in ChurchCRM version 7.2.0. The patch implements proper authorization checks in the AuthMiddleware.php to block users with no administrative permissions from API access. Users with limited permissions now receive a 403 Forbidden response when attempting to access the API.

For detailed information about the fix, refer to the GitHub Security Advisory, Pull Request #8616, and the commit implementing the fix.

Workarounds

  • Restrict API access at the network level to only trusted administrative users until patching is possible
  • Implement additional authentication layers (such as IP whitelisting) for API endpoints
  • Disable API functionality entirely if not required for operations
  • Deploy a reverse proxy or WAF to block suspicious enumeration patterns
bash
# Configuration example - Restrict API access via .htaccess (temporary workaround)
# Add to your ChurchCRM .htaccess file

<Location "/api/person">
    # Restrict to specific admin IP addresses until patch is applied
    Require ip 192.168.1.0/24
    # Or deny all external API access
    # Require all denied
</Location>

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechChurchcrm

  • SeverityHIGH

  • CVSS Score7.1

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-639
  • Technical References
  • GitHub Commit Changes

  • GitHub Issue Discussion

  • GitHub Pull Request

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-39339: ChurchCRM Auth Bypass Vulnerability

  • CVE-2026-39331: ChurchCRM Auth Bypass Vulnerability

  • CVE-2025-11938: ChurchCRM Deserialization RCE Vulnerability

  • CVE-2026-40593: ChurchCRM User Editor XSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English