CVE Catalog

CVE-2026-63440

MediumCVSS 5.9
Published: Translated: NVD NIST

Summary

In 2FAuth, 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.

Risk Assessment

This vulnerability allows an attacker with DNS control to bypass protections and access internal network resources, potentially leading to data leakage or abuse of cloud metadata services. The risk applies to deployments with external otpauth image fetching enabled.

Recommendation

Update 2FAuth to version 8.0.0 or later. In the meantime, consider disabling external otpauth image fetching if not required.

Other vulnerabilities in 2FAuth

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS