CVE-2025-66396 ChurchCRM has SQL Injection in User Editor via `type` Parameter Key

High 7.2 Published Updated

A malicious administrator can execute arbitrary SQL commands via the User Editor, allowing database manipulation and data exfiltration.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-66396?

CVE-2025-66396 is a high-severity SQL injection vulnerability in Churchcrm Churchcrm, published on 17 Dec 2025. An attacker needs administrator access to exploit it, with no action from the victim.

Official 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.

Weakness: CWE-89

Which versions are affected by CVE-2025-66396?

It affects 1 product.

Products include Churchcrm Churchcrm.

How do I fix CVE-2025-66396?

No fix has been published for CVE-2025-66396 yet. Limit exposure of the affected software until one is available.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2025-66396 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-66396 exists.

All Churchcrm Churchcrm vulnerabilities

Sources

Also known as GHSA-whpp-wx64-4qp9.

Is CVE-2025-66396 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free