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

0xJacky nginx-ui

Unauthenticated Remote Code Execution via Backup Restore in nginx-ui

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.

First public PoC 49 daysafter publication · 23 Jun 2026
Public PoCs11 on GitHub
CVSS9.8critical · scored by NVD · CWE-94
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

0xJacky nginx-ui
  • < 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.

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-42238 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-42238; classtype:web-application-attack; sid:9509121; rev:1;)
GET /api/install
alert http any any -> $HOME_NET [8080,8081] (msg:"GG PoC-Monitor CVE-2026-42238 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-42238; classtype:web-application-attack; sid:9195409; rev:1;)
POST /api/crypto/public_key
alert http any any -> $HOME_NET [8080,8081] (msg:"GG PoC-Monitor CVE-2026-42238 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-42238; classtype:web-application-attack; sid:9308411; rev:1;)
POST /api/install
alert http any any -> $HOME_NET [8080,8081] (msg:"GG PoC-Monitor CVE-2026-42238 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-42238; classtype:web-application-attack; sid:9499291; rev:1;)
POST /api/restore
alert http any any -> $HOME_NET [8080,8081] (msg:"GG PoC-Monitor CVE-2026-42238 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-42238; classtype:web-application-attack; sid:9364490; rev:1;)

Sigma

Template generated from PoC characteristics. Review before deploying.

GET /api/crypto/public_key
title: 0xJacky nginx-ui exploit attempt (CVE-2026-42238)
id: gg-pocmon-cve-2026-42238-9509121
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-42238. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2026-42238
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.42238
GET /api/install
title: 0xJacky nginx-ui exploit attempt (CVE-2026-42238)
id: gg-pocmon-cve-2026-42238-9195409
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-42238. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2026-42238
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.42238
POST /api/crypto/public_key
title: 0xJacky nginx-ui exploit attempt (CVE-2026-42238)
id: gg-pocmon-cve-2026-42238-9308411
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-42238. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2026-42238
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.42238
POST /api/install
title: 0xJacky nginx-ui exploit attempt (CVE-2026-42238)
id: gg-pocmon-cve-2026-42238-9499291
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-42238. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2026-42238
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.42238
POST /api/restore
title: 0xJacky nginx-ui exploit attempt (CVE-2026-42238)
id: gg-pocmon-cve-2026-42238-9364490
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-42238. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2026-42238
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.42238