9.8

CVE-2026-42238: Unauthenticated Remote Code Execution via Backup Restore in nginx-ui

Analyzed
AliasesGHSA-4pvg-prr3-9cxrGO-2026-5129
Published 04-05-2026Last modified 05-05-2026

Vulnerability summary

CVE-2026-42238 is a critical (CVSS 9.8) Improper Control of Generation of Code vulnerability in 0xjacky nginx-ui. EPSS estimates a 0.97% chance of exploitation in the next 30 days, higher than 61.9% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Prioritisepublic exploit

Public exploit (GitHub, Date unknown)

Source freshness unavailable

How is this decided?
CVSS score
9.8/10
010
Critical · v3.1 (NVD)
EPSS score
0.97%
0%100%
Low · +0.14 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 1 · Related 1

Timeline

  1. 04-05-2026
    PublishedVulnerability first disclosed.
  2. 05-05-2026
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

5 scores · 3 sources · 2 versions

EPSS trend

Probability

0.97%

Chance of exploitation in the next 30 days

Percentile

62%

Versus all other CVEs

30-day change

Increase +0.14 pp

From 0.83% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Nginx Ui

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

0xjacky1 product
Github.com/0xJacky1 product
  • Nginx-UI< 2.3.8 | All versions (No fix recorded)
Nginxui1 product

3 vendors · 3 products

References

4 links