PT-2026-35731 · Nginx-Ui · Nginx-Ui
Captain99Hook
·
Published
2026-04-21
·
Updated
2026-05-13
·
CVE-2026-42238
CVSS v2.0
10
Critical
| Vector | AV:N/AC:L/Au:N/C:C/I:C/A:C |
Name of the Vulnerable Software and Affected Versions
nginx-ui versions prior to 2.3.8
Description
An authentication bypass exists in the backup restore functionality. During the first 10 minutes after a fresh installation or any process restart, the 'POST /api/restore' endpoint is completely unauthenticated. A remote attacker can exploit this window to upload a crafted backup archive that overwrites the application's configuration file
app.ini and the SQLite database. By controlling the app.ini file, the attacker can inject arbitrary OS commands into the TestConfigCmd variable. Once the application restarts to apply the configuration, a subsequent request triggers the execution of the injected command with the privileges of the user running nginx-ui, which is typically root in Docker deployments.Recommendations
Update to version 2.3.8 or later.
As a temporary workaround, restrict network access to the nginx-ui port (default 9000/tcp) to trusted IP addresses only to prevent unauthorized access to the restore endpoint.
Exploit
Fix
RCE
Code Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Nginx-Ui