Servers and applications
GHSA-746f-pjq6-cc8p
Post-Authentication RCE via Backup Restore Overwriting Command Execution Settings
- Severity
- High
- Published
- 12 Aug 2026
- Last changed
- 12 Aug 2026
- Added to UpHeron
- 3 Nov 2026
- Fixed in
- 2.5.0
- Weakness
- OS command injection (CWE-78)
- Sources
- Project advisories (GitHub)
Description
The backup restore handler at internal/backup/restore.go copies attacker-controlled app.ini content to disk without validating or sanitizing individual settings fields. Five command execution sinks read their executables from app.ini settings: TestConfigCmd, ReloadCmd, RestartCmd, logrotate CMD, and terminal StartCmd. The logrotate CMD is auto-triggered on a configurable timer (default 24 hours), achieving persistent RCE without further user interaction.
At internal/backup/restore.go:468, the restore function copies the backup's app.ini directly to the application configuration path:
After restore, risefront.Restart() at api/backup/restore.go:136 reloads settings from the new app.ini.
The five command execution sinks that read from app.ini:
- internal/nginx/nginx.go:29 -- TestConfig() calls execShell(settings.NginxSettings.TestConfigCmd), which at internal/nginx/exec.go:18 runs exec.Command("/bin/sh", "-c", cmd). Triggered via POST /api/nginx/test.
Affected software
| Software | Affected versions |
|---|---|
Nginx UIServers and applications · github:0xjacky/nginx-ui |
|
About Nginx UI
Yet another WebUI for Nginx
- Docker Hub pulls
- 1,512,532Docker Hub, 15 Nov 2026
- GitHub stars
- 11,783GitHub, 15 Nov 2026
- Forks
- 921GitHub, 15 Nov 2026
- Latest release
- v3.0.3GitHub, 15 Nov 2026
- Released
- 12 Nov 2026GitHub
- License
- AGPL-3.0GitHub
- First published on GitHub
- 19 Feb 2021GitHub
Source code Website Docker image
Vulnerabilities in Nginx UI
- In our list
- 72
- Published in the last 12 months
- 64
- Critical, last 12 months
- 11
- High, last 12 months
- 33
- Known exploited
- 0
- GHSA-2rjr-44wx-8qpgJwtSecret Overwrite via Settings API Causes Session Invalidation and MonopolyLow 3.8 12 Nov 2026
- GHSA-p355-qjwh-8hgmOpenAI API Key Exfiltration via Unprotected BaseUrl Setting ChangeLow 2.7 12 Nov 2026
- GHSA-hf3h-p3fr-3f2rFull backup exports expose reusable interactive login sessions to management credentialsMedium 6.6 12 Nov 2026
- GHSA-mfj4-8rf3-rpq6Unauthenticated dependency inventory + version disclosure via `/api/licenses*`Medium 5.3 12 Nov 2026
- GHSA-cp4h-7pxc-xx3mSelf-check fix endpoint rewrites live nginx.conf without interactive secure-session step-upMedium 5.4 22 Oct 2026
- GHSA-9hfj-63q2-jhjwNginx log advanced-indexing toggle and destructive index rebuild lack interactive secure-session step-upMedium 5.4 22 Oct 2026
References
- GitHub Advisory Database https://github.com/advisories/GHSA-746f-pjq6-cc8p
- github.com https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-746f-pjq6-cc8p