CVE-2026-107147

Authentication bypass by spoofing 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 2fa authentication bypass by spoofed client address headers. Due to the lack of validation of the Client-IP and X-Forwarded-For headers, an attacker who obtains user's password can spoof a whitelisted IP address, resulting in the second factor being bypassed.




This issue was fixed in commit 4640889.

Analysis

AI-generated

Technical impact

The twofactor_gauthenticator plugin for Roundcube allows attackers who have stolen a user’s password to bypass the second factor authentication by sending forged Client‑IP and X‑Forwarded‑For headers. This flaw enables the attacker to impersonate a whitelisted IP address, thereby gaining authorized access without the 2‑factor token. The vulnerability is an authentication bypass (CWE‑290) and can compromise user accounts and any data the attacker can access with those credentials.

Affected Systems

The affected product is the twofactor_gauthenticator plugin by alexandregz for the Roundcube webmail application. No specific version range is provided, but the issue existed prior to the fix released in commit 4640889.

Risk and Exploitability

With a CVSS score of 6.3, the flaw is classified as medium severity. EPSS data is not available, and the vulnerability is not listed in the CISA KEV catalog. Because the attack requires knowledge of the user’s password and the ability to craft HTTP headers, the likelihood of exploitation is moderate. The attack vector is inferred to be remote, originating from an external client that can reach the Roundcube instance.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade twofactor_gauthenticator to version containing commit 4640889, which removes the header spoofing flaw.
  • If an upgrade is not yet possible, temporarily disable or reconfigure the plugin so that it no longer trusts the Client‑IP or X‑Forwarded‑For headers provided by external clients.
  • If disabling the plugin is impractical, apply network controls to restrict inbound connections to trusted IP addresses only, ensuring that only legitimate clients can reach the Roundcube instance.

Generated by OpenCVE AI on October 27, 2026 at 10:27 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 2fa authentication bypass by spoofed client address headers. Due to the lack of validation of the Client-IP and X-Forwarded-For headers, an attacker who obtains user's password can spoof a whitelisted IP address, resulting in the second factor being bypassed. This issue was fixed in commit 4640889.
Title Authentication bypass by spoofing in twofactor_gauthenticator
First Time appeared Alexandregz
Alexandregz twofactor Gauthenticator
Weaknesses CWE-290
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:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-290

    Authentication Bypass by Spoofing

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