CVE-2026-100667

grav-plugin-login 3.8.7 through 3.9.6 Two-Factor Authentication Bypass

Published Sep 26, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
grav-plugin-login (the Grav CMS Login plugin) versions >= 3.8.7 and < 3.9.7 allow the two-factor authentication challenge to be bypassed for content gated by the authenticated() Twig function or the [authenticated] shortcode. On sites with 2FA enabled, Login::isAuthenticated() checked only the session flag indicating that the password step had succeeded, not the flag indicating that login had completed, so a session sitting at the 2FA code prompt was treated as fully authenticated. An attacker who knows a member's password but cannot answer that member's second factor can therefore read member-only content rendered by the no-argument authenticated() or group authenticated(null, 'group') forms and by [authenticated]; the inverse [guest] shortcode is likewise evaluated too early. Impact is limited to disclosure of that content: the attacker does not obtain a completed session, cannot access pages protected by an access: rule, and cannot act as the user. The authenticated('some.permission') form, which goes through UserObject::authorize(), is not affected. Fixed in grav-plugin-login 3.9.7.

Analysis

AI-generated

Technical impact

The Grav CMS Login plugin allows an attacker who knows a member’s password but not the second factor to view content that is normally protected by the authenticated() Twig function or the [authenticated] shortcode. The vulnerability is caused by the Login::isAuthenticated() method checking only the initial password session flag, not the flag indicating that two‑factor authentication has been completed. This results in a shallow authentication state that satisfies checks for member‑only pages but does not provide a fully authenticated session for further protected resources. The flaw is classified as CWE‑304, which represents unauthorized or insecure use of a security feature.

Affected Systems

These vulnerabilities affect Grav CMS Login plugin versions 3.8.7 through 3.9.6. The affected vendor is Getgrav’s Grav CMS. Only installations using the vulnerable plugin range are susceptible; other plugins or unrelated components are not impacted.

Risk and Exploitability

The CVSS score of 6.9 places the issue in the Medium severity range. EPSS is not reported and the vulnerability is not listed in the CISA KEV catalog, indicating it has not been widely exploited publicly yet. The likely attack vector requires an attacker to acquire a user’s primary password, through phishing, credential stuffing, or other credential compromise techniques, and then attempt to access member‑only content. Although the attacker cannot bypass access rules or gain a full authenticated session, the exposure of protected content can still be significant for sensitive or confidential material.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade grav-plugin-login to version 3.9.7 or later to incorporate the vendor patch
  • Replace any use of unparameterized authenticated() or [authenticated] shortcodes in templates with authenticated('some.permission') forms, which correctly perform full authorization checks
  • Remove or disable the [guest] shortcode and any logic that evaluates authentication state before the 2FA confirmation step

Generated by OpenCVE AI on September 26, 2026 at 15:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description grav-plugin-login (the Grav CMS Login plugin) versions >= 3.8.7 and < 3.9.7 allow the two-factor authentication challenge to be bypassed for content gated by the authenticated() Twig function or the [authenticated] shortcode. On sites with 2FA enabled, Login::isAuthenticated() checked only the session flag indicating that the password step had succeeded, not the flag indicating that login had completed, so a session sitting at the 2FA code prompt was treated as fully authenticated. An attacker who knows a member's password but cannot answer that member's second factor can therefore read member-only content rendered by the no-argument authenticated() or group authenticated(null, 'group') forms and by [authenticated]; the inverse [guest] shortcode is likewise evaluated too early. Impact is limited to disclosure of that content: the attacker does not obtain a completed session, cannot access pages protected by an access: rule, and cannot act as the user. The authenticated('some.permission') form, which goes through UserObject::authorize(), is not affected. Fixed in grav-plugin-login 3.9.7.
Title grav-plugin-login 3.8.7 through 3.9.6 Two-Factor Authentication Bypass
First Time appeared Getgrav
Getgrav grav
Weaknesses CWE-304
CPEs cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*
Vendors & Products Getgrav
Getgrav grav
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-304

    Missing Critical Step in Authentication

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Sep 28, 2026, 6:14 PM
Reserved
Sep 26, 2026, 2:34 AM
Status
Deferred
Published
Sep 26, 2026, 2:16 PM
Modified
Sep 28, 2026, 7:16 PM