Paper/Archive/CVE-2026-62232

CVE-2026-62232

getgrav grav — Grav < 2.0.4 2FA Bypass via Secret Regeneration

Description · from the CVE record

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

ProductAffectedFixed inSource
grav< 2.0.42.0.4CNA

Scores by source

VulnCheck (CNA)9.1CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
VulnCheck (CNA)7.4CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
CISA ADPSSVCExploitation: poc · Automatable: no · Technical impact: total

References

exploitgithub.com/getgrav/grav/security/advisories/GHSA-7mgc-c7pq-3rr3writeupvulncheck.com/advisories/grav-2fa-bypass-via-secret-regeneration