All vulnerabilities

Servers and applications

GHSA-7mm5-v557-38qq

[Incomplete fix for CVE-2026-42238] Remote Code Execution via `/api/restore`

Severity
Critical 9.1
Published
12 Aug 2026
Last changed
12 Aug 2026
Added to UpHeron
3 Nov 2026
Fixed in
2.5.0
Weakness
Improper input validation (CWE-20)OS command injection (CWE-78)
Attack
Over the network · Needs an administrator account · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
Sources
Project advisories (GitHub)

Description

The v2.3.8 patch for CVE-2026-42238 only added authentication middleware (AuthRequired + RequireSecureSession + EncryptedForm) to POST /api/restore. The underlying primitive — restoreNginxUIConfig copyFiles the attacker-supplied app.ini straight over /etc/nginx-ui/app.ini with no validation, the planted [nginx] ReloadCmd is then read into exec.Command("/bin/sh", "-c", …) on the next reload — was never addressed.

The chosen gate RequireSecureSession() early-returns c.Next() for any user without TOTP enrolled (internal/middleware/secure_session.go:60). Default install state of uozi/nginx-ui:latest is no-OTP. So the gate is non-functional for the most common deployment configuration, and the original CVE-2026-42238 exploit shape is restored — only difference: a single-factor admin JWT now stands in for the unauthenticated install-window.

From 0xJacky/nginx-ui's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
Nginx UIServers and applications · github:0xjacky/nginx-ui
  • From 2.0.0 before 2.5.0

About Nginx UI

Yet another WebUI for Nginx

From its GitHub repository.
Docker Hub pulls
1,512,532Docker Hub, 15 Nov 2026
GitHub stars
11,783GitHub, 15 Nov 2026
Forks
921GitHub, 15 Nov 2026
Latest release
v3.0.3GitHub, 15 Nov 2026
Released
12 Nov 2026GitHub
License
AGPL-3.0GitHub
First published on GitHub
19 Feb 2021GitHub

References