# CVE-2026-62669: Grav Login Plugin: 2FA Bypass via 'login.regenerate2FASecret' - Secret Rotation During Pending Challenge

- Severity: High 7.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A: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.39%, higher than 34% of CVEs (2026-12-01)
- Published: 2026-08-19T15:40:03.252Z
- Modified: 2026-10-26T11:10:00.157Z
- Also known as: GHSA-7mgc-c7pq-3rr3
- Related: CVE-2026-62232
- Weaknesses: CWE-287
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

Grav Login Plugin adds login, basic ACL, and session wide messages to Grav. Prior to 3.8.11, the Grav Login plugin login.regenerate2FASecret task checks only that the pending-session user exists rather than requiring $user->authorized. After submitting a victim's correct password, an attacker can invoke taskRegenerate2FASecret() during the pending TOTP challenge, overwrite twofa_secret, read the replacement secret from the response, calculate a valid code, and complete authentication without the victim's second factor. This issue is fixed in version 3.8.11.

(As written by CVE List.)

## Affected

- getgrav grav: < 2.0.4
- getgrav grav-plugin-login: < 3.8.11
- getgrav/grav (Packagist): before 2.0.4

## Every score

- GitHub_M: 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> (web)
- <https://github.com/getgrav/grav-plugin-login/commit/5d1b722298cb947d8f434025d121b99152a2c630> (web)
- <https://github.com/getgrav/grav-plugin-login/releases/tag/3.8.11> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-62669> (advisory)
- <https://github.com/getgrav/grav> (package)
- <https://github.com/getgrav/grav/releases/tag/2.0.4> (web)

## Sources

- CVE List: [CVE-2026-62669](https://www.cve.org/CVERecord?id=CVE-2026-62669), CVE Terms of Use, modified 2026-08-19
- 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-62669](https://nvd.nist.gov/vuln/detail/CVE-2026-62669), Public domain, modified 2026-10-26

---

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