CVE-2026-62232 Grav < 2.0.4 2FA Bypass via Secret Regeneration
Attackers with valid passwords can bypass two-factor authentication in Grav CMS by overwriting the 2FA secret, effectively reducing security to password-only protection.
- 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-62232?
CVE-2026-62232 is a critical authentication bypass vulnerability in getgrav grav, published on 17 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Grav before 2.0.4 contains a two-factor authentication bypass vulnerability in the login plugin where the regenerate2FASecret task checks only user existence, not authorization, during the pending TOTP challenge window. Attackers who know the victim's password can call this task without a CSRF nonce to overwrite the 2FA secret with an attacker-chosen value, compute a valid TOTP code, and complete authentication while reducing 2FA to password-only protection.
Weakness: CWE-862
Which versions are affected by CVE-2026-62232?
How do I fix CVE-2026-62232?
No fix has been published for CVE-2026-62232 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-62232 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-62232 exists.
Sources
Also known as GHSA-4m9m-rmh9-2pgf.