/

CVE-2026-101066

Severity:

HIGH RISK

(7.3)

Path Traversal (CWE-22) in dbgate Archive Link Creation

CVE-2026-101066

Deferred

Vulnerability type

Category:

Path Traversal

CWE:

CWE-22

Impact:

Unauthorized File Access or File Manipulation

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 path traversal vulnerability in dbgate's Archive Link Creation functionality allows remotely supplied path data to influence the location targeted by the createLink function. An attacker who can reach the affected endpoint may use crafted linkedFolder input to access or manipulate files outside the intended directory, depending on deployment permissions.

Affected context

The vulnerability occurs in dbgate deployments using the Archive Link Creation component and the createLink function in packages/api/src/controllers/archive.js. It becomes risky when the remotely reachable functionality accepts a user-influenced linkedFolder value without reliably constraining the resolved path to an approved archive directory.

Exploit preconditions

  • Attack surface: The remotely accessible Archive Link Creation functionality
  • Required access: Network reachability to the affected dbgate interface; authentication requirements depend on deployment configuration
  • Trigger point: Processing the linkedFolder argument by the createLink function
  • Why exploitation is possible: User-controlled path components may be interpreted as filesystem navigation rather than being restricted to the intended directory

Why this happens

The underlying bug is insufficient validation and canonicalization of a filesystem path assembled from attacker-influenced input. When directory traversal elements are accepted without resolving the final path and verifying that it remains within an approved base directory, the application may operate on resources outside its intended scope. This behavior maps to CWE-22: Improper Limitation of a Pathname to a Restricted Directory, commonly called path traversal.

Potential impact

  • An attacker may access files outside the intended archive location
  • Sensitive configuration, application, or credential data could be exposed
  • Unauthorized files or links could be created or modified, depending on process permissions
  • The application or host environment could be compromised further through exposed secrets
  • Availability or data integrity could be affected

General mitigation guidance

Mitigation generally focuses on reducing filesystem trust in user-supplied paths and enforcing containment after path resolution.

Common defensive patterns include:

  • Resolving candidate paths against a fixed, approved base directory and rejecting paths that escape it
  • Allowing opaque identifiers or server-managed archive names instead of raw filesystem paths
  • Applying strict input validation and rejecting traversal markers, absolute paths, and unexpected separators
  • Using allowlisted directories and operation-specific permissions
  • Running the service with the least filesystem privileges required
  • Avoiding symbolic-link escapes through appropriate link handling and post-resolution containment checks
  • Returning generic errors that do not disclose sensitive filesystem details

How teams detect issues like this

Detection approaches may include:

  • Static analysis for filesystem APIs receiving request parameters or other untrusted values
  • Code review checks for path concatenation without canonicalization and base-directory containment validation
  • Testing with traversal-oriented path cases, absolute paths, encoded separators, and symbolic-link scenarios
  • Runtime monitoring for unusual archive-link requests and access outside approved directories
  • Policy enforcement requiring security-reviewed wrappers for filesystem path operations
  • Automated code review or SAST tools configured to flag CWE-22 patterns

Sources

SourceLink
github.comgithub.com/0xGenesi/CVE/blob/main/dbgate_archive_link_path_traversal.md
vuldb.comvuldb.com/cve/CVE-2026-101066
vuldb.comvuldb.com/submit/929026
vuldb.comvuldb.com/vuln/410924
vuldb.comvuldb.com/vuln/410924/cti

Frequently asked

questions

Yes, the reported attack surface is remotely reachable. Successful exploitation still depends on network exposure, authentication controls, and the permissions granted to the dbgate process.

The attacker needs access to the Archive Link Creation functionality and must be able to influence the linkedFolder argument. Whether authentication is required depends on the deployment's configuration.

Treat path values as untrusted, resolve them against an approved base directory, and reject any result outside that directory. Server-managed identifiers are safer than accepting arbitrary filesystem paths.

Use centralized safe-path utilities, enforce least-privilege filesystem access, review every user-controlled filesystem operation, and include traversal and symlink cases in automated security testing.

Find out what's already
exploitable in your codebase.