# CVE-2026-39342: ChurchCRM SQL injection in QueryView.php searchwhat parameter

Source: https://junglewise.ai/threats/cve-2026-39342-churchcrm-sql-injection-in-queryview-php-searchwhat-parameter  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-04-07. Updated: 2026-07-24  
License: CC BY 4.0 with a link back

CVE-2026-39342 · Severity: high · CVSS 8.8 · Published 2026-04-07

ChurchCRM, an open-source church management system, is vulnerable to a security flaw in its reporting module. An authorized user with access to the advanced search features can execute unauthorized database commands. This could allow an attacker to steal sensitive member data, modify records, or disrupt the organization's operations.

Technologies: [ChurchCRM](https://junglewise.ai/threats/technologies/churchcrm). Vendors: [ChurchCRM](https://junglewise.ai/threats/vendors/churchcrm).

## Quick answers

**Is CVE-2026-39342 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-39342 being exploited in the wild.

**How severe is CVE-2026-39342?** High severity, with a CVSS score of 8.8, published 7 April 2026.

**Which products and versions are affected?** ChurchCRM CRM < 7.1.0.

**Is there a fix for CVE-2026-39342?** A patch was published on 2026-04-07: Fixed in version 7.1.0 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-39342 attacked?** It is attacked over the network, in a network appliance.

**Am I affected by CVE-2026-39342?** Check whether you run ChurchCRM. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

A SQL injection vulnerability exists in ChurchCRM prior to version 7.1.0 within the 'searchwhat' parameter of the QueryView.php component. The flaw is specifically exploitable when the QueryID is set to 15 (Advanced Search). An authenticated attacker with permissions to access the Data/Reports Query Menu can inject malicious SQL commands to bypass security controls. This can lead to full database extraction, data modification, or denial of service via time-based payloads. The issue is resolved in version 7.1.0 by improving input validation and parameter handling.

## Affected products

- ChurchCRM CRM < 7.1.0

## Timeline

- 2026-04-05: advisory: GitHub security advisory published by researcher
- 2026-04-07: disclosed: CVE-2026-39342 published
- 2026-04-07: patched: Fixed in version 7.1.0

## References

- [https://github.com/ChurchCRM/CRM/security/advisories/GHSA-7fr4-mvfm-cxfx](https://github.com/ChurchCRM/CRM/security/advisories/GHSA-7fr4-mvfm-cxfx)

## Related threats

- [ChurchCRM CRM authorization bypass in family-scoped endpoints](https://junglewise.ai/threats/cve-2026-58410-churchcrm-crm-authorization-bypass-in-family-scoped-endpoints)
- [ChurchCRM unrestricted file upload in plugin installer](https://junglewise.ai/threats/cve-2026-58409-churchcrm-unrestricted-file-upload-in-plugin-installer)
- [ChurchCRM broken access control in CSVCreateFile.php export](https://junglewise.ai/threats/cve-2026-58408-churchcrm-broken-access-control-in-csvcreatefile-php-export)
- [ChurchCRM CSRF in legacy delete endpoints](https://junglewise.ai/threats/cve-2026-44548-churchcrm-csrf-in-legacy-delete-endpoints)
- [ChurchCRM 2FA and account lockout bypass in public API login](https://junglewise.ai/threats/cve-2026-44547-churchcrm-2fa-and-account-lockout-bypass-in-public-api-login)
