CVE-2026-42238

Nginx UI is a web user interface for the Nginx web server. Prior to version 2.3.8, 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. This issue has been patched in version 2.3.8.
Configurations

Configuration 1 (hide)

cpe:2.3:a:nginxui:nginx_ui:*:*:*:*:*:*:*:*

History

06 May 2026, 14:45

Type Values Removed Values Added
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 9.8
References () https://github.com/0xJacky/nginx-ui/releases/tag/v2.3.8 - () https://github.com/0xJacky/nginx-ui/releases/tag/v2.3.8 - Release Notes
References () https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-4pvg-prr3-9cxr - () https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-4pvg-prr3-9cxr - Exploit, Vendor Advisory
CPE cpe:2.3:a:nginxui:nginx_ui:*:*:*:*:*:*:*:*
First Time Nginxui nginx Ui
Nginxui

05 May 2026, 16:16

Type Values Removed Values Added
References () https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-4pvg-prr3-9cxr - () https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-4pvg-prr3-9cxr -

04 May 2026, 21:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-05-04 21:16

Updated : 2026-05-06 14:45


NVD link : CVE-2026-42238

Mitre link : CVE-2026-42238

CVE.ORG link : CVE-2026-42238


JSON object : View

Products Affected

nginxui

  • nginx_ui
CWE
CWE-94

Improper Control of Generation of Code ('Code Injection')