Skip to content
Back to search

CVE-2026-42238

CRITICAL
9.8NVD

Summary

generated automatically from NVD data

Nginx UI, a web interface for Nginx, has an unauthenticated POST /api/restore backup endpoint that is open during the first 10 minutes after startup on fresh installations. A remote attacker can upload a crafted archive that overwrites app.ini and the SQLite database, then inject an OS command into TestConfigCmd that runs as the nginx-ui user (typically root in Docker) after the automatic restart. The flaw is rated CRITICAL with a CVSS 3.1 score of 9.8 and is patched in version 2.3.8.

NVD 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.

Share:

EPSS · FIRST.org

0.83%probability of exploitation in the next 30 days

Higher than 54% of scored CVEs

EPSS (Exploit Prediction Scoring System) estimates, from observed exploitation activity, how likely a CVE is to be exploited in the next 30 days. It complements CVSS, which measures severity, not likelihood. Score of 2026-11-25, recomputed daily by FIRST.org.

In-depth analysis on cveo.tech

This CVE is covered in an article: context, affected versions and published fixes.

CVSS v3.1 Score

9.8
/ 10.0
CRITICAL
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Information

Published
4 mai 2026
Updated
25 oct. 2026
Status
Analyzed
Source
security-advisories@github.com

Affected products

nginxui nginx ui
Versions < 2.3.8

Bounds published by NVD: "< 8.4.27" means 8.4.27 is no longer vulnerable. The fixed release to install is in the vendor advisory.

Weaknesses (CWE)

CWE-94

Similar CVEs

Other vulnerabilities of type CWE-94

…

Know which CVEs hit the versions you run.

Add the product and its version: cveo.tech lists the CVEs that affect it right away, then alerts you by email when a new one affects it — including before NVD has finished its analysis. Free, an account is all it takes.