/

CVE-2026-129464

Severity:

HIGH RISK

(8.8)

Path Traversal (CWE-22) in Zr.Admin.NET Download Endpoint

CVE-2026-129464

Deferred

Vulnerability type

Category:

Path Traversal

CWE:

CWE-22

Impact:

Arbitrary File Read and Potential Privilege Escalation

Severity:

HIGH RISK

(8.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Zr.Admin.NET contains a path traversal vulnerability in /common/DownloadFile that can let a logged-in user read files outside the intended download location. If sensitive configuration files are accessible, their contents may expose the JWT signing secret, which could be used to forge administrator tokens.

Affected context

The issue affects the /common/DownloadFile endpoint in the specified Zr.Admin.NET commit range. It becomes risky when the endpoint accepts a user-controlled path without reliably restricting file access to an intended directory; readable application settings may contain sensitive authentication material.

Exploit preconditions

  • Attack surface: The /common/DownloadFile endpoint
  • Required access: A logged-in account
  • Trigger point: A request that supplies a path to the download endpoint
  • Why exploitation is possible: Path traversal or absolute paths may allow access beyond the intended download location if paths are not safely constrained

Why this happens

The underlying issue is insufficient validation and containment of a user-controlled file path. When an application uses that path to locate a file without ensuring the resolved location remains within an authorized directory, traversal can expose unintended files. This maps to CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').

Potential impact

  • An authenticated user may read files outside the intended download area.
  • Sensitive configuration values, including a JWT signing secret, could be exposed if the relevant file is readable.
  • An attacker could potentially forge administrator tokens if the exposed secret is accepted for token validation.
  • Disclosure of other server files could reveal additional sensitive information.

General mitigation guidance

Defensive patterns focus on limiting file access to an explicit, authorized area:

  • Resolve requested paths and verify that the resulting location remains within an approved directory.
  • Prefer server-side file identifiers or allowlisted filenames over accepting arbitrary paths.
  • Reject absolute paths and traversal attempts as an additional validation layer.
  • Keep secrets out of files reachable through download functionality, and protect secret storage and access.
  • Apply least-privilege permissions so the application can read only files required for its function.

How teams detect issues like this

Review file-serving code for user-controlled paths passed to filesystem operations without canonicalization and directory-boundary checks. Static analysis can flag path joins and file reads that use request parameters; code review can verify authorization, path containment, and file allowlisting. Runtime monitoring and policy checks may also identify suspicious download requests or access to sensitive configuration files.

Sources

SourceLink
github.comgithub.com/izhaorui/Zr.Admin.NET/blob/eb9228a23014f6000c06cab2f10ae0d44ecbbd3a/Infrastructure/Controllers/BaseController.cs#L110-L119
github.comgithub.com/izhaorui/Zr.Admin.NET/blob/eb9228a23014f6000c06cab2f10ae0d44ecbbd3a/ZR.Admin.WebApi/Controllers/CommonController.cs#L220-L241
github.comgithub.com/izhaorui/Zr.Admin.NET/commit/0ee1ab8af5e3861766746d25acba1184111befcb
github.comgithub.com/izhaorui/Zr.Admin.NET/issues/27
vul.yulun.ac.cnvul.yulun.ac.cn/20261114/zr-admin-net/
vulncheck.comvulncheck.com/advisories/zr-admin-net-commit-0ee1ab8-through-eb9228a-path-traversal-via-downloadfile

Frequently asked

questions

The described attack requires a logged-in user who can reach the download endpoint.

An account that can make requests to /common/DownloadFile is the stated prerequisite; the description does not specify a particular privilege level.

Restrict downloads to explicitly authorized files and verify that each resolved path stays within an approved directory.

Avoid accepting arbitrary filesystem paths from users, apply least-privilege file permissions, and review file-serving code for path containment and access-control checks.

Find out what's already
exploitable in your codebase.