CVE-2026-42238

CRITICAL LAB

Unauthenticated Remote Code Execution via Backup Restore in nginx-ui

Title source: cna
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2026-42238. PoCs published by fuchiuebusi-lab.

AI-analyzed exploit summary This repository provides a detailed technical analysis and learning plan for CVE-2026-42221 (authentication bypass) and CVE-2026-42238 (unauthenticated RCE) in nginx-ui v2.3.7. It includes Docker setup files for a vulnerable environment and explains the attack chain, focusing on the `TestConfigCmd` setting as the core of the RCE vulnerability.

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.

Exploits (1)

github WRITEUP
by fuchiuebusi-lab · dockerfilepoc
https://github.com/fuchiuebusi-lab/nginx-ui-CVE-2026-42221-CVE-2026-42238-

This repository provides a detailed technical analysis and learning plan for CVE-2026-42221 (authentication bypass) and CVE-2026-42238 (unauthenticated RCE) in nginx-ui v2.3.7. It includes Docker setup files for a vulnerable environment and explains the attack chain, focusing on the `TestConfigCmd` setting as the core of the RCE vulnerability.

Classification
Writeup 95%
Attack Type
Auth Bypass, Rce
Complexity
Moderate
Reliability
Theoretical
Target: nginx-ui v2.3.7
No auth needed
Prerequisites: Docker environment · nginx-ui v2.3.7 deployment
mistral-large-3 · analyzed Jun 23, 2026 Full analysis →

References (2)

Core 2
Core References

Scores

CVSS v3 9.8
EPSS 0.0076
EPSS Percentile 51.8%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation poc
Automatable no
Technical Impact total

Lab Environment

COMMUNITY
Community Lab
docker pull uozi/nginx-ui:v2.3.7

Details

CWE
CWE-94
Status published
Products (3)
0xJacky/nginx-ui 0 - 2.3.8Go
0xJacky/nginx-ui < 2.3.8
nginxui/nginx_ui < 2.3.8
Published May 04, 2026
Tracked Since May 05, 2026