Skip to main content

2FAuth CVE-2026-63440

| EUVDEUVD-2026-118490 MEDIUM
Time-of-check Time-of-use (TOCTOU) Race Condition (CWE-367)
2026-11-06 GitHub_M
5.9
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Authenticate with ordinary 2FAuth account
  2. Delivery
    Submit otpauth URI with attacker-controlled image= host
  3. Exploit
    Validator resolves public IP, passes deny-list
  4. Execution
    DNS rebinds to internal/metadata IP
  5. Persist
    Server fetches internal endpoint via SSRF
  6. Impact
    Reach cloud metadata, exfiltrate IAM credentials

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture TOCTOU prevention
Exploitation Conditions

Requires (1) an authenticated 2FAuth account - any ordinary non-admin user or personal access token, which matters because registration is commonly left open; (2) external otpauth image fetching left at its default-enabled state (config 'blockOtpauthImagelinkFetching' off); (3) the attacker operating authoritative DNS for a domain they place in image=, served with TTL 0 so the validator's resolve returns a public IP while the subsequent Guzzle fetch resolve returns an internal IP (127.0.0.1, RFC1918, link-local, or 169.254.169.254). The exploit succeeds only by winning the TOCTOU window between the two independent resolutions (reflected as AC:H); a TTL-0 rebind makes this reliable in practice. allow_redirects=>false does not block it. Limiting factors for defenders: the authentication requirement, the need for attacker-controlled low-TTL DNS, and that it is blocked outright if blockOtpauthImagelinkFetching is enabled. Affected versions are <= 7.0.1; 8.0.0 pins the validated IP via CURLOPT_RESOLVE.

Impact

This is a genuine but moderate-priority issue, not a drop-everything emergency, and the signals are internally consistent. The CVSS 3.1 vector (AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N, base 5.9) correctly reflects a network-reachable but authentication-gated flaw whose exploitation depends on winning a time-of-check/time-of-use DNS race (AC:H) - the attacker must operate authoritative DNS for their own domain with TTL 0 and flip answers between the validator's resolve and the fetcher's resolve. The vuln.today Decision label is 'this_month' (not act_now/emergency), which aligns with a serious-but-conditioned SSRF. No CISA KEV listing and no EPSS score were supplied in the input, so there is no evidence of active exploitation or a quantitative exploitation-probability signal; absence of these is not proof of safety but does argue against widespread opportunistic attack. The advisory ships a complete, self-contained proof-of-concept harness that reproduces the validate-then-fetch bypass on loopback, so the technique is public and demonstrated. The main factors that temper real-world urgency are the authenticated precondition (PR:L) and the AC:H timing/DNS-control requirement; the main factor that raises it is the High confidentiality impact - a successful rebind lets the server reach cloud metadata (169.254.169.254) and loopback/RFC1918 internal services, which can yield cloud IAM credentials. Net: a real priority for internet-exposed 2FAuth instances with open registration, but gated enough that it is not a mass-exploitation candidate.

Exploit ScenarioDerived

An authenticated low-privilege user on an internet-exposed 2FAuth instance submits an otpauth:// URI whose image= parameter points at a domain they control via authoritative DNS served with TTL 0. The validator (isExternalHost/dns_get_record) resolves the name to a public IP and approves it, but milliseconds later Guzzle re-resolves the same name to 127.0.0.1 or 169.254.169.254, so the server issues the HTTP GET to an internal target. A complete PoC demonstrating this validate-then-fetch TOCTOU is published verbatim in the GHSA advisory, making the technique reliably reproducible with a TTL-0 rebinding resolver.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 06, 2026

2FAuth versions up to and including 7.0.1 are exposed to authenticated server-side request forgery through the otpauth image= icon fetch: the hostname is validated once by ValidatesUrls::isExternalHost() and then resolved a second time by Guzzle/cURL in IconService::storeRemoteImage(), with no IP pinning between the two lookups. Any ordinary authenticated user (including a personal access token; registration is commonly left open) who controls authoritative DNS for the host in image= can serve a public address with TTL 0 for the validation resolve and an internal address for the fetch resolve, reaching loopback, RFC1918, link-local, or the cloud metadata endpoint at 169.254.169.254 and having the response stored as the account icon. A public proof-of-concept harness accompanies the vendor advisory but is not confirmed as working exploit code against a deployed instance, and no active exploitation has been reported; the vendor fixed the issue in 8.0.0 by pinning the validated IP via CURLOPT_RESOLVE.

RemediationAI

Vendor-released patch: 2FAuth 8.0.0 (release tag v8.0.0, commit 52e9db94f2da2a6231d77c49537d6d88ce948ee1) - upgrade from any version at or below 7.0.1 as described in advisory GHSA-22mh-gmrh-gpwg. The patched code resolves the host once and pins the validated IP through CURLOPT_RESOLVE; note that if the PHP/cURL build does not expose CURLOPT_RESOLVE, 8.0.0 refuses the remote icon fetch entirely rather than connecting unpinned, so verify remote icon fetching still behaves as expected after upgrading. If an immediate upgrade is not possible, the configuration switch 2fauth.config.blockOtpauthImagelinkFetching set to its blocking state defeats the attack outright, with the trade-off that users can no longer import icons from remote otpauth image links and such fetches are logged and skipped. Because the vulnerability requires only an ordinary authenticated account and registration is frequently left open on 2FAuth instances, restricting who can register or hold a personal access token reduces exposure, though it does not remove the flaw for existing low-privileged users.

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

The flaw is a classic validate-then-fetch time-of-check/time-of-use race (CWE-367, alongside CWE-918) in 2FAuth's remote icon pipeline. When an otpauth:// URI supplied by a user carries an image=<url> parameter, TwoFAccount.php passes it to Icons::buildFromRemoteImage(), which calls isPublicRemoteUrl() from the ValidatesUrls trait; that validator resolves the hostname with dns_get_record(DNS_A|DNS_AAAA) and rejects records pointing at private, reserved, loopback, link-local, CGNAT, multicast, or metadata addresses. On approval, IconService::storeRemoteImage() issues Http::get($url) through Guzzle/cURL using proxy, allow_redirects=>false, connect_timeout 5 and timeout 10 - and cURL resolves the same name again at connect time. Because isExternalHost() validates a name and never returns or pins the address, and no CURLOPT_RESOLVE exists anywhere in the 7.0.1 codebase, an attacker-controlled TTL-0 authoritative zone can flip the answer from a public IP to an internal one in the interval between the two lookups; allow_redirects=>false blocks the redirect-based bypass but not rebinding. The upstream fix (commit 52e9db94f2da2a6231d77c49537d6d88ce948ee1) replaces the boolean check with getPublicRemoteTarget(), which returns the resolved public IPs and port and emits curlResolveEntries ('host:port:ip') that are passed to the HTTP client as CURLOPT_RESOLVE, pinning the connection to the address that was actually validated; if CURLOPT_RESOLVE is not exposed by the PHP build, the patched code logs an error and refuses to fetch rather than falling back to an unpinned request. This is the third iteration of the same SSRF surface, after GHSA-8qp3-x2mp-j6f8 (fixed in 6.1.0) and GHSA-xwxc-w7v3-2p4j, which added pre-fetch validation but not address pinning.

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 5.9 MEDIUM
AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N
vuln.today AI 5.9 MEDIUM

Network-reachable (AV:N) but gated by an authenticated account (PR:L) and a DNS-rebinding race needing attacker-controlled low-TTL DNS (AC:H); High confidentiality from reachable internal/metadata responses, minor integrity from stored fetched body, no availability impact.

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

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

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

Lifecycle Timeline

1
Patch available
Nov 06, 2026 - 21:03 EUVD

DescriptionCVE.org

2FAuth is a web app to manage Two-Factor Authentication (2FA) accounts and generate their security codes. Prior to 8.0.0, the otpauth image-fetch path validates a hostname through ValidatesUrls::isExternalHost() and then lets IconService::storeRemoteImage() resolve the same hostname again for the HTTP request. When external otpauth image fetching is enabled, an authenticated user controlling low-TTL authoritative DNS can return a public address during validation and an internal address during the later connection, bypassing the private-address deny list to reach loopback, private-network, link-local, or cloud metadata endpoints. This issue is fixed in version 8.0.0.

Threat Intelligence Overview

EPSS Score
0.2%
Top 90% exploitable
Prevalence
Low
self-hosted niche 2FA manager, limited enterprise deployment footprint
Social Media
1
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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
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
No
Human Impact· derived
Medium

Priority Score

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

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