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

- Severity: Critical 9.1 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 30% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-17T00:07:08.361Z
- Modified: 2026-10-24T20:10:00.137Z
- Also known as: GHSA-7mgc-c7pq-3rr3
- Related: CVE-2026-62669
- Weaknesses: CWE-287, CWE-862
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: VulnCheck

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

(As written by CVE List.)

## Affected

- getgrav grav: before 2.0.4 (not affected: 2.0.4)
- getgrav/grav (Packagist): before 2.0.4

## Every score

- VulnCheck: CVSS:4.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`
- VulnCheck: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/getgrav/grav/security/advisories/GHSA-7mgc-c7pq-3rr3> (exploit, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/grav-2fa-bypass-via-secret-regeneration> (third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-62669> (advisory)
- <https://github.com/getgrav/grav-plugin-login/commit/5d1b722298cb947d8f434025d121b99152a2c630> (web)
- <https://github.com/getgrav/grav> (package)
- <https://github.com/getgrav/grav-plugin-login/releases/tag/3.8.11> (web)
- <https://github.com/getgrav/grav/releases/tag/2.0.4> (web)

## Sources

- CVE List: [CVE-2026-62232](https://www.cve.org/CVERecord?id=CVE-2026-62232), CVE Terms of Use, modified 2026-10-08
- GitHub Advisory Database: [GHSA-7mgc-c7pq-3rr3](https://github.com/advisories/GHSA-7mgc-c7pq-3rr3), CC-BY-4.0, modified 2026-09-02
- NVD: [CVE-2026-62232](https://nvd.nist.gov/vuln/detail/CVE-2026-62232), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-62232 · Whole record: https://cve.day/CVE-2026-62232.json · Rebuilt by cve.day 2026-11-25T22:59:28.463Z
