---
id: "CVE-2026-107806"
kind: "vulnerability"
aliases: ["CVE-2026-107806", "GHSA-p393-cf76-4jmr", "GO-2026-6741"]
title: "Nginx UI: Authenticated Remote Code Execution via Backup Restore App Config Overwrite in github.com/0xJacky/Nginx-UI"
severity: "critical"
cvss: 9.4
epss: 0.00405
exploited: false
status: "open"
category: "package"
products: [{"name": "github.com/0xJacky/Nginx-UI", "fixed": ["1.9.10-0.20260728074146-a467ed652591"], "affected": ">= 1.9.10-0.20260421071512-7864e378f5cf, < 1.9.10-0.20260728074146-a467ed652591", "ecosystem": "go"}]
ecosystems: ["go"]
tags: ["go", "nginx", "nginx-ui", "package", "self-hosted"]
not_affected_if: ["no-admin-access-exposed", "versions-2.5.0-or-later", "versions-before-2.3.8"]
published_at: "2026-10-09T15:17:10+00:00"
first_seen_at: "2026-10-23T19:13:08+00:00"
updated_at: "2026-10-23T19:52:35+00:00"
sources: [{"source": "govuln", "url": "https://pkg.go.dev/vuln/GO-2026-6741", "first_seen_at": "2026-10-23T19:13:08+00:00"}, {"source": "epss", "url": "https://api.first.org/data/v1/epss?cve=CVE-2026-107806", "first_seen_at": "2026-10-23T19:13:43+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-107806", "first_seen_at": "2026-10-23T19:35:23+00:00"}]
---

# Nginx UI: Authenticated Remote Code Execution via Backup Restore App Config Overwrite in github.com/0xJacky/Nginx-UI

Nginx UI, a web interface for managing Nginx, lets an authenticated administrator restore a crafted backup that overwrites app.ini, including the nginx test command setting. Triggering the nginx config test then runs the attacker's command in the Nginx UI runtime context.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- go:github.com/0xJacky/Nginx-UI affected >= 1.9.10-0.20260421071512-7864e378f5cf, < 1.9.10-0.20260728074146-a467ed652591 fixed 1.9.10-0.20260728074146-a467ed652591

## How to check

Check the Go module version of github.com/0xJacky/Nginx-UI in go.mod or the running binary; versions from 2.3.8 up to but not including 2.5.0 are affected.

## Fix

Upgrade github.com/0xJacky/Nginx-UI to 2.5.0 or later (the fixed pseudo-version 1.9.10-0.20260728074146-a467ed652591 per govuln).
Restrict access to the admin panel and review who holds admin accounts until patched.

## Timeline

- 2026-10-23T19:13:08+00:00 govuln https://pkg.go.dev/vuln/GO-2026-6741
- 2026-10-23T19:13:43+00:00 epss https://api.first.org/data/v1/epss?cve=CVE-2026-107806
- 2026-10-23T19:35:23+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-107806

## From the sources

Nginx UI is a web user interface for the Nginx web server. From 2.3.8 until 2.5.0, an authenticated administrator with an active secure session can submit attacker-controlled portable backup key material and a matching manifest to POST /api/restore. The restore flow trusts the supplied key, decrypts attacker-controlled contents, and replaces the live app.ini, including protected nginx command settings such as TestConfigCmd. Triggering POST /api/nginx/test then executes the restored command in the Nginx UI runtime context, affecting confidentiality, integrity, and availability. This issue is fixed in version 2.5.0.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
