Description
2FAuth is a web app to manage Two-Factor Authentication (2FA) accounts and generate their security codes. Prior to 8.0.0, when AUTHENTICATION_GUARD=reverse-proxy-guard accepts authentication headers from a client that did not pass through a trusted proxy, RemoteUserProvider::retrieveById() creates an account for an unknown REMOTE_USER, promotes the first created account to administrator, and synchronizes the account email from the configured mail header. An unauthenticated remote client can therefore create an administrator on a fresh instance or impersonate and redirect email for a known account, exposing 2FA secrets and administrative functions. This issue is fixed in version 8.0.0.
Published: 2026-11-06
Score: 9.8 Critical
EPSS: n/a
KEV: No
Impact: Privilege Escalation to Administrator
Action: Patch Now
AI Analysis

Impact

In 2FAuth versions prior to 8.0.0, the reverse‑proxy‑guard authentication mode accepts a REMOTE_USER header from an unauthenticated client that is not vetted against a trusted proxy. The application logic creates a new user account for the unknown REMOTE_USER value, automatically grants that first created account administrative privileges, and syncs the account email from a configured mail header. This allows an attacker to create an administrator on a fresh instance or hijack a known account and redirect its email, giving full access to all 2FA secrets and administrative functions.

Affected Systems

The vulnerable product is Bubka's 2FAuth web application. All installations running any version earlier than 8.0.0—specifically the 7.x series—and any instance that configures AUTHENTICATION_GUARD=reverse‑proxy‑guard in an environment where the guard accepts headers from untrusted clients are affected. The fix was introduced in release 8.0.0, which removes automatic admin promotion and requires explicit provisioning.

Risk and Exploitability

The CVSS base score is 9.8, indicating a critical severity. The EPSS score is not available. The vulnerability is not listed in CISA’s KEV catalog. The likely attack vector is an attacker sending a crafted REMOTE_USER header directly to a publicly exposed 2FAuth instance that mistakenly enables reverse‑proxy‑guard against an untrusted client. Because this exploit only requires manual header manipulation and no authentication credentials, the condition for successful exploitation is relatively low; if such a misconfiguration exists, an attacker can trivially create an administrator and compromise the system.

Generated by OpenCVE AI on November 6, 2026 at 22:05 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade 2FAuth to version 8.0.0 or later to apply the vendor patch that removes automatic admin promotion.
  • If an upgrade cannot be performed immediately, disable the reverse‑proxy‑guard mode or ensure it operates only behind a strictly trusted proxy that cannot forward arbitrary REMOTE_USER headers.
  • Configure the reverse‑proxy‑guard to reject unknown or unverified REMOTE_USER values by modifying the provider logic or application configuration so that automatic account creation is disabled.

Generated by OpenCVE AI on November 6, 2026 at 22:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 06 Nov 2026 22:00:00 +0000

Type Values Removed Values Added
First Time appeared Bubka
Bubka 2fauth
Vendors & Products Bubka
Bubka 2fauth

Fri, 06 Nov 2026 20:30:00 +0000

Type Values Removed Values Added
Description 2FAuth is a web app to manage Two-Factor Authentication (2FA) accounts and generate their security codes. Prior to 8.0.0, when AUTHENTICATION_GUARD=reverse-proxy-guard accepts authentication headers from a client that did not pass through a trusted proxy, RemoteUserProvider::retrieveById() creates an account for an unknown REMOTE_USER, promotes the first created account to administrator, and synchronizes the account email from the configured mail header. An unauthenticated remote client can therefore create an administrator on a fresh instance or impersonate and redirect email for a known account, exposing 2FA secrets and administrative functions. This issue is fixed in version 8.0.0.
Title 2FAuth: Reverse Proxy Guard Auto-Creates Users With Admin Promotion From Unauthenticated Header Value
Weaknesses CWE-287
References
Metrics cvssV3_1

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


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-11-06T20:20:27.407Z

Reserved: 2026-07-16T19:35:57.767Z

Link: CVE-2026-63438

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-06T21:17:09.770

Modified: 2026-11-06T21:17:09.770

Link: CVE-2026-63438

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-06T22:15:07Z

Weaknesses