CVE-2026-107146

Insufficient session expiration in twofactor_gauthenticator

Published Oct 27, 2026 CVSS 4.0 · 6.3 Medium EPSS < 1% KEV · Not listed
Description
The twofactor_gauthenticator plugin for Roundcube is vulnerable to session persistence after failed 2FA verification. Due to the lack of server-side session destruction, an attacker can ignore the logout redirect and keep the session alive. This may allow an attacker who obtains user's password to e.g. brute force the second-factor code.




This issue was fixed in commit 4640889.

Analysis

AI-generated

Technical impact

The twofactor_gauthenticator plugin for Roundcube fails to destroy server‑side session data when a user fails two‑factor authentication, allowing an attacker who knows a user’s password to ignore the logout redirect and keep the session alive. This can enable the attacker to persist an authenticated session after a failed 2FA attempt, potentially facilitating brute‑force attacks against the second‑factor code.

Affected Systems

The issue affects the alexandregz twofactor_gauthenticator plugin used with Roundcube. Any installation running the plugin before the fix provided in commit 4640889 is vulnerable.

Risk and Exploitability

The CVSS score of 6.3 indicates medium severity. Based on the description, it is inferred that the likely attack vector is the web interface, requiring an attacker to obtain a user’s password and attempt to brute‑force the second‑factor code. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog, so no publicly known exploitation has been reported. Nevertheless, the persistence of the session after failed 2FA provides an opportunity for an attacker to maintain unauthorized access.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the patch by updating twofactor_gauthenticator to the version containing commit 4640889.
  • Configure Roundcube to invalidate server‑side sessions immediately after any 2FA failure and enforce a session timeout.
  • Implement rate limiting or an account lockout policy for failed 2FA attempts to reduce brute‑force feasibility.
  • If a patch is not yet available, temporarily disable the twofactor_gauthenticator plugin until a fixed release can be applied.

Generated by OpenCVE AI on October 27, 2026 at 10:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Description The twofactor_gauthenticator plugin for Roundcube is vulnerable to session persistence after failed 2FA verification. Due to the lack of server-side session destruction, an attacker can ignore the logout redirect and keep the session alive. This may allow an attacker who obtains user's password to e.g. brute force the second-factor code. This issue was fixed in commit 4640889.
Title Insufficient session expiration in twofactor_gauthenticator
First Time appeared Alexandregz
Alexandregz twofactor Gauthenticator
Weaknesses CWE-613
CPEs cpe:2.3:a:alexandregz:twofactor_gauthenticator:*:*:*:*:*:*:*:*
Vendors & Products Alexandregz
Alexandregz twofactor Gauthenticator
References
Metrics cvssV4_0

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

Weaknesses
  • CWE-613

    Insufficient Session Expiration

Sources

Status
PUBLISHED
Assigner
CERT-PL
Published
Updated
Nov 4, 2026, 2:58 PM
Reserved
Oct 7, 2026, 8:44 AM
Status
Awaiting Analysis
Published
Oct 27, 2026, 10:16 AM
Modified
Nov 4, 2026, 3:17 PM