/

CVE-2026-92919

Severity:

HIGH RISK

(8.1)

Path Traversal (CWE-22) in admin3 File Upload Handler

CVE-2026-92919

Deferred

Vulnerability type

Category:

Path Traversal

CWE:

CWE-22

Impact:

Arbitrary File Overwrite

Severity:

HIGH RISK

(8.1)

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

A path traversal vulnerability in admin3 allows authenticated users to submit filenames containing directory traversal components during uploads. On affected Windows deployments, this may let attackers escape the configured storage directory and overwrite files accessible to the server process.

Affected context

The issue occurs in admin3 deployments that accept client-supplied filenames through the upload handler and use those values to construct filesystem paths. Risk is higher on Windows systems when the resulting path is not constrained to the configured storage root and the server process can write to files outside that directory.

Exploit preconditions

  • Attack surface: File upload functionality
  • Required access: Authenticated user access to an upload-capable interface
  • Trigger point: Server-side construction of a destination path from a submitted filename
  • Why exploitation is possible: Dot-dot path components are accepted without effective canonicalization and containment checks, allowing the destination path to resolve outside the intended storage directory

Why this happens

The vulnerability results from treating a client-controlled filename as a trusted filesystem path. When path separators or parent-directory components are not normalized, rejected, and verified against the intended storage root, an attacker can influence the final destination resolved by the operating system. This behavior maps to CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').

Potential impact

  • Attackers may overwrite files writable by the server process
  • Application configuration or operational files could be modified
  • Application availability could be reduced through corruption of required files
  • Security controls or content served by the application could be altered
  • In some deployments, file overwrites could contribute to further compromise

General mitigation guidance

Mitigation generally focuses on removing trust from client-supplied filenames and enforcing filesystem containment.

Common defensive patterns include:

  • Generate server-side filenames rather than reusing upload names
  • Permit only a constrained filename character set and reject path separators and parent-directory components
  • Canonicalize the candidate path and verify that it remains beneath the intended storage root
  • Use platform-aware path handling rather than string concatenation
  • Store uploads outside executable, configuration, and application-code directories
  • Apply least-privilege permissions to the server process and upload location
  • Use isolated storage or non-overwritable object keys where practical

How teams detect issues like this

Organizations can identify path traversal risks through:

  • Static analysis rules for filesystem APIs receiving request parameters or upload metadata
  • Code review checks for path construction using string concatenation or unvalidated filenames
  • Tests covering parent-directory components, alternate separators, canonicalization, and Windows path behavior
  • Runtime logging and policy enforcement for uploads whose resolved paths fall outside approved storage roots
  • Automated security review tools that flag user-controlled data reaching file-write operations

Sources

SourceLink
github.comgithub.com/LinYuanyi1/cve-request-poc/blob/master/admin3/C03_storage_path_traversal_write.py
github.comgithub.com/cjbi/admin3
github.comgithub.com/cjbi/admin3/blob/3.0.0/admin3-server/src/main/java/tech/wetech/admin3/infra/storage/LocalStorage.java
github.comgithub.com/cjbi/admin3/blob/3.0.0/admin3-server/src/main/java/tech/wetech/admin3/infra/storage/StorageServiceImpl.java
vulncheck.comvulncheck.com/advisories/admin3-through-3.0.0-arbitrary-file-write-via-path-traversal-in-storage-upload-filename

Frequently asked

questions

It may be exploitable through the application's upload interface when that interface is reachable and the attacker has the required authenticated access.

An attacker generally needs a valid account with permission to submit files through the vulnerable upload handler. The practical impact also depends on which files the server process can write.

Do not use client-supplied filenames directly as filesystem paths. Generate controlled names, reject traversal syntax, canonicalize the destination, and verify that it remains within a dedicated storage directory.

Combine secure path-handling utilities, least-privilege filesystem permissions, isolated upload storage, adversarial path tests, and code review policies that identify user input reaching file-write operations.

Find out what's already
exploitable in your codebase.