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.
Published: 2026-08-19
Score: 7.4 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerable task can overwrite a user’s two‑factor secret during a legitimate pending challenge. An attacker who first authenticates with the victim’s password can trigger the secret rotation, receive the new secret, calculate a valid authenticator code, and complete login without requiring the victim’s second factor. This flaw allows an attacker to bypass the 2FA requirement, thereby gaining access to the victim’s account. The weakness stems from improper authorization checks within the 2FA regeneration flow (CWE‑287).

Affected Systems

Grav users running the Grav Login plugin version prior to 3.8.11 are impacted. Both the core Grav platform and its login plugin (getgrav:grav-plugin-login) are affected. Version 3.8.11 and later resolve the authorization check and prevent the bypass.

Risk and Exploitability

The CVSS score of 7.4 indicates a high severity. EPSS score is not available, and the CVE is not listed in the CISA KEV catalog. The attack requires that the attacker can submit the correct password for the victim and then invoke a task during the 2FA challenge, so it predicated on having basic credential access. Attackers could automate this path in a web‑application context to elevate privileges for compromised accounts. Because the flaw allows complete authentication bypass, it poses a significant risk for any site that relies on Grav’s built‑in 2FA for security.

Generated by OpenCVE AI on August 20, 2026 at 01:40 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update Grav Login plugin to version 3.8.11 or later, restoring the proper authorization check for secret rotation.
  • If the update cannot be applied immediately, disable the login.regenerate2FASecret task in the plugin configuration or remove any custom triggers that invoke it during a pending 2FA challenge.
  • Audit the plugin configuration and custom code to ensure no unauthorized invocation of login.regenerate2FASecret, and verify that secret rotation cannot occur without user authorization.

Generated by OpenCVE AI on August 20, 2026 at 01:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 19 Aug 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 19 Aug 2026 16:00:00 +0000

Type Values Removed Values Added
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.
Title Grav Login Plugin: 2FA Bypass via 'login.regenerate2FASecret' - Secret Rotation During Pending Challenge
Weaknesses CWE-287
References
Metrics cvssV3_1

{'score': 7.4, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-19T18:18:46.380Z

Reserved: 2026-07-14T20:22:04.394Z

Link: CVE-2026-62669

cve-icon Vulnrichment

Updated: 2026-08-19T18:16:07.646Z

cve-icon NVD

Status : Received

Published: 2026-08-19T16:18:19.460

Modified: 2026-08-19T19:17:22.087

Link: CVE-2026-62669

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-20T01:45:03Z

Weaknesses