Summary
CVE-2026-62232 is a critical two-factor authentication (2FA) bypass vulnerability in Grav CMS’s login plugin, affecting all versions prior to 2.0.4. The flaw stems from a missing authorization check in the taskRegenerate2FASecret function, allowing a network-based attacker who possesses a victim’s password to silently overwrite the victim’s TOTP secret and complete 2FA authentication without ever possessing the original second factor. With a CVSS v4.0 score of 9.1 (Critical) and a CVSS v3.1 score of 7.4 (High), this vulnerability effectively reduces 2FA-protected Grav accounts to password-only protection.
Technical details
- Root cause: Three compounding security failures exist in
user/plugins/login/classes/Controller.php: (1) the login plugin assigns$session->user = $userbefore TOTP verification completes, leaving the user object accessible during the pending-challenge state; (2) thetaskRegenerate2FASecretfunction checks only whether the user exists (exists()), not whether the user is authorized (authorized()); and (3) the regenerate 2FA secret endpoint performs no CSRF nonce validation. - Trigger conditions: An attacker must know the victim’s account password. Exploitation occurs during the TOTP pending-challenge window that opens after a correct password is submitted.
- Attack vector: Network-accessible; no privileges on the target system are required. The attacker sends a crafted unauthenticated HTTP request to the
regenerate2FASecrettask endpoint, receives the newly generated TOTP secret in the plaintext JSON response, computes a valid TOTP code from that attacker-chosen secret, and then completes authentication as the victim. - Impact: Full account takeover with high confidentiality and integrity impact (VC:H/VI:H). The victim’s original 2FA secret is permanently overwritten, which can also result in the victim being locked out of their own account.
Affected software
- Grav CMS — all versions before 2.0.4 (inclusive of 2.0.3 and earlier)
Severity
- CVSS v4.0: 9.1 (Critical) —
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 v3.1: 7.4 (High) —
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N - CWE: CWE-862 (Missing Authorization)
Mitigation and recommended actions
- Immediate — upgrade: Update Grav to version 2.0.4 or later. The fix is available in the official Grav releases; version 2.0.11 is the current latest release as of this advisory.
- If immediate patching is not feasible: Restrict network access to the Grav admin and login endpoints at the web server or perimeter firewall level to trusted IP ranges only, reducing the attacker’s ability to reach the vulnerable endpoint.
- Operational: Review Grav admin account activity logs for any unexpected session activity or 2FA secret changes in the period prior to patching, as exploitation leaves no inherent user-visible indicator.
IONIX Status
The IONIX research team is tracking ongoing exploitation attempts and recommends immediate patching. Potentially affected assets are outlined in this post.

