/

CVE-2026-102130

Severity:

HIGH RISK

(7.2)

Improper Code Generation (CWE-94) in Kiteworks Gateway

CVE-2026-102130

Analyzed

Vulnerability type

Category:

Code Injection

CWE:

CWE-94, CWE-434

Impact:

Arbitrary 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 insufficiently validates uploaded backup content, allowing an authenticated administrator to influence how the application loads the backup. Under these conditions, the administrator may cause arbitrary code to execute on the gateway with the privileges of the underlying service account.

Affected context

The vulnerability occurs in gateway workflows that accept and process administrator-uploaded backup files. Risk is present when backup content is not sufficiently validated or constrained before it is loaded, and when the loading process can interpret attacker-influenced content as executable application logic.

Exploit preconditions

  • Attack surface: Administrator-facing backup upload and restore functionality
  • Required access: Authenticated administrator privileges
  • Trigger point: Processing or loading an uploaded backup
  • Why exploitation is possible: Insufficient content validation allows crafted backup data to influence application behavior and potentially cause code execution

Why this happens

The underlying issue is an unsafe relationship between uploaded backup data and the application's loading logic. When content supplied through a backup workflow is treated as trusted or is allowed to affect executable behavior without strict validation, attacker-controlled data may become code or otherwise alter execution flow. This maps primarily to CWE-94: Improper Control of Generation of Code, with CWE-434: Unrestricted Upload of File with Dangerous Type also reflecting the unsafe handling of uploaded content.

Potential impact

  • Arbitrary code may execute on the gateway
  • The service account's data and permissions could be exposed
  • Gateway configuration or email-protection operations could be altered
  • Attackers could potentially use the compromised gateway for lateral movement
  • Security monitoring, filtering, or message-processing functions could be disrupted

General mitigation guidance

Mitigation generally centers on separating backup data from executable behavior and reducing trust in uploaded files.

Common defensive patterns include:

  • Enforcing strict, allowlisted backup schemas and content validation before loading
  • Using non-executable, data-only serialization formats and safe parsing APIs
  • Restricting accepted file types, structure, size, and metadata
  • Storing uploaded backups outside executable or dynamically loaded paths
  • Applying least privilege to the gateway service account
  • Requiring integrity protection and controlled administrative workflows for backup restoration
  • Isolating backup processing from sensitive gateway operations where practical

How teams detect issues like this

Organizations can look for this class of issue through:

  • Static analysis of backup import and deserialization code
  • Code review signals involving dynamic loading, evaluation, reflection, or executable file handling
  • Tests using malformed, unexpected, and type-confused backup content
  • Monitoring administrator backup uploads, restore events, and subsequent process behavior
  • Policy enforcement requiring allowlisted schemas and non-executable backup formats
  • Automated security review tools that flag unsafe upload handling and code-generation paths

Sources

SourceLink
github.comgithub.com/kiteworks/security-advisories/security/advisories/GHSA-m92m-q8cf-rcch
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 when that interface is reachable by an attacker who has obtained valid administrator credentials.

The described attack requires authenticated administrator access or equivalent ability to upload and process a backup.

Treat uploaded backups strictly as data, validate them against an allowlisted schema, and ensure the loading process cannot interpret their contents as executable logic.

Combine secure upload controls, integrity checks, least-privilege service accounts, isolated restore processing, and continuous testing of backup import paths.

Find out what's already
exploitable in your codebase.