CVE-2026-62232
HIGH
7.4
CVSS 3.1
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.
Metadata
Severity & Metrics
7.4
HIGH CVSS 3.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Affected products (1)
| Vendor | Product | Platform | Versions |
|---|---|---|---|
| getgrav | grav | — | 0 < 2.0.4, 2.0.4 |
Weakness (CWE)
| CWE | Source | Description |
|---|---|---|
| CWE-862 | cna | Missing Authorization |
CVSS scores (2)
| Score | Severity | Version | Source | Vector |
|---|---|---|---|---|
| 9.1 | CRITICAL | 4.0 | cna | 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 |
| 7.4 | HIGH | 3.1 | cna | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N |
References (2)
- GitHub Security Advisory (GHSA-7mgc-c7pq-3rr3) https://github.com/getgrav/grav/security/advisories/GHSA-7mgc-c7pq-3rr3
- VulnCheck Advisory: Grav < 2.0.4 2FA Bypass via Secret Regeneration https://www.vulncheck.com/advisories/grav-2fa-bypass-via-secret-regeneration