All vulnerabilities
CVE-2026-107810GHSA-p8v3-89rh-jxc7GO-2026-6707

github.com/0xJacky/Nginx-UI: Nginx UI: Backup restore follows crafted symlinks into the live Nginx configuration path before restore flags are applied

0xJacky github.com/0xJacky/Nginx-UIgoWeb servers
CVSS
8.1High
ExploitationPublic exploit codeCISA's assessment says proof of concept code is public, assessed 13 Oct 2026. Not in the KEV catalogCISA via CVE List
Exploit odds (EPSS)0.39%Chance of exploitation activity in the next 30 days, higher than 32% of CVEs. Scored 23 Oct 2026FIRST EPSS
Fixed in1.9.10-0.20260728074146-a467ed652591Fixed versionGitHub
Published9 Oct 2026Updated 19 Oct 2026CVE List

What fixes it

  • 1.9.10-0.20260728074146-a467ed652591github.com/0xJacky/Nginx-UI, goGitHubgo get github.com/0xJacky/Nginx-UI@v1.9.10-0.20260728074146-a467ed652591
  • 1.9.10-0.20260728074146-a467ed652591github.com/0xJacky/Nginx-UI, GoOSVgo get github.com/0xJacky/Nginx-UI@v1.9.10-0.20260728074146-a467ed652591

A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.

Description

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](/home/kali/Desktop/bounty/nginx-ui/internal/backup/restore.go:39)
  • [internal/backup/restore.go](/home/kali/Desktop/bounty/nginx-ui/internal/backup/restore.go:79)
  • [internal/backup/restore.go](/home/kali/Desktop/bounty/nginx-ui/internal/backup/restore.go:204)
  • [internal/backup/restore.go](/home/kali/Desktop/bounty/nginx-ui/internal/backup/restore.go:286)
  • [api/backup/restore.go](/home/kali/Desktop/bounty/nginx-ui/api/backup/restore.go:31)
  • [api/backup/backup.go](/home/kali/Desktop/bounty/nginx-ui/api/backup/backup.go:15)

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:

  1. Created a temporary app.ini, database file, and a temporary live Nginx config directory.
  2. Called the real Backup() implementation to obtain a valid backup archive plus AES key/IV.
  3. Extracted the outer backup, decrypted nginx.zip, replaced it with a crafted zip containing:
  4. a symlink entry link -> <live nginx conf dir>
  5. a later regular file entry link/poc.conf
  6. Recomputed manifest.json size/hash values for the modified encrypted nginx.zip and re-signed manifest.sig with the expected signing key derived from the AES key.
  7. Repacked the outer archive and called the real Restore() implementation with:
  8. RestoreNginx: false
  9. RestoreNginxUI: false
  10. Verified that <live nginx conf dir>/poc.conf was 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.

Text from GitHub Advisory Database

Affected versions 3

  • github.com/0xJacky/Nginx-UI, go>= 1.9.10-0.20250517140552-daee3ac7ade1, < 1.9.10-0.20260728074146-a467ed652591GitHub
  • nginx-uiaffected: >= 2.0.0, < 2.5.0CVE List
  • github.com/0xJacky/Nginx-UI, Gofrom 1.9.10-0.20250517140552-daee3ac7ade1, fixed in 1.9.10-0.20260728074146-a467ed652591OSV

References 4