/

CVE-2026-101067

Severity:

HIGH RISK

(7.3)

Path Traversal (CWE-22) in dbgate File Upload Endpoint

CVE-2026-101067

Deferred

Vulnerability type

Category:

Path Traversal

CWE:

CWE-22

Impact:

Arbitrary File Write

Severity:

HIGH RISK

(7.3)

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 high-severity path traversal vulnerability in dbgate affects the save-uploaded-file endpoint and its handling of uploaded file paths and names. A remote attacker may be able to manipulate these values to store an uploaded file outside the intended directory, subject to the server process's permissions and deployment controls.

Affected context

The vulnerability occurs in dbgate deployments that expose the save-uploaded-file functionality and use attacker-influenced filePath or fileName values when saving uploads. Risk depends on whether the endpoint is remotely reachable, whether authentication or authorization is enforced, and which directories are writable by the application process.

Exploit preconditions

  • Attack surface: The remotely reachable save-uploaded-file endpoint
  • Required access: Network access to the endpoint; authentication requirements depend on deployment configuration
  • Trigger point: Processing and saving an uploaded file using supplied path or filename values
  • Why exploitation is possible: The destination path may be influenced without sufficiently restricting traversal sequences or resolving the path against an approved directory

Why this happens

The underlying issue is insufficient validation and containment of user-controlled filesystem paths. When file path components or filenames are used directly in file operations, traversal elements can cause the resolved destination to escape the intended upload directory. This behavior maps to CWE-22: Improper Limitation of a Pathname to a Restricted Directory, commonly known as path traversal.

Potential impact

  • An attacker may write or overwrite files in directories writable by the application
  • Application configuration or uploaded content could be modified
  • The service may experience denial of service if sensitive or operational files are affected
  • File placement could contribute to further compromise where written content is later interpreted or executed

General mitigation guidance

Mitigation generally focuses on making upload destinations independent of untrusted path input and enforcing filesystem containment.

Common defensive patterns include:

  • Generate server-side filenames and ignore client-controlled directory components
  • Canonicalize candidate paths and verify that they remain beneath a dedicated upload directory
  • Reject traversal syntax, absolute paths, null bytes, and unexpected path separators
  • Apply strict allowlists for permitted filename characters and extensions
  • Store uploads outside executable, configuration, and application directories
  • Enforce least-privilege filesystem permissions for the service account
  • Require authentication and authorization appropriate to the upload operation

How teams detect issues like this

Organizations commonly detect path traversal risks through:

  • Static analysis for filesystem APIs receiving request parameters or upload metadata
  • Code review checks for direct concatenation of user input into paths
  • Tests using encoded, absolute, separator-variant, and traversal-style path inputs
  • Runtime monitoring for writes outside approved upload directories
  • Web application firewall or gateway policies that block suspicious path patterns while preserving server-side validation
  • Automated security review tools that flag untrusted data reaching file-system operations

Sources

SourceLink
github.comgithub.com/0xGenesi/CVE/blob/main/dbgate_save_uploaded_file_path_traversal.md
vuldb.comvuldb.com/cve/CVE-2026-101067
vuldb.comvuldb.com/submit/929029
vuldb.comvuldb.com/vuln/410925
vuldb.comvuldb.com/vuln/410925/cti

Frequently asked

questions

It may be remotely exploitable when the save-uploaded-file endpoint is network-accessible and an attacker can submit upload requests. Authentication, authorization, and other deployment controls can limit exposure.

The attacker needs access to the affected endpoint and sufficient permission to invoke the upload operation. The eventual impact is also constrained by the filesystem permissions of the dbgate process.

Use server-controlled upload directories and filenames, canonicalize paths, and verify that every resolved destination remains within an approved non-executable directory.

Treat all path and filename values as untrusted, use allowlists and containment checks, apply least-privilege permissions, and test upload handlers with traversal and encoding variants.

Find out what's already
exploitable in your codebase.