CVE-2026-40484
published critical CVSS 3.1 · 9.1ChurchCRM: Authenticated Remote Code Execution via Unrestricted PHP File Write in Database Restore Function
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| ChurchCRM | — | CRM< 7.2.0 | Affected | Not stated | GitHub_M |
Description
ChurchCRM is an open-source church management system. In versions prior to 7.2.0, the database backup restore functionality extracts uploaded archive contents and copies files from the Images/ directory into the web-accessible document root using recursiveCopyDirectory(), which performs no file extension filtering. An authenticated administrator can upload a crafted backup archive containing a PHP webshell inside the Images/ directory, which is then written to a publicly accessible path and executable via HTTP requests, resulting in remote code execution as the web server user. The restore endpoint also lacks CSRF token validation, enabling exploitation through cross-site request forgery targeting an authenticated administrator. This issue has been fixed in version 7.2.0.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.1 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| ChurchCRM | CRM | < 7.2.0 (affected) | GitHub_M · cna |
Weaknesses
3- CWE-269 CWE-269: Improper Privilege Management
- CWE-434 CWE-434: Unrestricted Upload of File with Dangerous Type
- CWE-552 CWE-552: Files or Directories Accessible to External Parties
References
3Provider assertions
2GitHub_M · cna
ChurchCRM: Authenticated Remote Code Execution via Unrestricted PHP File Write in Database Restore Function
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 54d273fdb3c0f0c662629f0a7483e854d11bb2c1ca185c48ccdb883865bedbfe
- Ingested
- 23 Sep 2026, 09:13:21 UTC
- Source record
- Official CVE record