# CVE-2026-107146: Roundcube twofactor_gauthenticator insufficient session expiration

Source: https://junglewise.ai/threats/cve-2026-107146-the-twofactor-gauthenticator-plugin-for-roundcube-is-vulnerable  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-27. Updated: 2026-10-27  
License: CC BY 4.0 with a link back

CVE-2026-107146 · Severity: info · Published 2026-10-27

The twofactor_gauthenticator plugin for Roundcube email server is vulnerable to session persistence after failed two-factor authentication. An attacker who obtains a user's password can bypass the logout mechanism and keep a session active, enabling them to brute-force the second-factor code and gain unauthorized access to email accounts.

Technologies: [Alexandregz Twofactor Gauthenticator](https://junglewise.ai/threats/technologies/twofactor-gauthenticator). Vendors: [Alexandregz](https://junglewise.ai/threats/vendors/alexandregz).

## Quick answers

**Is CVE-2026-107146 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-107146 being exploited in the wild.

**How severe is CVE-2026-107146?** Informational severity, published 27 October 2026.

**Which products and versions are affected?** Alexandregz Twofactor Gauthenticator before commit 4640889.

**Is there a fix for CVE-2026-107146?** Yes: fixed in commit 4640889. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-107146 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-107146?** Check whether you run Alexandregz Twofactor Gauthenticator at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- Fixed in commit 4640889

## Technical details

The plugin fails to properly destroy sessions on the server side when two-factor verification fails, allowing attackers to ignore logout redirects and maintain session persistence. An attacker with knowledge of the target user's password can exploit this by keeping a session alive while attempting to brute-force the 6-digit second-factor code, potentially leading to complete account compromise and email access.

## Affected products

- alexandregz twofactor_gauthenticator before commit 4640889

## Timeline

- 2026-10-27: disclosed
- 2026-10-27: patched: Fixed in commit 4640889

## References

- [https://github.com/](https://github.com/)
- [https://cert.pl/en/posts/2026/10/CVE-2026-107145](https://cert.pl/en/posts/2026/10/CVE-2026-107145)

## Related threats

- [twofactor_gauthenticator plugin for Roundcube authentication bypass via header spoofing](https://junglewise.ai/threats/cve-2026-107147-the-twofactor-gauthenticator-plugin-for-roundcube-is-vulnerable)
- [twofactor_gauthenticator plugin for Roundcube brute-force bypass](https://junglewise.ai/threats/cve-2026-107145-the-twofactor-gauthenticator-plugin-for-roundcube-is-vulnerable)
