All vulnerabilities

Servers and applications

GHSA-m9w2-f5px-x36p

Authenticated Admin → OS RCE via Backup Restore Bypassing `protected` Settings Controls in nginx-ui

Severity
High 7.5
Published
12 Aug 2026
Last changed
12 Aug 2026
Added to UpHeron
3 Nov 2026
Fixed in
2.5.0
Weakness
OS command injection (CWE-78)Improper access control (CWE-284)
Attack
Over the network · Only under certain conditions · Needs an administrator account · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Sources
Project advisories (GitHub)

Description

Product: nginx-ui Repository: 0xJacky/nginx-ui (branch: dev) Vulnerability Class: Security Control Bypass → OS Command Injection (CWE-78 / CWE-284) CVSS v3.1 Score: 7.2 High — AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H Affected Component: POST /api/restore, internal/backup/restore.go, internal/nginx/exec.go Status: NOT FIXED in current dev branch (7864e378, 2026-04-21)

nginx-ui explicitly marks shell command settings (TestConfigCmd, ReloadCmd, RestartCmd, LogrotateSettings.CMD) as protected:"true" to prevent them from being modified via the settings API. This is a deliberate security control: these fields are passed verbatim to /bin/sh -c, so allowing arbitrary modification would be OS command injection.

However, the POST /api/restore endpoint — accessible to any authenticated admin — overwrites app.ini directly on disk with no content validation, completely bypassing the protected field mechanism.

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