{"id":"CVE-2026-40484","published":"2026-04-17T23:25:06Z","modified":"2026-04-20T14:56:29Z","title":"ChurchCRM: Authenticated Remote Code Execution via Unrestricted PHP File Write in Database Restore Function","vendor":"ChurchCRM","product":"CRM","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00882,"percentile":0.60034,"provenance":"source"},"cwes":[{"id":"CWE-269","name":"Improper Privilege Management"},{"id":"CWE-434","name":"Unrestricted Upload of File with Dangerous Type"},{"id":"CWE-552","name":"Files or Directories Accessible to External Parties"}],"references":[{"url":"https://github.com/ChurchCRM/CRM/security/advisories/GHSA-2932-77f9-62fx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ChurchCRM/CRM/pull/8610","tags":["x_refsource_MISC"]},{"url":"https://github.com/ChurchCRM/CRM/commit/68be1d12bc4cc1429575ae797ef05efe47030d39","tags":["x_refsource_MISC"]}],"priority":{"score":18.4,"factors":[{"name":"EPSS percentile","points":12.01},{"name":"CVSS severity","points":6.37}]},"vendorSlug":"churchcrm","affectedVersions":[{"vendor":"ChurchCRM","product":"CRM","versions":["< 7.2.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-04-20T14:45:34.816821Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-23597","exploited":false,"provenance":"source"}}