---
id: CVE-2026-63440
title: >-
  2FAuth: Authenticated SSRF via DNS rebinding in the otpauth image= icon fetch
  (validate-then-fetch TOCTOU)
summary: >-
  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…
severity: medium
cvss: 5.9
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N'
cvssSource: cna
cwe:
  - CWE-367
  - CWE-918
vendor: Bubka
product: 2FAuth
affected:
  - 2FAuth < 8.0.0
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-11T03:28:14.595265Z'
exploitAvailable: true
published: '2026-11-06'
updated: '2026-11-11'
sourceUpdated: '2026-11-11T03:28:42.896Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-63440'
references:
  - url: 'https://github.com/Bubka/2FAuth/security/advisories/GHSA-22mh-gmrh-gpwg'
    label: 'https://github.com/Bubka/2FAuth/security/advisories/GHSA-22mh-gmrh-gpwg'
  - url: >-
      https://github.com/Bubka/2FAuth/commit/52e9db94f2da2a6231d77c49537d6d88ce948ee1
    label: >-
      https://github.com/Bubka/2FAuth/commit/52e9db94f2da2a6231d77c49537d6d88ce948ee1
  - url: 'https://github.com/Bubka/2FAuth/releases/tag/v8.0.0'
    label: 'https://github.com/Bubka/2FAuth/releases/tag/v8.0.0'
tags:
  - cve.org
  - exploit-available
epss: 0.00202
epssPercentile: 0.10385
ingestedAt: '2026-11-06T21:04:04.253Z'
---

## Overview

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.

## Affected

- `2FAuth < 8.0.0`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
