PoC Monitor
← All CVEs
CVE-2026-42221published 4 May 2026 20:09 UTCData: JSON · API

0xJacky nginx-ui

nginx-ui: Unauthenticated First-Run Installer Allows Remote Initial Admin Claim

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.

First public PoC 49 daysafter publication · 23 Jun 2026
Public PoCs21 on GitHub · 1 Exploit-DB, Metasploit or nuclei
CVSS9.8critical · scored by NVD · CWE-306
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

0xJacky nginx-ui
  • >= 2.0.0, < 2.3.8

Fixed in 2.3.8

Mitigation

Upgrade nginx-ui to 2.3.8 or later.

References

Timeline

Days relative to CVE publication
t=0+7+14+21+28+35+42+49CVE published4 May 2026 · t = 0First public PoC23 Jun 2026 · t+49d

First public PoC 49 days after publication; not in CISA KEV. First PoC: fuchiuebusi-lab/nginx-ui-CVE-2026-42221-CVE-2026-42238- (created 23 Jun 2026, found by us: backfilled).

PoC repositories

Found on GitHub.

1 PoCs

PoCs 1
RepositoryCreatedStarsAssessment
fuchiuebusi-lab/nginx-ui-CVE-2026-42221-CVE-2026-42238- 23 Jun 2026 +49 d 0 PoC
Flags · score 15
  • owner account created less than 30 days before the repo

Below the suspicion threshold (50); does not change the assessment.

Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.

Other public exploits

Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.
SourceTitlePublishedFound by us
nuclei templatenuclei template: Nginx UI <= 2.3.7 - Unauthenticated Installer Exposure1 Sep 202614 Nov 2026

PoC characteristics

What to hunt for in your logs · from 1 PoC repo

POST /api/crypto/public_key

Content-Type
application/json
Ports
8080, 8081
Seen in
1 repo: fuchiuebusi-lab/nginx-ui-CVE-2026-42221-CVE-2026-42238-
Evidence
fuchiuebusi-lab/nginx-ui-CVE-2026-42221-CVE-2026-42238-/scripts/test_patched.py:14

Regex

Generated from PoC characteristics; not yet reviewed. Matches the request path and query.

GET /api/crypto/public_key
(?i)^/api/crypto/public_key(?:[?#].*)?$
GET /api/install
(?i)^/api/install(?:[?#].*)?$
POST /api/crypto/public_key
(?i)^/api/crypto/public_key(?:[?#].*)?$
POST /api/install
(?i)^/api/install(?:[?#].*)?$
POST /api/restore
(?i)^/api/restore(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

GET /api/crypto/public_key
alert http any any -> $HOME_NET [8080,8081] (msg:"GG PoC-Monitor CVE-2026-42221 0xJacky nginx-ui exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/crypto/public_key"; reference:url,poc.griffinguard.io/cve/CVE-2026-42221; classtype:web-application-attack; sid:9017855; rev:1;)
GET /api/install
alert http any any -> $HOME_NET [8080,8081] (msg:"GG PoC-Monitor CVE-2026-42221 0xJacky nginx-ui exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/install"; reference:url,poc.griffinguard.io/cve/CVE-2026-42221; classtype:web-application-attack; sid:9253175; rev:1;)
POST /api/crypto/public_key
alert http any any -> $HOME_NET [8080,8081] (msg:"GG PoC-Monitor CVE-2026-42221 0xJacky nginx-ui exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/crypto/public_key"; reference:url,poc.griffinguard.io/cve/CVE-2026-42221; classtype:web-application-attack; sid:9892505; rev:1;)
POST /api/install
alert http any any -> $HOME_NET [8080,8081] (msg:"GG PoC-Monitor CVE-2026-42221 0xJacky nginx-ui exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/install"; reference:url,poc.griffinguard.io/cve/CVE-2026-42221; classtype:web-application-attack; sid:9533577; rev:1;)
POST /api/restore
alert http any any -> $HOME_NET [8080,8081] (msg:"GG PoC-Monitor CVE-2026-42221 0xJacky nginx-ui exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/restore"; reference:url,poc.griffinguard.io/cve/CVE-2026-42221; classtype:web-application-attack; sid:9072912; rev:1;)

Sigma

Template generated from PoC characteristics. Review before deploying.

GET /api/crypto/public_key
title: 0xJacky nginx-ui exploit attempt (CVE-2026-42221)
id: gg-pocmon-cve-2026-42221-9017855
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-42221. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2026-42221
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/api/crypto/public_key'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2026.42221
GET /api/install
title: 0xJacky nginx-ui exploit attempt (CVE-2026-42221)
id: gg-pocmon-cve-2026-42221-9253175
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-42221. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2026-42221
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/api/install'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2026.42221
POST /api/crypto/public_key
title: 0xJacky nginx-ui exploit attempt (CVE-2026-42221)
id: gg-pocmon-cve-2026-42221-9892505
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-42221. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2026-42221
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/api/crypto/public_key'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2026.42221
POST /api/install
title: 0xJacky nginx-ui exploit attempt (CVE-2026-42221)
id: gg-pocmon-cve-2026-42221-9533577
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-42221. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2026-42221
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/api/install'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2026.42221
POST /api/restore
title: 0xJacky nginx-ui exploit attempt (CVE-2026-42221)
id: gg-pocmon-cve-2026-42221-9072912
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-42221. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2026-42221
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/api/restore'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2026.42221