mediumCVSS 6.3Vulnerability

CVE-2026-84320

## Summary Nginx UI validates `backup_path` and `storage_path` against the administrator-defined `backup.GrantedAccessPath` boundary, but the final auto-backup output filename is built from the user-controlled auto-backup `name` without stripping path separators or `..` components. An authenticated user who can create or modify an auto-backup task can set a name such as `task/../../../escaped`. The configured `storage_path` still passes validation because it is inside `GrantedAccessPath`, but the generated backup path escapes that storage directory when `filepath.Join(storage_path, filename)` resolves the embedded traversal sequence. This bypasses the documented backup path boundary and allows backup archives, and for encrypted configuration backups the adjacent `.key` file, to be written outside the intended storage directory with the Nginx UI process privileges. ## Affected Versions - Current `dev` branch commit checked: `4948fba8744e82c3d7003f68ee164e9f49421066` - Latest release checked: `v2.3.10`, published 2026-04-28 - The vulnerable filename construction is present in both current `dev` and `v2.3.10`. ## Security Boundary The project documentation describes `backup.GrantedAccessPath` as the critical security boundary for backup operations. It says the setting: - restricts backup operations to explicitly authorized directories, - prevents unauthorized access to sensitive system directories, - enforces administrator-defined boundaries, - normalizes paths to prevent traversal attempts. That boundary is enforced for the configured `storage_path`, but not for the final path after the backup name is appended. ## Root Cause `model.AutoBackup.GetName()` only trims whitespace and replaces spaces: ```go func (a *AutoBackup) GetName() string { return strings.ReplaceAll(strings.TrimSpace(a.Name), " ", "_") } ``` The result is then embedded directly into filenames: ```go filename := fmt.Sprintf("%s_%d.zip", autoBackup.GetName(), time.Now().Unix()) outputP

Properties

severity
medium
summary
Nginx UI: Auto backup name allows path traversal outside validated storage path
cvss_score
6.3
retrieved_at
2026-10-15T22:56:51+00:00
ghsa_published
2026-10-15T20:10:56Z
source_url
https://github.com/advisories/GHSA-jrq7-xrjx-pcfw
ghsa_updated
2026-10-15T20:10:57Z
ghsa_id
GHSA-jrq7-xrjx-pcfw
last_source
GitHub Advisory Database
cve_id
CVE-2026-84320
cvss_vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
signal_observed_at
2026-10-15T22:56:51+00:00
is_ghsa_only
false

Related Entities (4)

HAS_WEAKNESS (1)

→[Weakness]Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

REPORTED_BY (1)

→[Source]GitHub Advisory Database

VULNERABLE_TO (1)

←[Software]go/github.com/0xJacky/Nginx-UI

AFFECTS (1)

→[Software]go/github.com/0xJacky/Nginx-UI

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-84320 (CVSS 6.3) — Ninja Signal Threat Intelligence | Ninja Signal