Vulnerability · Published Jul 17, 2026 · Assigned by VulnCheck
CVE-2026-62232Grav < 2.0.4 2FA Bypass via Secret Regeneration
High 7.4
In plain English
A high-severity missing authorization in grav from getgrav. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 29% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Packagist | getgrav/grav | 2.0.4 | GHSA-7mgc-c7pq-3rr3 |
Affected products (as reported)
Weakness: CWE-862 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
References
- GitHub Security Advisory (GHSA-7mgc-c7pq-3rr3) vendor-advisory
- VulnCheck Advisory: Grav < 2.0.4 2FA Bypass via Secret Regeneration third-party-advisory