All vulnerabilities

Servers and applications

CVE-2026-42238

Unauthenticated Remote Code Execution via Backup Restore in nginx-ui

Severity
Critical 9.0
Published
27 Apr 2026
Last changed
25 Oct 2026
Added to UpHeron
1 Nov 2026
Fixed in
2.3.8
Exploit chance
1% in the next 30 daysHigher than 62% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Code injection (CWE-94)
Attack
Over the network · Only under certain conditions · No login needed · Needs someone to view a page or file
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Also known as
GHSA-4pvg-prr3-9cxr
Sources
NVD, Project advisories (GitHub)

Description

Product: nginx-ui Repository: 0xJacky/nginx-ui (branch: dev) Vulnerability Class: Authentication Bypass → Arbitrary File Write → OS Command Injection Affected Component: POST /api/restore

nginx-ui exposes a backup restore endpoint (POST /api/restore) that is completely unauthenticated during the first 10 minutes after process startup on any fresh installation. An unauthenticated remote attacker can upload a crafted backup archive that overwrites the application's configuration file (app.ini) and SQLite database. Because the attacker controls the restored app.ini, they can inject an arbitrary OS command into the TestConfigCmd setting. After the application automatically restarts to apply the restored config, a single follow-up request triggers that command as the user running nginx-ui — typically root in Docker deployments.

The 10-minute unauthenticated window resets on every process restart, making this exploitable not only on initial deployments but on any restart event (container…

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

Affected software

SoftwareAffected versions
Nginx UIServers and applications · cpe:a:nginxui:nginx_ui
  • Every version before 2.3.8
Nginx UIServers and applications · github:0xjacky/nginx-ui
  • Every version before 2.3.8

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

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-42238
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-42238
  • GitHub Advisory Database https://github.com/advisories/GHSA-4pvg-prr3-9cxr
  • github.com https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-4pvg-prr3-9cxr