CVE-2026-40582 ChurchCRM: Authentication Bypass in `/api/public/user/login` Allows Bypass of 2FA and Account Lockout

Critical 9.1 Published Updated

Attackers can bypass 2FA and account lockout via the public login API to gain unauthorized access to protected endpoints.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-40582?

CVE-2026-40582 is a critical authentication bypass vulnerability in ChurchCRM CRM, published on 17 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

ChurchCRM is an open-source church management system. In versions prior to 7.2.0, the /api/public/user/login endpoint validates only the username and password before returning the user's API key, bypassing the normal authentication flow that enforces account lockout and two-factor authentication checks. An attacker with knowledge of a user's password can obtain API access even when the account is locked or has 2FA enabled, granting direct access to all protected API endpoints with that user's privileges. This issue has been fixed in version 7.2.0. Note: this issue had a duplicate, GHSA-472m-p3gf-46xp, which has been closed.

Weakness: CWE-305, CWE-288

Which versions are affected by CVE-2026-40582?

How do I fix CVE-2026-40582?

No fix has been published for CVE-2026-40582 yet. Limit exposure of the affected software until one is available.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2026-40582 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-40582 exists.

Sources

Also known as GHSA-8cwr-x83m-mh9x.

Is CVE-2026-40582 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free