SecurityContext

CVE-2025-66396: ChurchCRM - SQL Injection

  • Cve: CVE-2025-66396
  • Name: ChurchCRM - SQL Injection
  • Description: ChurchCRM is an open-source church management system. Prior to version 6.5.3, a SQL injection vulnerability exists in the `src/UserEditor.php` file. When an administrator saves a user's configuration settings, the keys of the `type` POST parameter array are not properly sanitized or type-casted before being used in multiple SQL queries. This allows a malicious or compromised administrator account to execute arbitrary SQL commands, including time-based blind SQL injection attacks, to directly interact with the database. The vulnerability is located in `src/UserEditor.php` within the logic that handles saving user-specific configuration settings. The `type` parameter from the POST request is processed as an array. The code iterates through this array and uses `key($type)` to extract the array key, which is expected to be a numeric ID. This key is then assigned to the `$id` variable. The `$id` variable is subsequently concatenated directly into a `SELECT` and an `UPDATE` SQL query without any sanitization or validation, making it an injection vector. Although the vulnerability requires administrator privileges to exploit, it allows a malicious or compromised admin account to execute arbitrary SQL queries. This can be used to bypass any application-level logging or restrictions, directly manipulate the database, exfiltrate, modify, or delete all data (including other user credentials, financial records, and personal information), and could potentially lead to further system compromise, such as writing files to the server, depending on the database's configuration and user privileges. Version 6.5.3 patches the issue.
  • Impact: Malicious administrators can execute arbitrary SQL commands, leading to data exfiltration, modification, deletion, and potential full system compromise.
  • Remediation: Upgrade to version 6.5.3 or later.
  • Vulnerability type: sql_injection
  • Vulnerability impact: remote_code_execution, data_tampering, information_disclosure
  • Requirement type: logged_in
  • Requirements: Attacker must have administrator privileges
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.2
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.00441
  • Epss percentile: 0.39065
  • Assignee: [email protected]
  • Published at: 2025-12-17T20:15:55Z
  • Age in days: 342
  • Modified at: 2026-06-17T09:56:45Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-66396
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-89Improper Neutralization of Special Elements used in an SQL Command

Public exploits

UrlSourceAdded date
https://github.com/ChurchCRM/CRM/security/advisories/GHSA-whpp-wx64-4qp9nvd2025-12-17

References

UrlSourceTags
https://github.com/ChurchCRM/CRM/security/advisories/GHSA-whpp-wx64-4qp9nvdExploit, Vendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
churchcrm:churchcrm< 6.5.3nonvd/v1/products/churchcrm/churchcrm

Projects

RepositoryLink kindsIndexedUrl
ChurchCRM/CRMsecurity_advisoryyes/v1/repositories/ChurchCRM/CRM

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2025-12-17
  • Remote: yes
  • Authentication required: yes
  • Exposed hosts: 1680
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports