/

CVE-2026-102116

Severity:

HIGH RISK

(7.2)

Path Traversal (CWE-22) in Kiteworks Email Gateway Service

CVE-2026-102116

Analyzed

Vulnerability type

Category:

Path Traversal

CWE:

CWE-22, CWE-91

Impact:

Remote Code Execution

Severity:

HIGH RISK

(7.2)

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

An authenticated administrator may be able to write a file outside its intended directory in the Kiteworks Email Protection Gateway. If the application subsequently executes the misplaced file as the service account, the weakness could result in remote code execution.

Affected context

The issue may occur in administrative functionality that accepts attacker-influenced file names, paths, or structured input and uses them to determine where files are written. Risk increases when the resulting file is placed in an executable or application-loaded location and the service account has permission to run it.

Exploit preconditions

  • Attack surface: Authenticated administrative file-writing or configuration functionality
  • Required access: Valid Kiteworks Email Protection Gateway administrator access
  • Trigger point: Processing of a crafted path or structured input that controls the destination of a written file
  • Why exploitation is possible: Path handling may permit traversal outside the intended directory, after which application behavior can cause the written file to be executed by the underlying service account

Why this happens

The underlying bug is insufficient restriction and canonicalization of attacker-influenced file paths. A path value is treated as a trusted destination without reliably constraining it to an approved directory, which maps to CWE-22: Path Traversal. Where structured or XML-based input contributes to path construction or interpretation, inadequate filtering or validation may also relate to CWE-91: XML Injection. The combination can turn a file-write capability into code execution when written content reaches an executable application path.

Potential impact

  • An attacker may execute arbitrary code as the underlying service account.
  • The application runtime could be compromised.
  • Sensitive gateway data or configuration could be accessed or modified.
  • Mail security controls could be altered or bypassed.
  • The compromised service could be used for further access within the environment.

General mitigation guidance

Mitigation generally focuses on enforcing destination boundaries and ensuring that administrative file operations cannot produce executable content in application-controlled locations.

Common defensive patterns include:

  • Canonicalizing paths before authorization and enforcing containment within an approved directory.
  • Rejecting traversal components, absolute paths, unexpected encodings, and symlink-based escapes.
  • Using server-generated identifiers and fixed storage locations instead of accepting caller-controlled file names.
  • Separating uploaded or generated content from executable and application-loaded directories.
  • Applying strict allowlists for file types, formats, and permitted operations.
  • Parsing structured input with hardened, non-expanding parsers and validating it against a narrowly defined schema.
  • Running the service with least privilege and limiting write and execute permissions.

How teams detect issues like this

Organizations can look for:

  • Static analysis findings involving unsanitized path concatenation, filesystem writes, archive extraction, or XML-derived path values.
  • Code review signals such as direct use of user-controlled values in file APIs, incomplete canonicalization, and checks performed after file creation.
  • Tests that verify path containment across relative paths, encoded separators, alternate path formats, and symbolic links.
  • Runtime monitoring for administrators creating files outside approved directories or for unexpected execution by the gateway service account.
  • Policy enforcement that separates writable content from executable locations and restricts administrative file-management features.

Automated security review tools may help identify traversal-prone path handling and unsafe XML processing patterns.

Sources

SourceLink
github.comgithub.com/kiteworks/security-advisories/security/advisories/GHSA-pf8p-p269-4mjv
raw.githubusercontent.comraw.githubusercontent.com/cisagov/CSAF/develop/csaf_files/VA/white/2026/va-26-274-01.json

Frequently asked

questions

Exploitation generally requires authenticated administrator access to a gateway feature that processes attacker-influenced file paths or structured input.

Not necessarily. Code execution depends on whether the misplaced file reaches a location or workflow where the application executes or loads it, and on the permissions of the service account.

Constrain every destination to a canonical, approved directory, use server-controlled file names, and keep user-controlled content outside executable locations.

Combine strict path and schema validation with hardened XML parsing, least-privilege service accounts, filesystem separation, security-focused code review, and tests for path-boundary bypasses.

Find out what's already
exploitable in your codebase.