Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach fresh nginx-ui over network
-
DeliveryFetch public RSA key from /api/crypto/public_key
-
ExploitEncrypt attacker admin credentials
-
ExecutionPOST /api/install before operator
-
PersistOverwrite privileged user ID 1
-
ImpactFull admin takeover of 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 a fresh, uninitialized nginx-ui instance that is network-reachable during its first-run setup window - specifically, per the advisory, the instance must still be treated as uninstalled (JwtSecret empty and SkipInstallation false) and the request must arrive before installation completes and within the ~10-minute startup window checked by api/system/install.go. No authentication, user interaction, or special configuration is needed because /api/install and /api/crypto/public_key are mounted without AuthRequired(); the request-encryption flow only protects payload confidentiality, not authorization. Limiting factors that reduce real-world risk: once an operator completes setup (lock flips to true) OR the ~10-minute window elapses (timeout), the endpoint rejects further installs, so already-provisioned instances are NOT exposed - the window is the single most important mitigating condition, and it also explains SSVC Automatable:no and the low EPSS. |
| Impact | The signals are consistent on technical severity but mixed on real-world urgency. CVSS 3.1 is 9.8 (AV:N/AC:L/PR:N/UI:N, PR:N = unauthenticated, C:H/I:H/A:H) and SSVC rates Technical Impact as 'total', matching the advisory's claim of permanent initial-admin takeover of a Nginx management interface. However, SSVC Automatable:no and the narrow exploitation state (only a fresh, uninitialized instance within the first-run window) mean this is not a spray-and-pray mass-exploitation bug - it requires reaching a specific instance during a specific lifecycle moment. EPSS is very low at 0.08% (24th percentile), which is congruent with Automatable:no and the absence of any KEV listing: no confirmed active exploitation, and opportunistic internet-wide exploitation is constrained by the window. The vuln.today Decision label is nonetheless 'act_now', driven by the critical impact plus the existence of a detailed public advisory with reproduction steps; treat this as act-now for any operator who is deploying or re-deploying nginx-ui now, since the exposure is concentrated at install time. SSVC Exploitation is 'poc'; the input classifies the PoC as a reference not verified as working exploit code, though the GHSA advisory itself contains a step-by-step reproduction and a verification script. Net: a genuine critical priority at the moment of deployment, but the low EPSS correctly reflects that already-installed instances are not exposed and that broad untargeted exploitation is unlikely. |
| Exploit ScenarioDerived | A defender stands up a fresh nginx-ui instance (2.0.0 to before 2.3.8) reachable on the network and steps away before completing first-run setup. A remote attacker fetches GET /api/install, sees lock=false, obtains the server RSA key via POST /api/crypto/public_key, and submits an encrypted POST /api/install setting their own admin email, username, and password - seizing user ID 1 before the operator. A public PoC reference exists; it is not verified as working exploit code, but the advisory documents the full manual HTTP sequence and a verification script. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Oct 26, 2026
Unauthenticated attackers who can reach a fresh, uninitialized Nginx UI instance before version 2.3.8 during its first-run setup window can set the initial administrator credentials and permanently take over the application. Despite the 9.8 severity and an act_now priority, exploitation requires the instance to still be uninstalled and the request to arrive within the roughly 10-minute startup window; already-provisioned instances and installations past that window reject the request, which keeps real-world exposure narrow. The issue is patched in 2.3.8; a public PoC reference exists but is not verified as working exploit code, and EPSS is low at 0.08% (24th percentile).
Earlier versions of this analysis (1)
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
Vendor-released patch: Nginx UI 2.3.8. Upgrade to 2.3.8 using https://github.com/0xJacky/nginx-ui/releases/tag/v2.3.8, and consult https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-h27v-ph7w-m9fp. If a fresh instance cannot be upgraded immediately, do not expose it to untrusted networks during first-run setup; restrict access to loopback or a trusted management network until initialization completes, recognizing that this makes remote setup unavailable. Complete initial setup promptly because the endpoint rejects further installs once lock is true or the roughly 10-minute window expires, but that race-window reduction is not a complete fix. The advisory also calls for a single-use bootstrap secret printed only to the server console or written to a root-owned local file, loopback-only installation by default with explicit opt-in for remote setup, and an atomic persisted installation state; these are design changes, and updating to 2.3.8 is the complete vendor fix.
Affected VersionsENISA
Affected Packages
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 is a Go-based web administration front end for Nginx. The flaw is CWE-306, missing authentication for a critical function: router/routers.go mounts system.InitPublicRouter under /api, and api/system/router.go registers GET and POST /api/install without AuthRequired(), while /api/crypto/public_key is likewise public. api/system/install.go treats the instance as uninstalled when JwtSecret is empty and SkipInstallation is false and only rejects install requests after installation has completed or the roughly 10-minute startup window has expired. On a successful unauthenticated POST, the handler derives and stores the JWT secret, node secret, and certificate e-mail from attacker input and overwrites privileged user ID 1 with the attacker-chosen username and password hash; the request-encryption middleware decrypts encrypted_params but performs no authorization, caller-trust, or bootstrap-secret check. The CPE cpe:2.3:a:0xjacky:nginx-ui:*:*:*:*:*:*:*:* anchors the affected Go package.
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
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Remote unauthenticated POST to a public endpoint with no user interaction (AV:N/AC:L/PR:N/UI:N); claiming admin ID 1 yields full confidentiality, integrity, and availability control of the Nginx management app (C:H/I:H/A:H).
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
4DescriptionNVD
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
CVE-2026-42221 is a critical authentication bypass in Nginx UI versions before 2.3.8 that allows an unauthenticated attacker to seize administrative control of a freshly deployed instance during its brief first-run setup window. The exposure is narrow: only instances that have not yet been initialized and are reachable within roughly 10 minutes of first start are vulnerable, and no confirmed active exploitation has been observed. Leadership should care because a successful takeover grants full control of the Nginx management plane, which could lead to service disruption or data compromise, but the risk is largely confined to current and near-term deployment rollouts rather than the existing production fleet.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Nginx UI is a web user interface for the Nginx web server. Rated high severity (CVSS 8.9), this vulnerability is remotel
Unauthenticated backup download and RCE in Nginx UI before 2.3.3. EPSS 1.0%. PoC available.
Nginx UI is a web user interface for the Nginx web server. Rated high severity (CVSS 7.7), this vulnerability is remotel
nginx-ui versions prior to 2.3.8 expose 40+ protected configuration fields through the GetSettings API to authenticated
nginx-ui prior to version 2.3.8 exposes sensitive configuration values including node.secret via an authenticated GET /a
Server-side request forgery in Nginx UI through 2.3.4 lets any authenticated user redirect API requests to an attacker-c
Unauthenticated bootstrap takeover in Nginx UI 2.3.5: any remote client that can reach a still-uninitialized instance du
Nginx-UI is a web interface to manage Nginx configurations. Rated critical severity (CVSS 9.8), this vulnerability is re
Authenticated administrators of Nginx UI releases 2.3.8 through 2.4.x can achieve remote code execution on the host by a
Remote code execution as root in nginx-ui versions before 2.3.8 via unauthenticated backup restore within 10-minute star
Configuration-validation bypass in Nginx UI (versions 2.0.0-rc.6 through 2.4.0) lets an authenticated low-privilege user
Nginx UI installations before 2.4.1 expose two account-security endpoints, POST /api/otp_enroll and POST /api/finish_pas
Same technique Authentication Bypass
View allVendor 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 |
| openSUSE Leap 15.6 | Affected |
EUVD-2026-27135
GHSA-h27v-ph7w-m9fp
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB