Skip to main content

nginx-ui CVE-2026-42221

| EUVDEUVD-2026-27135 HIGH
Missing Authentication for Critical Function (CWE-306)
2026-05-04 GitHub_M GHSA-h27v-ph7w-m9fp
8.1
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

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

  1. Access
    Scan for new nginx-ui instances
  2. Delivery
    Fingerprint unconfigured state via HTTP responses
  3. Exploit
    Send crafted /api/install request with attacker credentials
  4. Execution
    Claim administrator account
  5. Impact
    Persist access to Nginx management

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication required for critical functions
MITRE ATT&CK

1 technique across 1 tactic: Initial Access

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

Exploitation Conditions

Exploitation requires the nginx-ui instance to be in its first-run unconfigured state, after initial deployment but before the legitimate administrator completes the setup wizard via the /api/install endpoint. The vulnerability window opens when the nginx-ui service starts for the first time and closes permanently once any user successfully submits valid installation parameters. Network reachability to the nginx-ui web interface (typically TCP port 80, 443, or custom ports like 8080) from the attacker's position is required-exploitation succeeds against internet-facing deployments or internal instances accessible to the attacker. No authentication, credentials, or user interaction is required; the /api/install endpoint accepts requests from any source during this initialization phase. Attack complexity stems not from technical barriers but from timing: the attacker must reach the endpoint before legitimate operators, making this a race condition rather than a persistent flaw. Cloud deployments with public IP assignment before configuration, containerized instances with exposed ports during orchestration, or installations following documented setup guides that create exposure windows are most susceptible.

Impact

The CVSS 3.1 score of 8.1 (High) reflects substantial impact potential: network-accessible attack vector (AV:N), no privileges required (PR:N), no user interaction (UI:N), and high impact across confidentiality, integrity, and availability (C:H/I:H/A:H). However, attack complexity is HIGH (AC:H) due to the narrow exploitation window-the vulnerability only exists during initial deployment before legitimate configuration. This temporal constraint significantly reduces real-world risk compared to persistent authentication bypasses. No CISA KEV listing suggests this is not being exploited at scale, consistent with the time-sensitive nature requiring attackers to monitor for new nginx-ui deployments. EPSS score unavailable, limiting probabilistic risk assessment. The SSVC framework would categorize this as requiring specialized conditions (non-default state = fresh installation), with high technical impact but low automatable exploitation due to timing requirements. Priority depends heavily on organizational deployment practices: high risk for cloud environments with publicly exposed instances during provisioning, moderate risk for private networks with controlled deployment windows. The permanent nature of the takeover (attacker sets credentials that persist indefinitely) elevates severity once successfully exploited, but the pre-condition of catching a fresh installation before legitimate setup makes this a targeted threat rather than opportunistic scanning risk.

Exploit ScenarioDerived

An attacker continuously scans cloud provider IP ranges for newly deployed nginx-ui instances listening on default ports (typically 80/443 or 8080). When detecting an unconfigured instance via fingerprinting responses, the attacker immediately sends a crafted POST request to /api/install containing their own email, username, and password before the legitimate administrator completes setup. The encrypted request bypasses no authentication checks and successfully creates the administrative account with attacker-controlled credentials. The legitimate operator, arriving minutes later, finds the instance already configured and either fails to notice the compromise or assumes a colleague completed setup. The attacker maintains persistent administrative access to the Nginx management interface, enabling web server reconfiguration, traffic interception, or pivot points into backend infrastructure.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – May 04, 2026

Unauthenticated attackers can hijack the administrator account during nginx-ui's first-run installation window by claiming the /api/install endpoint before legitimate operators. This race-condition vulnerability in nginx-ui versions 2.0.0 through 2.3.7 bypasses authentication controls entirely, allowing complete instance takeover with attacker-controlled credentials. The request-encryption mechanism protects only transit confidentiality, not authorization. Attack complexity is rated HIGH due to the narrow time window between deployment and legitimate setup completion. EPSS data unavailable; no CISA KEV listing or public POC identified at time of analysis, but exploitation requires only standard HTTP tools and timing.

RemediationAI

Upgrade immediately to nginx-ui version 2.3.8 or later, released by the vendor to address this vulnerability (https://github.com/0xJacky/nginx-ui/releases/tag/v2.3.8). Version 2.3.8 implements authentication controls on the /api/install endpoint to prevent unauthorized setup requests. For environments unable to upgrade immediately, implement network-level access controls to restrict the /api/install endpoint to trusted IP addresses during initial deployment-configure firewall rules or reverse proxy ACLs to block external access until setup is complete, then remove restrictions. Deploy new instances in isolated network segments unreachable from the internet during setup, completing configuration before exposing to production networks; this mitigation adds operational complexity to deployment pipelines but eliminates the race-condition window. Monitor authentication logs after any deployment to verify the configured administrator credentials match expected values; unauthorized account creation would indicate successful exploitation requiring immediate instance rebuild. For cloud or container deployments, use infrastructure-as-code to automate configuration immediately post-provisioning, minimizing the window of exposure to milliseconds rather than human-time intervals.

Affected VersionsENISA

nginx-ui 2.0.0, < 2.3.8

Affected Packages

go github.com/0xjacky/nginx-ui fix: 2.3.8
euvd nginx_ui_2_0_0 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 the Nginx web server. The vulnerability stems from CWE-306 (Missing Authentication for Critical Function) in the installation initialization flow. The /api/install endpoint, designed for first-run setup, lacks authentication controls and accepts installation requests from any network-reachable source. While the implementation uses request encryption to protect credentials in transit, this cryptographic layer only ensures confidentiality-it does not verify that the requester is authorized to configure the instance. This design flaw creates a race condition where the first client to successfully invoke the endpoint gains permanent administrative access. The vulnerability exists in the initialization logic that transitions the application from unconfigured to production state without validating the legitimacy of the setup request.

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

GitHub Advisory PRIMARY 8.1 HIGH
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
SUSE CRITICAL

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

1
Patch available
May 04, 2026 - 22:17 EUVD

DescriptionGitHub Advisory

Nginx UI is a web user interface for the Nginx web server. From version 2.0.0 to before version 2.3.8, an unauthenticated network attacker can claim the initial administrator account on a fresh nginx-ui instance during the first-run setup window. The public /api/install endpoint is reachable without authentication, and the request-encryption flow only protects payload confidentiality in transit; it does not authenticate who is allowed to perform installation. A remote attacker who reaches the service before the legitimate operator can set the admin email, username, and password, causing permanent initial-instance takeover. This issue has been patched in version 2.3.8.

Executive ViewAI

Why It Matters

nginx-ui versions 2.0.0-2.3.7 contain a race-condition vulnerability in the first-run installation endpoint that allows unauthenticated attackers to seize administrator control before legitimate operators complete setup, resulting in complete instance compromise. Organizations deploying or recently deployed nginx-ui are at immediate risk of account hijacking and full administrative takeover during the installation window. This vulnerability bypasses all authentication controls during a critical operational phase.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict network access to the /api/install endpoint via firewall or reverse proxy to authorized administrator IP ranges only; (2) Complete the nginx-ui installation process immediately after deployment to close the race-condition window; (3) Disable external network routing to /api/install until installation is confirmed complete; (4) Audit and document all administrator accounts and credentials immediately after setup; (5) Enable comprehensive logging on the /api/install endpoint to detect unauthorized access attempts. Monitor vendor security advisories daily for patch availability.

Threat Intelligence Overview

EPSS Score
0.1%
Top 76% exploitable
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Social Media
2
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA POC (1) 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 HIGH
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
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
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

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

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

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-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-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-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-42238 CRITICAL
9.0 May 04

Remote code execution as root in nginx-ui versions before 2.3.8 via unauthenticated backup restore within 10-minute star

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

CVE-2026-84316 HIGH
8.8 Oct 12

Configuration validation bypass in Nginx UI (nginx-ui) prior to 2.4.1 lets an authenticated user with configuration-writ

CVE-2026-107811 HIGH
8.8 Oct 09

Ordinary authenticated users of clustered Nginx UI deployments can read the cluster node token from the JSON responses o

CVE-2026-107813 HIGH
8.8 Oct 09

Missing second-factor step-up enforcement in the Nginx UI cluster API (versions 2.0.0 through 2.4.x) allows anyone holdi

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