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 56% 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-10-18, recomputed daily by FIRST.org.

In-depth analysis on cveo.tech

We've published a detailed analysis of this CVE — exploitation, IOCs and mitigation.

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
17 juin 2026
Status
Analyzed
Source
security-advisories@github.com

Affected products

nginxui nginx ui
Versions : 2.3.8

Weaknesses (CWE)

CWE-94

Similar CVEs

Other vulnerabilities of type CWE-94

…

Monitor your products

Get automatic alerts for every new CVE affecting your equipment.

Enable monitoring