/

CVE-2026-102097

Severity:

HIGH RISK

(7.2)

Code Injection (CWE-94) in Kiteworks Email Protection

CVE-2026-102097

Analyzed

Vulnerability type

Category:

Code Injection

CWE:

CWE-22, CWE-94

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

Kiteworks Email Protection Gateway contains a remote code execution vulnerability in its configuration import workflow. An authenticated administrator who can submit a crafted configuration may be able to cause arbitrary commands to execute on the gateway when the imported content is processed.

Affected context

The issue occurs in Email Protection Gateway deployments that allow authenticated administrators to import configuration data without sufficiently validating its contents before processing. Risk depends on the permissions granted to administrators, the gateway's configuration import workflow, and the privileges available to the service processing the imported data.

Exploit preconditions

  • Attack surface: Authenticated configuration-import functionality
  • Required access: Administrator-level access capable of submitting or importing configuration data
  • Trigger point: Processing of the imported configuration by the gateway
  • Why exploitation is possible: Insufficient validation may allow configuration content to influence command execution rather than being handled strictly as data

Why this happens

The underlying issue is inadequate validation and isolation of administrator-supplied configuration during import. When configuration content is processed in a context that permits command or code interpretation, crafted values may cross the boundary from data into executable behavior. This maps primarily to CWE-94: Improper Control of Generation of Code ('Code Injection'); the associated CWE-22 classification also indicates that unsafe path-related handling may be relevant to the configuration-processing flow.

Potential impact

  • An attacker may execute arbitrary commands on the gateway
  • The gateway's confidentiality, integrity, or availability could be compromised
  • Sensitive email, configuration, or credential data may be accessed
  • The compromised system could be used to affect connected services or infrastructure

General mitigation guidance

Mitigation generally focuses on ensuring imported configuration remains data-only throughout validation and processing.

Common defensive patterns include:

  • Using strict allowlisted schemas and typed configuration models
  • Rejecting unexpected fields, control characters, executable expressions, and unsafe path values
  • Separating parsing, validation, and application so validation occurs before any side effects
  • Avoiding shell interpretation and dynamic code evaluation for configuration values
  • Applying canonical path checks and restricting file operations to dedicated directories
  • Running configuration-processing services with least privilege and limited filesystem and network access
  • Requiring protected administrative workflows, audit logging, and integrity controls for imported configurations

How teams detect issues like this

Detection approaches may include:

  • Static analysis for command construction, shell invocation, dynamic evaluation, and unsafe path handling involving imported configuration values
  • Code review checks confirming that schema validation precedes file, process, or network operations
  • Tests using unexpected fields, path-like values, metacharacters, and type-confusion cases to verify rejection
  • Runtime monitoring for unusual child processes, command execution, filesystem access, or outbound connections after configuration imports
  • Policy enforcement requiring typed schemas, allowlisted configuration fields, and least-privilege service accounts
  • Neutral automated code-review or software-composition tools to identify injection and input-validation patterns

Sources

SourceLink
github.comgithub.com/kiteworks/security-advisories/security/advisories/GHSA-465g-wpvm-8qmr
raw.githubusercontent.comraw.githubusercontent.com/cisagov/CSAF/develop/csaf_files/VA/white/2026/va-26-274-01.json

Frequently asked

questions

It may be exploitable through the gateway's administrative interface, but exploitation generally requires authenticated administrator access and the ability to import configuration data.

The described behavior does not indicate an unauthenticated path. Exposure may still depend on how administrative access, credentials, and network reachability are managed.

Treat imported configuration as untrusted data, validate it against a strict schema before processing, and prevent configuration values from reaching command or code interpreters.

Use allowlisted configuration models, separate validation from side effects, restrict administrative privileges, apply least privilege to gateway services, and monitor configuration-import activity.

Find out what's already
exploitable in your codebase.