8.1high
Nginx UI: Backup restore follows crafted symlinks into the live Nginx configuration path before restore flags are applied
- Severity
- 8.1high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.41% (higher than 37% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-p8v3-89rh-jxc7GO-2026-6707
Description
Nginx UI is a web user interface for the Nginx web server. From 2.0.0 until 2.5.0, internal/backup/restore.go extracts inner archives before applying the restore_nginx and restore_nginx_ui flags and permits symlinks targeting the live Nginx configuration path. An authenticated user who can create and restore backups can craft a valid backup that places a symlink in the staging tree and then writes a regular file through that link, even when both restore flags are false. This can persistently inject configuration or cause denial of service when the modified files are later consumed. This issue is fixed in version 2.5.0.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 0xJacky nginx-ui | >= 2.0.0, < 2.5.0 | CVE List |
| github.com/0xJacky/Nginx-UI (Go) | from 1.9.10-0.20250517140552-daee3ac7ade1 before 1.9.10-0.20260728074146-a467ed652591 | GitHub Advisory Database, Go Vulnerability Database |
| nginxui nginx_ui | from 2.0.0 before 2.5.0 | NVD |
All scores
| GitHub_M | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H |
| GitHub | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H |
Classification
What each source says
CVE List
Nginx UI is a web user interface for the Nginx web server. From 2.0.0 until 2.5.0, internal/backup/restore.go extracts inner archives before applying the restore_nginx and restore_nginx_ui flags and permits symlinks targeting the live Nginx configuration path. An authenticated user who can create and restore backups can craft a valid backup that places a symlink in the staging tree and then writes a regular file through that link, even when both restore flags are false. This can persistently inject configuration or cause denial of service when the modified files are later consumed. This issue is fixed in version 2.5.0.
GitHub Advisory Database
Summary
An authenticated user who can create and restore a backup can craft a valid backup archive that causes the restore staging process to write attacker-controlled files into the live Nginx configuration path even when both restore_nginx and restore_nginx_ui are set to false.
Details
The restore flow always extracts the outer archive, verifies the manifest, decrypts nginx-ui.zip and nginx.zip, and extracts both inner archives before it decides whether RestoreNginx or RestoreNginxUI should be applied. The zip extractor explicitly allows absolute symlinks when the link target is under nginx.GetConfPath() or nginx.GetModulesPath(). Later regular-file entries are then created with os.OpenFile() on the symlinked path, which follows the symlink and writes into the live path.
Relevant code paths:
- internal/backup/restore.go
- internal/backup/restore.go
- internal/backup/restore.go
- internal/backup/restore.go
- api/backup/restore.go
- api/backup/backup.go
This means the restore trust boundary is broken during extraction. A restore request that explicitly opted out of restoring either Nginx or Nginx UI can still modify the live Nginx configuration tree during staging.
PoC
I verified this locally in an isolated environment with a temporary package-level harness that exercised the real Backup() and Restore() implementations.
What the executed test did:
- Created a temporary
app.ini, database file, and a temporary live Nginx config directory. - Called the real
Backup()implementation to obtain a valid backup archive plus AES key/IV. - Extracted the outer backup, decrypted
nginx.zip, replaced it with a crafted zip containing:- a symlink entry
link -> <live nginx conf dir> - a later regular file entry
link/poc.conf
- a symlink entry
- Recomputed
manifest.jsonsize/hash values for the modified encryptednginx.zipand re-signedmanifest.sigwith the expected signing key derived from the AES key. - Repacked the outer archive and called the real
Restore()implementation with:RestoreNginx: falseRestoreNginxUI: false
- Verified that
<live nginx conf dir>/poc.confwas created anyway.
Observed result from the actual local verification:
- The crafted restore completed successfully with both restore flags set to
false. - The asserted sink was the existence and content of the live-path file written during restore staging.
Impact
Any deployment that allows an authenticated user to create and restore backups is affected. A crafted restore archive can modify the live Nginx configuration path before either restore toggle is honored. This can lead to persistent configuration injection, denial of service on a later reload, or other follow-on impact depending on what files the deployment later consumes from the modified path.
Go Vulnerability Database
Nginx UI: Backup restore follows crafted symlinks into the live Nginx configuration path before restore flags are applied in github.com/0xJacky/Nginx-UI
References
| https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-p8v3-89rh-jxc7 | advisory, exploit, vendor-advisory, web | |
| https://github.com/0xJacky/nginx-ui/commit/a467ed652591fc0cd1b466a1ec751b493faef9f7 | patch, web | |
| https://github.com/0xJacky/nginx-ui/releases/tag/v2.5.0 | release-notes, web | |
| https://github.com/0xJacky/nginx-ui | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-107810 changed 2026-10-13 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-p8v3-89rh-jxc7 changed 2026-10-19 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-6707 changed 2026-10-19 | CC-BY-4.0 |
| NVD | CVE-2026-107810 changed 2026-10-20 | Public domain |