OS Command Injection in nginx-ui - #VU142596
Published: August 14, 2026
Vulnerability details
The vulnerability allows a remote user to execute arbitrary code.
The vulnerability exists due to improper neutralization of special elements used in an OS command in the /api/restore restore flow and nginx reload command handling when restoring a crafted backup and triggering a reload. A remote privileged user can overwrite the app.ini configuration with an attacker-controlled ReloadCmd and trigger /api/nginx/reload to execute arbitrary code.
The issue is reachable because the secure-session check early-returns for users without TOTP enrolled, and exploitation can persist across container restart.