Skip to main content

nginx-ui CVE-2026-42238

| EUVDEUVD-2026-27141 CRITICAL
Code Injection (CWE-94)
2026-05-04 GitHub_M GHSA-4pvg-prr3-9cxr
9.0
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify fresh nginx-ui deployment
  2. Delivery
    Send crafted backup archive to /api/restore
  3. Exploit
    Overwrite app.ini with command injection
  4. Execution
    Wait for automatic restart
  5. Persist
    Trigger TestConfigCmd execution
  6. Impact
    Execute arbitrary code as root

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires nginx-ui fresh installation within first 10 minutes after process startup before any authentication mechanisms are configured - this is the specific deployment state where /api/restore endpoint lacks authentication enforcement entirely. Attack vector is network-based (AV:N) requiring HTTP/HTTPS access to the nginx-ui management interface from attacker-controlled network position. No authentication credentials required (PR:N) during vulnerability window. User interaction required (UI:P) in form of triggering follow-up request after malicious backup restoration to execute injected TestConfigCmd. Exploitation limited to versions before 2.3.8. Highest impact in Docker deployments running nginx-ui process as root user. Does NOT affect installations past initial 10-minute window or those with network access controls blocking external /api/restore requests.

Impact

Real-world risk is HIGH despite narrow exploitation window. CVSS 4.0 score of 9.0 reflects network attack vector (AV:N), low attack complexity (AC:L), no privileges required (PR:N), but attack timing constraints (AT:P). The 10-minute unauthenticated window exists ONLY on fresh installations, significantly limiting exposure compared to persistent vulnerabilities. However, impact is CRITICAL when exploitable: complete system compromise (VC:H/VI:H/VA:H) with scope change to underlying infrastructure (SC:H/SI:H/SA:H), especially in Docker environments where nginx-ui typically runs as root. The attack requires user interaction (UI:P) to trigger command execution via follow-up request after restore, adding minor friction. No EPSS score available for probability assessment. No CISA KEV listing indicates exploitation has not been observed at scale in the wild. GitHub Security Advisory disclosure suggests vendor-coordinated release rather than active exploitation discovery. Primary risk scenario: attackers scanning for newly deployed nginx-ui instances during the vulnerability window, though automated exploitation at scale is constrained by timing requirements. Organizations with frequent fresh deployments face elevated exposure.

Exploit ScenarioDerived

Attacker scans IPv4 ranges for newly deployed nginx-ui instances exposing port 80/443 to internet. Upon discovering a fresh installation within its 10-minute unauthenticated window, attacker crafts a malicious backup archive containing app.ini with TestConfigCmd set to reverse shell command. Attacker POSTs this archive to /api/restore endpoint without credentials. Nginx-ui automatically restarts to apply restored configuration. Attacker sends single request triggering TestConfigCmd execution, establishing remote shell as root on Docker host. No public proof-of-concept code confirmed in references, but attack primitive is straightforward given detailed advisory disclosure.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 04, 2026

Remote code execution as root in nginx-ui versions before 2.3.8 via unauthenticated backup restore within 10-minute startup window. Attackers exploit the completely unauthenticated /api/restore endpoint during initial installation to upload malicious backup archives that overwrite app.ini configuration with injected OS commands in TestConfigCmd setting. After automatic application restart, command injection triggers with privileges of the nginx-ui process - typically root in Docker deployments. EPSS data not available; no active exploitation reported but publicly disclosed via GitHub Security Advisory GHSA-4pvg-prr3-9cxr. Patch released in version 2.3.8.

RemediationAI

Immediately upgrade to nginx-ui version 2.3.8 or later, released by vendor at https://github.com/0xJacky/nginx-ui/releases/tag/v2.3.8. For environments unable to patch immediately, implement network-level access controls to restrict /api/restore endpoint access during the critical 10-minute startup window: configure reverse proxy or firewall rules to block unauthenticated POST requests to /api/restore from external networks, allowing access only from trusted management subnets. This mitigation adds operational complexity to legitimate backup restoration workflows and requires careful coordination during deployment windows. For Docker deployments, run nginx-ui container under a non-root user account with least-privilege principles to limit command injection impact scope, though this may affect Nginx management capabilities requiring elevated permissions. Monitor authentication logs for unexpected /api/restore access attempts during fresh installations. No other workaround eliminates the underlying authentication bypass - version upgrade is the definitive remediation.

Affected VersionsENISA

nginx-ui < 2.3.8

Affected Packages

go github.com/0xjacky/nginx-ui fix: 2.3.8
euvd nginx_ui fix: 2.3.8

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Nginx-ui (CPE: cpe:2.3:a:0xjacky:nginx-ui) is a web-based management interface for Nginx web servers, commonly deployed in Docker containers running as root. The vulnerability stems from CWE-94 (Improper Control of Generation of Code/Code Injection) in the backup restoration logic. During the first 10 minutes after fresh installation startup, the POST /api/restore endpoint lacks authentication enforcement entirely. The endpoint accepts backup archives containing app.ini configuration files and SQLite databases. The application's TestConfigCmd configuration parameter accepts arbitrary shell commands intended for Nginx configuration validation. By crafting a malicious backup archive with injected commands in the restored app.ini file, attackers achieve code injection. The application automatically restarts to apply restored configurations, executing the injected command string through the TestConfigCmd mechanism with the process owner's privileges.

Know when Nginx Ui gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 9.0 CRITICAL
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
SUSE CRITICAL

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

Lifecycle Timeline

2
Patch available
May 04, 2026 - 22:17 EUVD
CVSS changed
May 04, 2026 - 21:22 NVD
9.0 (CRITICAL)

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

nginx-ui versions before 2.3.8 contain a critical remote code execution vulnerability that allows unauthenticated attackers to execute arbitrary commands with root privileges during the 10-minute startup window. Organizations running vulnerable nginx-ui instances-particularly in containerized environments-face immediate risk of complete infrastructure compromise without authentication or user interaction.

Business Impact: Severe
Compensating Controls

Vendor-released patch: nginx-ui version 2.3.8. If immediate patching is not feasible: (1) Restrict network access to the nginx-ui instance to trusted networks only and disable external connectivity during startup; (2) Monitor access logs for requests to /api/restore endpoint and alert on any POST/PUT activity; (3) Disable nginx-ui temporarily or run in offline mode until patch deployment is possible; (4) Implement host-level controls restricting nginx-ui process capabilities and file system write permissions where feasible.

Threat Intelligence Overview

EPSS Score
0.2%
Top 54% exploitable
Threat Intel
1
1 source
Social Media
3
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Total

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +45
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

CVE-2026-27944 CRITICAL POC
9.8 Mar 05

Unauthenticated backup download and RCE in Nginx UI before 2.3.3. EPSS 1.0%. PoC available.

CVE-2026-42221 CRITICAL POC
9.8 May 04

Unauthenticated attackers who can reach a fresh, uninitialized Nginx UI instance before version 2.3.8 during its first-r

CVE-2024-49368 HIGH POC
8.9 Oct 21

Nginx UI is a web user interface for the Nginx web server. Rated high severity (CVSS 8.9), this vulnerability is remotel

CVE-2024-49366 HIGH POC
7.7 Oct 21

Nginx UI is a web user interface for the Nginx web server. Rated high severity (CVSS 7.7), this vulnerability is remotel

CVE-2026-42223 MEDIUM POC
6.5 May 04

nginx-ui versions prior to 2.3.8 expose 40+ protected configuration fields through the GetSettings API to authenticated

CVE-2026-42220 MEDIUM POC
6.5 May 04

nginx-ui prior to version 2.3.8 exposes sensitive configuration values including node.secret via an authenticated GET /a

CVE-2026-44015 CRITICAL
9.9 May 12

Server-side request forgery in Nginx UI through 2.3.4 lets any authenticated user redirect API requests to an attacker-c

CVE-2026-42222 CRITICAL
9.8 May 04

Unauthenticated bootstrap takeover in Nginx UI 2.3.5: any remote client that can reach a still-uninitialized instance du

CVE-2024-23827 CRITICAL
9.8 Jan 29

Nginx-UI is a web interface to manage Nginx configurations. Rated critical severity (CVSS 9.8), this vulnerability is re

CVE-2026-107806 CRITICAL
9.4 Oct 09

Authenticated administrators of Nginx UI releases 2.3.8 through 2.4.x can achieve remote code execution on the host by a

CVE-2026-84318 HIGH
8.8 Oct 12

Configuration-validation bypass in Nginx UI (versions 2.0.0-rc.6 through 2.4.0) lets an authenticated low-privilege user

CVE-2026-84313 HIGH
8.8 Oct 12

Nginx UI installations before 2.4.1 expose two account-security endpoints, POST /api/otp_enroll and POST /api/finish_pas

Vendor StatusVendor

SUSE

Severity: Critical
Product Status
SUSE Linux Enterprise Server 16.1 Affected
SUSE Linux Enterprise Server for SAP applications 16.1 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP5 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP6 Affected
openSUSE Leap 15.5 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy