CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-107804

CVE-2026-107804: Client IP Resolution Flaw & Authentication Lockout in Nginx UI

Amit Schendel
Amit Schendel
Senior Security Researcher

Oct 10, 2026·5 min read·17 visits

Executive Summary (TL;DR)

Unconfigured trusted reverse proxies in Nginx UI cause client IP misattribution to loopback, allowing IP white-list bypass and authentication lockout DoS.

Nginx UI versions 2.2.0 through 2.5.10 fail to properly configure Gin framework trusted proxies when deployed behind a reverse proxy. This causes all incoming HTTP requests to be attributed to the loopback IP (127.0.0.1), enabling IP allowlist bypass and global authentication lockouts.

Vulnerability Overview

CVE-2026-107804 represents an origin validation flaw in Nginx UI, a web interface for managing Nginx web server configurations. The backend application, written in Go using the Gin web framework, fails to properly establish trusted proxy boundaries. Affected versions span from 2.2.0 up to, but excluding, 2.6.0.

In standard deployments, Nginx UI runs behind a local Nginx reverse proxy instance that forwards HTTP requests to the Go application listening on local port 9000. Because the Gin backend is not explicitly configured with trusted proxy addresses via SetTrustedProxies, client IP address extraction defaults to the socket connection peer address (127.0.0.1).

This misattribution results in two severe operational impacts. First, requests routed through the local proxy bypass configured administrative IP allowlists. Second, failed authentication attempts across disparate external clients aggregate under the single loopback IP, enabling unauthenticated remote attackers to trigger account lockouts.

Root Cause Analysis

The root cause of CVE-2026-107804 stems from Gin's client IP resolution mechanics combined with missing framework initialization. Gin determines client IP addresses via c.ClientIP(). When trusted proxies are undefined, Gin ignores forwarded request headers (X-Forwarded-For or X-Real-IP) to prevent IP spoofing from untrusted network clients.

Because the backend framework leaves the trusted proxy list empty, Gin relies exclusively on the TCP socket remote peer address (c.Request.RemoteAddr). In the default architecture, Nginx UI routes incoming external connections through a local Nginx proxy peer. Consequently, every request entering the Go application appears to originate directly from 127.0.0.1 or ::1.

This flaw cascades into security-critical application logic. The IPWhiteList() middleware permits requests if c.ClientIP() matches 127.0.0.1 to prevent local admin lockout. Similarly, the BanIP table in SQLite/GORM indexes failed logins by c.ClientIP(), grouping all external client failures under 127.0.0.1.

Code Analysis

In affected versions (2.2.0 through 2.5.10), the application router initialization in router/routers.go failed to invoke engine.SetTrustedProxies(). As a result, the default empty proxy configuration caused c.ClientIP() to resolve to the peer address of the reverse proxy.

The official fix in commit e30e331303fc21cf077a2bea724bd79e66892eaf introduces trusted proxy configuration directly into the router startup path. The fix defines proxy evaluation logic in router/client_ip.go and updates configuration binding structures.

// Vulnerable Code Path (Pre-2.6.0): router/routers.go
// Engine initialized without setting trusted proxy boundaries
r := gin.Default()
// c.ClientIP() falls back to TCP connection RemoteAddr (127.0.0.1)
 
// Patched Implementation: router/client_ip.go in commit e30e331303fc21cf077a2bea724bd79e66892eaf
var bundledNginxTrustedProxies = []string{"127.0.0.1", "::1"}
 
func trustedProxiesForCurrentTopology() []string {
    trustedProxies := slices.Clone(settings.AuthSettings.TrustedProxies)
    if !helper.ShouldManageBundledNginx() {
        return trustedProxies
    }
    for _, trustedProxy := range bundledNginxTrustedProxies {
        if !slices.Contains(trustedProxies, trustedProxy) {
            trustedProxies = append(trustedProxies, trustedProxy)
        }
    }
    return trustedProxies
}
 
func configureTrustedProxies(engine *gin.Engine) error {
    // Formally registers trusted proxy addresses with the Gin engine
    return engine.SetTrustedProxies(trustedProxiesForCurrentTopology())
}

By executing SetTrustedProxies during router setup, Gin safely parses X-Forwarded-For headers sent by the trusted proxy while continuing to reject unvalidated headers from untrusted connections.

Exploitation Methodology

Exploitation of CVE-2026-107804 requires network connectivity to an Nginx UI instance deployed behind a reverse proxy. Attackers can leverage this misconfiguration to achieve two primary outcomes without requiring prior authentication.

To bypass IP allowlist controls, an attacker issues administrative API requests to Nginx UI via the web interface. Because the backend evaluates the request source as 127.0.0.1, the IPWhiteList() middleware grants access past the network restriction layer. Valid user credentials remain necessary to access protected endpoints.

To execute a Denial of Service, an attacker submits intentional bad authentication requests (such as invalid passwords or incorrect OTP codes) to the login endpoint. Each failure increments the counter for 127.0.0.1 in the database. When the count exceeds MaxAttempts within BanThresholdMinutes, Nginx UI issues a global lockout on 127.0.0.1, preventing legitimate users from logging into the management interface.

Impact Assessment

CVE-2026-107804 carries a CVSS v3.1 score of 5.3 (Medium) with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L. The attack vector is Network, requiring no privileges or user interaction.

The primary severity stems from the Denial of Service vector. By forcing a temporary ban on 127.0.0.1, an attacker can repeatedly block all remote administrative access to the platform. Systems utilizing automated password or OTP authentication are particularly sensitive to this brute-force lockout cycle.

While the IP allowlist bypass permits unauthorized network paths to reach the login interface, direct privilege escalation or data leakage requires valid credentials. Consequently, Integrity and Confidentiality impacts are evaluated as None in the standard CVSS assessment.

Remediation & Mitigation Guidance

System administrators running Nginx UI must update to version 2.6.0 or higher. For Docker installations, pull the updated container image using docker compose pull nginx-ui and restart the service via docker compose up -d --force-recreate nginx-ui.

If Nginx UI is hosted behind additional upstream proxy infrastructure (such as Cloudflare, AWS ALB, or an external Nginx load balancer), update app.ini to explicitly declare the trusted network boundaries under the [auth] section.

[auth]
TrustedProxies = 127.0.0.1
TrustedProxies = 10.0.0.0/8

Alternatively, set the environment variable NGINX_UI_AUTH_TRUSTED_PROXIES="127.0.0.1,10.0.0.0/8". Administrators must never configure TrustedProxies to wildcards like 0.0.0.0/0 or ::/0, as this would allow untrusted external clients to spoof X-Forwarded-For headers.

Technical Appendix

CVSS Score
5.3/ 10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Affected Systems

Nginx UI versions 2.2.0 through 2.5.10Nginx UI Docker containers running behind bundled or external reverse proxies
AttributeDetail
CWE IDCWE-346 (Origin Validation Error)
Attack VectorNetwork (AV:N)
CVSS v3.15.3 (Medium)
EPSS ScoreN/A
ImpactIP Allowlist Bypass, Denial of Service
Exploit StatusNo public PoC available
CISA KEV StatusNot Listed
CWE-346
Origin Validation Error

Vulnerability Timeline

Fix commit e30e331303fc21cf077a2bea724bd79e66892eaf authored
2026-09-04
GitHub Security Advisory GHSA-9h23-53f4-q947 published
2026-10-09
CVE-2026-107804 assigned and NVD entry created
2026-10-09
Nginx UI version 2.6.0 released with fix
2026-10-09

More Reports

•about 1 hour ago•GHSA-47W9-6R3F-938G
9.9

GHSA-47w9-6r3f-938g: Authorization Bypass and Host Root Command Execution in Canonical LXD and Incus

A missing authorization and configuration validation vulnerability in Canonical LXD and LXC Incus allows authenticated users within restricted projects to bypass project security boundaries. By smuggling prohibited low-level configuration directives (such as raw.lxc or raw.qemu) inside instance snapshots or backup archives, an attacker can restore these configurations within a restricted project and execute arbitrary commands with root privileges on the underlying host operating system.

Alon Barad
Alon Barad
3 views•11 min read
•about 2 hours ago•GHSA-JPF8-86F3-WP38
9.9

CVE-2026-48752: Arbitrary Host File Read and Write via Templates Symlink in Canonical LXD and Incus

A symbolic link traversal vulnerability (CWE-59) in Canonical LXD and Linux Containers Incus allows an authenticated user with image import permissions to read and write arbitrary files on the host filesystem. During image archive unpacking, the daemon fails to reject top-level symbolic links for the instance `templates` directory. Subsequent requests to the instance template API endpoints follow this symbolic link outside the instance storage directory with root privileges, enabling complete host compromise.

Amit Schendel
Amit Schendel
4 views•10 min read
•about 24 hours ago•CVE-2026-12411
8.4

CVE-2026-12411: Cross-Guest Volume Hijack via DevLXD Device PATCH in Canonical LXD

CVE-2026-12411 is a broken access control vulnerability in the DevLXD interface of Canonical LXD versions 6.6 through 6.8. The flaw resides in the devLXDInstancePatchHandler component, which fails to verify storage volume ownership when an instance attaches a new disk device via the /dev/lxd guest socket. When the security.devlxd.management.volumes configuration option is enabled, an untrusted guest or DevLXD identity can issue a crafted HTTP PATCH request referencing another tenant's custom storage volume. The LXD host daemon subsequently mounts the target volume into the requesting guest, permitting unauthorized cross-tenant read and write operations.

Amit Schendel
Amit Schendel
7 views•10 min read
•1 day ago•CVE-2026-105769
9.3

CVE-2026-105769: Azure Entra ID Token Exfiltration in Kaniko via Unanchored ACR Hostname Regex

CVE-2026-105769 (GHSA-5q7h-w9jf-cx97, GO-2026-6225) is an origin validation error and credential exfiltration vulnerability affecting Kaniko prior to version 1.25.20. The flaw stems from an unanchored regular expression in the integrated Azure Container Registry (ACR) credential helper (github.com/chrismellard/docker-credential-acr-env). When Kaniko processes a Dockerfile containing an image reference hosted on a lookalike domain containing an ACR suffix as a substring (e.g., x.azurecr.io.attacker.com), the credential helper acquires a Microsoft Entra ID access token for Azure Resource Manager and transmits it via HTTP POST to the attacker-controlled host.

Amit Schendel
Amit Schendel
11 views•11 min read
•1 day ago•CVE-2026-62300
6.5

CVE-2026-62300: Uncontrolled Resource Consumption in filecoin-pin Daemon

CVE-2026-62300 is an uncontrolled resource consumption vulnerability (CWE-400) affecting the daemon mode of filecoin-pin in versions up to and including 1.1.0. The daemon implements the IPFS Pinning Service API to store content on Filecoin's Proof of Data Possession (PDP) service. Due to the absence of rate limits, concurrency caps, execution timeouts, and Directed Acyclic Graph (DAG) traversal limits, an authenticated user—or an unauthenticated user when authentication is disabled—can exhaust system resources via crafted POST /pins requests.

Amit Schendel
Amit Schendel
9 views•11 min read
•1 day ago•CVE-2026-61536
7.5

CVE-2026-61536: Remote Code Execution via Unsafe Reflection in masci/banks CompletionExtension

CVE-2026-61536 is a high-severity Remote Code Execution (RCE) vulnerability in the masci/banks Python library prior to version 2.4.3. The flaw exists within the CompletionExtension component, which parses JSON-serialized Tool definitions directly from rendered Jinja template bodies inside {% completion %} blocks. When handling tool calls returned by an LLM, the library dynamically resolves the target callable using importlib.import_module() and getattr() based on an unvalidated import_path string. An attacker who can supply or modify prompt templates can inject a malicious Tool JSON object pointing to arbitrary Python functions (such as os.system), bypassing the Jinja SandboxedEnvironment introduced in version 2.4.2 and achieving arbitrary code execution when the LLM invokes the tool.

Alon Barad
Alon Barad
9 views•10 min read