Skip to main content

2FAuth EUVDEUVD-2026-118491

| CVE-2026-63438 CRITICAL
Improper Authentication (CWE-287)
2026-11-06 GitHub_M
9.8
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach instance bypassing trusted proxy
  2. Delivery
    Send crafted REMOTE_USER and mail headers
  3. Exploit
    Auto-create account, self-promote to admin
  4. Execution
    Authenticate as administrator
  5. Impact
    Export all 2FA secrets

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication mechanism validation
MITRE ATT&CK

2 techniques across 2 tactics: Defense Evasion, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires AUTHENTICATION_GUARD=reverse-proxy-guard to be configured (a non-default authentication mode) AND the 2FAuth application to be directly reachable by the attacker without passing through a properly configured trusted proxy - pre-fix code performed no proxy source validation, so any client could supply the REMOTE_USER and mail headers. For unauthenticated administrator creation the instance must additionally be fresh (zero existing users), because the first-created account is auto-promoted to admin; against an instance with existing users the attacker can instead impersonate or hijack the email of any account whose registered name is known or guessed. The Authenticate middleware forces all requests onto reverse-proxy-guard when it is set, so a legitimate user cannot opt out. Limiting factors: the vulnerability does not apply to deployments using other authentication guards, nor to reverse-proxy-guard deployments whose proxy correctly terminates and strips client headers; the admin-takeover variant is additionally limited to fresh instances. The only complete fix per the vendor is upgrading to 8.0.0, which adds trusted-proxy enforcement (isFromTrustedProxy()).

Impact

All severity signals point the same direction for the vulnerable configuration: the NVD vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (9.8) describes remote, unauthenticated, low-complexity exploitation with full confidentiality, integrity and availability impact, and the vuln.today decision label is act_now. A published proof-of-concept (curl and Python scripts) appears in the GHSA advisory, and a single HTTP request yields an administrator account on a fresh instance. The critical caveat is environmental rather than technical: exploitation is NOT universal across all 2FAuth deployments - it requires the non-default AUTHENTICATION_GUARD=reverse-proxy-guard mode AND the application being directly reachable without passing through a properly configured trusted proxy. Within that configuration the attack is genuinely trivial and unauthenticated, so the PR:N/AC:L rating is justified there; across the whole 2FAuth install base the real-world exposure is narrower and gated by that configuration. No CISA KEV listing and no EPSS score are present in the supplied data, so there is no confirmation of active in-the-wild exploitation despite the available PoC - treat this as a high-priority, config-dependent flaw rather than a confirmed mass-exploitation event. For any operator actually running reverse-proxy-guard with imperfect proxy isolation, this is a top-priority, act_now fix.

Exploit ScenarioDerived

On a fresh 2FAuth instance running reverse-proxy-guard and reachable without a properly fronting trusted proxy, an unauthenticated attacker sends one HTTP request carrying a crafted REMOTE_USER header (and an attacker-controlled mail header); RemoteUserProvider::retrieveById() auto-creates the account, promotes the first-ever user to administrator, and sets its email from the header. The attacker is then authenticated as admin and can list users and export every stored 2FA secret. A published proof-of-concept (curl and Python scripts) demonstrating exactly this is included in the GHSA advisory.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 06, 2026

Unauthenticated remote attackers can gain full administrative control of a fresh 2FAuth instance, or impersonate known users and redirect their email, when AUTHENTICATION_GUARD=reverse-proxy-guard is enabled and the application is directly reachable without a trusted proxy. The reverse-proxy guard accepts client-supplied REMOTE_USER and mail headers, auto-creates accounts for unknown names, promotes the first account to administrator, and synchronizes email from the header; the assessed vector is CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (9.8) and the vuln.today decision label is act_now. This is fixed in 8.0.0; no CISA KEV confirmation at time of analysis, and the upstream advisory includes public proof-of-concept request examples that are not independently verified as working exploit code.

RemediationAI

Upgrade to 2FAuth 8.0.0, which the vendor identifies as the only complete fix; it enforces trusted-proxy validation via isFromTrustedProxy() and rejects requests whose source address is not trusted. Until upgrading, change AUTHENTICATION_GUARD away from reverse-proxy-guard if operationally feasible, accepting that this disables header-based SSO login, or ensure the application is never directly reachable and that a trusted reverse proxy terminates and strips client-supplied REMOTE_USER and mail headers before forwarding requests. Because pre-8.0.0 code does not validate the proxy source, network placement and header stripping are compensating controls only and do not fully remove exposure. Consult the upstream advisory at https://github.com/Bubka/2FAuth/security/advisories/GHSA-r9xx-45m8-mw24 and the 8.0.0 release notes at https://github.com/Bubka/2FAuth/releases/tag/v8.0.0.

Affected VersionsENISA

2FAuth < 8.0.0

Affected Packages

euvd 2fauth fix: 8.0.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

2FAuth is a PHP/Laravel web application for managing two-factor authentication accounts and generating codes. The flaw is CWE-287 (Improper Authentication) in the reverse-proxy authentication path. When AUTHENTICATION_GUARD=reverse-proxy-guard is configured, the Authenticate middleware forces requests onto that guard, and RemoteUserProvider::retrieveById() trusts the client-supplied REMOTE_USER and mail header values. Pre-fix code creates a new user for any unrecognized REMOTE_USER value with a random password, promotes the first-ever created account to administrator when User::count() === 1, and overwrites an existing user's email from the configured mail header on login. The guard performed no proxy source validation, so a client that did not pass through a trusted proxy could supply these headers. The 8.0.0 fix adds an isFromTrustedProxy() check in ReverseProxyGuard::user(), logs a warning and returns null when the request does not come from a trusted proxy; tests also expect HTTP 407 when trusted proxies are unconfigured or the remote address is untrusted. CPE data identifies bubka:2fauth all versions before 8.0.0, with package evidence listing <=7.0.1 as vulnerable and 8.0.0 as fixed. The admin-creation variant requires a fresh instance with zero users; against an instance with existing users, the attacker can instead impersonate or hijack the email of an account whose registered name is known or guessed. Deployments using other authentication guards, or reverse-proxy-guard deployments whose proxy correctly terminates and strips client headers, are not exposed.

Know when 2fauth gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 9.8 CRITICAL

Within the reverse-proxy-guard configuration an unauthenticated remote attacker gets admin via one header-bearing request, so AV:N/AC:L/PR:N/UI:N with full C/I/A impact.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Nov 06, 2026 - 21:03 EUVD
CVE Published
Nov 06, 2026 - 20:20 cve.org
CRITICAL 9.8

DescriptionCVE.org

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.

Technical POC Analysis

CWE-287 Improper Authentication.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

A critical authentication bypass in 2FAuth (CVE-2026-63438) allows an unauthenticated remote attacker to seize full administrative control of a freshly deployed instance, or impersonate existing users and redirect their email, whenever the reverse-proxy authentication guard is enabled and the app is exposed without a trusted proxy. Because 2FAuth is itself the system of record for multi-factor credentials, compromise can cascade into downstream account takeovers across the organization, making this a direct threat to identity trust and access governance that security leadership should prioritize.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: disable AUTHENTICATION_GUARD=reverse-proxy-guard until upgrading to 8.0.0, and network-restrict the instance so it is reachable only from the trusted proxy (never directly from the internet).

Threat Intelligence Overview

EPSS Score
0.5%
Top 57% exploitable
Prevalence
Low
self-hosted open-source 2FA manager, niche self-hoster footprint
Social Media
4
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Very High

Priority Score

50
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy