/

CVE-2026-110690

Severity:

HIGH RISK

(7.5)

Path Traversal (CWE-23) in Cloud Commander Pack API

CVE-2026-110690

Deferred

Vulnerability type

Category:

Path Traversal

CWE:

CWE-23

Impact:

Arbitrary File Disclosure

Severity:

HIGH RISK

(7.5)

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

Cloud Commander contains a path traversal vulnerability in the /api/v1/pack endpoint that can allow files outside the configured root directory to be read and returned as a downloadable archive.

The issue becomes risky when an attacker can reach the pack API and provide traversal sequences that bypass the intended path validation logic.

Cloud Commander contains a path traversal vulnerability in the /api/v1/pack endpoint that can allow files outside the configured root directory to be read and returned as a downloadable archive.

The issue becomes risky when an attacker can reach the pack API and provide traversal sequences that bypass the intended path validation logic.

Affected context

The vulnerability occurs in Cloud Commander deployments where the /api/v1/pack endpoint processes attacker-controlled path data. The affected handler uses an unguarded root-path operation rather than the validation wrapper applied by other request paths, allowing encoded traversal sequences to escape the configured --root directory. Exploitation may expose operating-system files, application configuration, credentials, or private keys if they are readable by the service account.

The vulnerability occurs in Cloud Commander deployments where the /api/v1/pack endpoint processes attacker-controlled path data. The affected handler uses an unguarded root-path operation rather than the validation wrapper applied by other request paths, allowing encoded traversal sequences to escape the configured --root directory. Exploitation may expose operating-system files, application configuration, credentials, or private keys if they are readable by the service account.

Exploit preconditions

  • Attack surface: The HTTP /api/v1/pack endpoint
  • Required access: Network access to the Cloud Commander service; authentication requirements depend on deployment configuration
  • Trigger point: A pack request containing percent-encoded directory traversal sequences
  • Why exploitation is possible: The request path reaches an unguarded root operation that does not consistently enforce the configured directory boundary before files are archived and streamed
  • Attack surface: The HTTP /api/v1/pack endpoint
  • Required access: Network access to the Cloud Commander service; authentication requirements depend on deployment configuration
  • Trigger point: A pack request containing percent-encoded directory traversal sequences
  • Why exploitation is possible: The request path reaches an unguarded root operation that does not consistently enforce the configured directory boundary before files are archived and streamed

Why this happens

The underlying bug is inconsistent path validation between related request handlers. The pack handler invokes a filesystem-root operation directly instead of routing the requested path through a canonicalization and boundary-checking wrapper.

As a result, attacker-controlled path components can be interpreted outside the intended directory. This behavior maps to CWE-23: Relative Path Traversal, where insufficient validation of relative path elements permits access to files beyond the authorized filesystem scope.

The underlying bug is inconsistent path validation between related request handlers. The pack handler invokes a filesystem-root operation directly instead of routing the requested path through a canonicalization and boundary-checking wrapper.

As a result, attacker-controlled path components can be interpreted outside the intended directory. This behavior maps to CWE-23: Relative Path Traversal, where insufficient validation of relative path elements permits access to files beyond the authorized filesystem scope.

Potential impact

  • Sensitive operating-system files may be disclosed
  • SSH private keys, credentials, or application secrets could be exposed
  • Archived responses may enable bulk retrieval of readable files
  • Service-account-readable configuration and source files may be collected
  • Exposed secrets could support follow-on account or infrastructure compromise
  • Sensitive operating-system files may be disclosed
  • SSH private keys, credentials, or application secrets could be exposed
  • Archived responses may enable bulk retrieval of readable files
  • Service-account-readable configuration and source files may be collected
  • Exposed secrets could support follow-on account or infrastructure compromise

General mitigation guidance

Mitigation generally focuses on enforcing a single, centralized filesystem boundary for every file-related operation.

Common defensive patterns include:

  • Canonicalizing requested paths before access and confirming they remain beneath the configured root
  • Reusing the same validated path-resolution wrapper across download, archive, and browse operations
  • Rejecting encoded traversal components and ambiguous path representations
  • Applying allowlists for files or directories when an archive operation does not require arbitrary paths
  • Running the service with a dedicated least-privilege account and limiting readable secrets
  • Using filesystem isolation, read-only mounts, and restrictive container or service permissions where practical
  • Avoiding the inclusion of sensitive files within directories exposed to file-management features

Mitigation generally focuses on enforcing a single, centralized filesystem boundary for every file-related operation.

Common defensive patterns include:

  • Canonicalizing requested paths before access and confirming they remain beneath the configured root
  • Reusing the same validated path-resolution wrapper across download, archive, and browse operations
  • Rejecting encoded traversal components and ambiguous path representations
  • Applying allowlists for files or directories when an archive operation does not require arbitrary paths
  • Running the service with a dedicated least-privilege account and limiting readable secrets
  • Using filesystem isolation, read-only mounts, and restrictive container or service permissions where practical
  • Avoiding the inclusion of sensitive files within directories exposed to file-management features

How teams detect issues like this

Organizations can look for path traversal risks through:

  • Static analysis rules identifying filesystem calls that consume request-derived paths without canonicalization and boundary checks
  • Code review checks for inconsistent validation between similar endpoints
  • Tests using encoded, double-encoded, absolute, and mixed-separator path representations
  • Web application monitoring for repeated traversal markers and unusual archive requests
  • Policy enforcement requiring centralized path-resolution helpers for file-serving functionality
  • Automated security review tools that flag user-controlled paths passed to archive or file-read APIs

Organizations can look for path traversal risks through:

  • Static analysis rules identifying filesystem calls that consume request-derived paths without canonicalization and boundary checks
  • Code review checks for inconsistent validation between similar endpoints
  • Tests using encoded, double-encoded, absolute, and mixed-separator path representations
  • Web application monitoring for repeated traversal markers and unusual archive requests
  • Policy enforcement requiring centralized path-resolution helpers for file-serving functionality
  • Automated security review tools that flag user-controlled paths passed to archive or file-read APIs

Sources

SourceLink
gist.github.comgist.github.com/mansurmavlankulov/5a0c4cbab8e49ac0669d126c854da95e
github.comgithub.com/coderaiser/cloudcmd/commit/91c024591f425e26200884d5e1d5ba972377968b
github.comgithub.com/coderaiser/cloudcmd/releases/tag/v19.21.2
vulncheck.comvulncheck.com/advisories/cloud-commander-through-path-traversal-via-get-api-v1-pack

Frequently asked

questions

Yes, it may be remotely exploitable when the Cloud Commander HTTP service is reachable and the attacker can access the affected pack endpoint. The practical scope depends on network exposure and authentication controls.

Not necessarily. Authentication and authorization requirements are deployment-specific, but any control protecting the endpoint can limit exploitation.

Route every user-controlled path through centralized canonicalization and boundary validation, ensuring the resolved path remains within the configured root before reading or archiving files.

Use allowlisted file scopes where possible, test encoded traversal variants, apply least-privilege filesystem permissions, and require consistent path-validation patterns during code review.

Yes, it may be remotely exploitable when the Cloud Commander HTTP service is reachable and the attacker can access the affected pack endpoint. The practical scope depends on network exposure and authentication controls.

Not necessarily. Authentication and authorization requirements are deployment-specific, but any control protecting the endpoint can limit exploitation.

Route every user-controlled path through centralized canonicalization and boundary validation, ensuring the resolved path remains within the configured root before reading or archiving files.

Use allowlisted file scopes where possible, test encoded traversal variants, apply least-privilege filesystem permissions, and require consistent path-validation patterns during code review.

Find out what's already
exploitable in your codebase.