Skip to content
Heist/ feed
Back to feed
High

ChurchCRM has a SQL Injection in PropertyTypeEditor.php via Incorrect Sanitizer Substitution

Type: advisorySources: OSV

ChurchCRM is an open-source church management system. Prior to 7.1.0, a SQL injection vulnerability exists in PropertyTypeEditor.php, part of the administration functionality for managing property type categories (People → Person Properties / Family Properties). The vulnerability was introduced when legacyFilterInput() which both strips HTML and escapes SQL — was replaced with sanitizeText(), which strips HTML only. User-supplied values from the Name and Description fields are concatenated directly into raw INSERT and UPDATE queries with no SQL escaping. This allows any authenticated user with the MenuOptions role (a non-admin staff permission) to perform time-based blind injection and exfiltrate any data from the database, including password hashes of all users. This vulnerability is fixed in 7.1.0.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-39340
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 23:58 UTC · Revision 1

Source evidence

ChurchCRM has a SQL Injection in PropertyTypeEditor.php via Incorrect Sanitizer Substitution

core-osv · Original source

Published 7 Apr 2026, 18:00 UTC

ChurchCRM is an open-source church management system. Prior to 7.1.0, a SQL injection vulnerability exists in PropertyTypeEditor.php, part of the administration functionality for managing property type categories (People → Person Properties / Family Properties). The vulnerability was introduced when legacyFilterInput() which both strips HTML and escapes SQL — was replaced with sanitizeText(), which strips HTML only. User-supplied values from the Name and Description fields are concatenated directly into raw INSERT and UPDATE queries with no SQL escaping. This allows any authenticated user with the MenuOptions role (a non-admin staff permission) to perform time-based blind injection and exfiltrate any data from the database, including password hashes of all users. This vulnerability is fixed in 7.1.0.

osv:CVE-2026-39340
Complete source record
{
  "id": "02bc347af3c2606f21cbac82c28fa5d8111546f049e64453d7280e903ce01bb3",
  "url": "https://osv.dev/vulnerability/CVE-2026-39340",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "ChurchCRM has a SQL Injection in PropertyTypeEditor.php via Incorrect Sanitizer Substitution",
    "summary": "ChurchCRM is an open-source church management system. Prior to 7.1.0, a SQL injection vulnerability exists in PropertyTypeEditor.php, part of the administration functionality for managing property type categories (People → Person Properties / Family Properties). The vulnerability was introduced when legacyFilterInput() which both strips HTML and escapes SQL — was replaced with sanitizeText(), which strips HTML only. User-supplied values from the Name and Description fields are concatenated directly into raw INSERT and UPDATE queries with no SQL escaping. This allows any authenticated user with the MenuOptions role (a non-admin staff permission) to perform time-based blind injection and exfiltrate any data from the database, including password hashes of all users. This vulnerability is fixed in 7.1.0.",
    "evidence": "osv:CVE-2026-39340",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-39340",
      "aliases": [
        "CVE-2026-39340",
        "GHSA-66f7-4p96-mww9"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/churchcrm/crm",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "d9e27d8187c1527086d86bca333f5b3cce105474"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "7.1.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "cpe": "cpe:2.3:a:churchcrm:churchcrm:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "7.1.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "7.1.0-rc3",
            "7.1.0-rc2",
            "7.1.0-rc1",
            "7.0.5",
            "7.0.4",
            "7.0.3",
            "7.0.2",
            "7.0.1",
            "7.0.0",
            "6.8.1",
            "6.8.0",
            "6.7.3",
            "6.7.2",
            "6.7.1",
            "6.7.0",
            "6.6.1",
            "6.6.0",
            "6.5.3",
            "6.5.2",
            "6.5.1",
            "6.5.0",
            "6.4.0",
            "6.3.0",
            "6.2.0",
            "6.1.0",
            "6.0.2",
            "6.0.1",
            "6.0.0",
            "5.22.0",
            "5.21.0",
            "5.19.0",
            "5.18.0",
            "5.17.0",
            "5.16.0",
            "5.15.0",
            "5.14.0",
            "5.13.0",
            "5.11.0",
            "5.10.0",
            "5.9.3",
            "5.9.2",
            "5.9.1",
            "5.8.0",
            "5.7.0",
            "5.6.0",
            "5.5.0",
            "5.4.3",
            "5.4.1",
            "5.4.0",
            "5.3.1",
            "5.3.0",
            "5.2.3",
            "5.2.2",
            "5.2.1",
            "5.2.0",
            "5.1.1",
            "5.1.0",
            "5.0.5",
            "5.0.4",
            "5.0.3",
            "5.0.2",
            "5.0.1",
            "5.0.0-beta2",
            "5.0.0-beta1",
            "5.0.0",
            "4.5.4",
            "4.5.3",
            "4.5.2",
            "4.5.1",
            "4.5.0",
            "4.4.5",
            "4.4.4",
            "4.4.3",
            "4.4.2",
            "4.4.1",
            "4.4.0",
            "4.3.2",
            "4.3.1",
            "4.3.0",
            "4.2.3",
            "4.2.2",
            "4.2.1",
            "4.2.0",
            "4.1.4",
            "4.1.3",
            "4.1.2",
            "4.1.1",
            "4.1.0",
            "4.0.5",
            "4.0.4",
            "4.0.3",
            "4.0.2",
            "4.0.1",
            "4.0.0",
            "3.5.5",
            "3.5.4",
            "3.5.3",
            "3.5.2",
            "3.5.1",
            "3.5.0",
            "3.4.0",
            "3.3.2",
            "3.3.1",
            "3.3.0",
            "3.2.4",
            "3.2.3",
            "3.2.2",
            "3.2.1",
            "3.2.0",
            "3.1.2",
            "3.1.1",
            "3.1.0",
            "3.0.13",
            "3.0.12",
            "3.0.11",
            "3.0.10",
            "3.0.9",
            "3.0.8",
            "3.0.6",
            "3.0.5",
            "3.0.4",
            "3.0.3",
            "3.0.2",
            "3.0.1",
            "3.0.0",
            "2.10.3",
            "2.10.2",
            "2.10.1",
            "2.10.0",
            "2.9.4",
            "2.9.3",
            "2.9.2",
            "2.9.1",
            "2.9.0",
            "2.9.0-RC1",
            "2.8.15",
            "2.8.14",
            "2.8.13",
            "2.8.12",
            "2.8.11",
            "2.8.10",
            "2.8.9",
            "2.8.8",
            "2.8.7",
            "2.8.6",
            "2.8.5",
            "2.8.4",
            "2.8.3",
            "2.8.2",
            "2.8.1",
            "2.8.0",
            "2.8.0-RC2",
            "2.8.0-RC1",
            "2.7.5",
            "2.7.4",
            "2.7.3",
            "2.7.2",
            "2.7.1",
            "2.7.0",
            "2.6.3",
            "2.6.2",
            "2.6.1",
            "2.6.0",
            "2.5.2",
            "2.5.1",
            "2.5.0",
            "2.3.5",
            "2.3.4",
            "2.3.3",
            "2.3.2",
            "2.3.1",
            "2.3.0",
            "2.2.4",
            "2.2.3",
            "2.2.2",
            "2.2.1",
            "2.2.0",
            "2.1.11",
            "2.1.10",
            "2.1.9",
            "2.1.7",
            "2.1.6",
            "2.1.5",
            "2.1.4",
            "2.1.3",
            "2.1.2",
            "2.1.1",
            "2.1.0",
            "2.0.1",
            "2.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-39340.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:45.484148606Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/39xxx/CVE-2026-39340.json",
        "https://github.com/ChurchCRM/CRM/security/advisories/GHSA-66f7-4p96-mww9",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-39340"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-89"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/39xxx/CVE-2026-39340.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-39340",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 513275,
  "published_at": "2026-04-07T18:00:09.383+00:00"
}