CVE-2026-62232 PUBLISHED

Grav < 2.0.4 2FA Bypass via Secret Regeneration

Assigner: VulnCheck
Reserved: 13.07.2026 Published: 17.07.2026 Updated: 17.07.2026

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.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
CVSS Score: 9.1

Product Status

Vendor getgrav
Product grav
Versions Default: unaffected
  • affected from 0 to 2.0.4 (excl.)
  • Version 2.0.4 is unaffected

Credits

  • nicl4ssic reporter

References

Problem Types

  • Missing Authorization CWE