Skip to main content
Vulnerability Database/CVE-2026-108126

CVE-2026-108126: temporal-proxy Privilege Escalation Flaw

CVE-2026-108126 is a privilege escalation vulnerability in temporal-proxy versions 0.2.0 through 0.8.0 that allows unauthorized decryption of encrypted payloads across namespaces. This article covers technical details, affected versions, security impact, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-108126 Overview

CVE-2026-108126 affects temporal-proxy versions 0.2.0 through 0.8.0. The proxy fails to bind encrypted payloads to the Temporal namespace they were encrypted for. When payload encryption is enabled, the proxy selects the decryption key using an identifier stored inside the payload instead of the namespace of the request. A caller authorized only for namespace B who obtains a ciphertext from namespace A can have the proxy decrypt it. In version 0.8.0, the caller can submit the payload to the codec server's /decode endpoint. The weakness is tracked under [CWE-639] Authorization Bypass Through User-Controlled Key.

Critical Impact

An authorized caller for one namespace can decrypt sealed payloads belonging to a different namespace served by the same proxy, breaking cross-namespace confidentiality boundaries.

Affected Products

  • temporal-proxy 0.2.0
  • temporal-proxy versions 0.3.0 through 0.7.x
  • temporal-proxy 0.8.0

Discovery Timeline

  • 2026-10-15 - CVE CVE-2026-108126 published to NVD
  • 2026-10-16 - Last updated in NVD database

Technical Details for CVE-2026-108126

Vulnerability Analysis

The flaw is an authorization bypass through a user-controlled key identifier. Temporal namespaces are intended to form a confidentiality boundary when payload encryption is enabled. The proxy, however, derives the decryption key from a Data Encryption Key (DEK) identifier embedded in the ciphertext metadata. The namespace of the inbound request is not consulted during key selection, and the ciphertext itself contains no bound namespace label.

Because a single proxy process loads every Key Encryption Key (KEK) it is configured with, keys for every served namespace share one vault. A caller who is authorized against namespace B can therefore trigger decryption of a payload that was originally sealed for namespace A, provided they obtain the ciphertext. The vulnerability does not permit modification of encrypted payloads and does not grant access to ciphertexts the attacker could not otherwise obtain.

Root Cause

The encryption primitives in pkg/crypto/dek.go, pkg/crypto/kek.go, and pkg/crypto/vault.go select keys based on identifiers inside the payload rather than the request namespace. There is no Additional Authenticated Data (AAD) binding the ciphertext to the namespace that produced it, so cross-namespace reuse is undetectable at decrypt time.

Attack Vector

Two exploitation paths exist. In version 0.8.0, a caller with authorized access to namespace B posts an attacker-supplied ciphertext from namespace A to the codec server's /decode endpoint. In every affected version, a caller who can also write to namespace B directly on the Temporal server can place the foreign payload in namespace B and read it back through the proxy, which transparently decrypts it.

go
// Security patch in internal/dataplane/dataplane.go
// [crypto]: Bind sealed payloads to their namespace (#221)

// installed unconditionally rather than gated on any one codec's config.
// Added after translation so it is the innermost unary interceptor, encoding
// outbound payloads last and decoding inbound payloads first.
// Payloads are bound to the namespace the upstream knows, so a local rename
// leaves them readable and two proxies naming one namespace differently agree.
var codecOpts []proxy.InterceptorOption
if rules.Configured() {
    codecOpts = append(codecOpts, proxy.WithRemoteNamespace(rules.Remote))
}

cdc, err := codecs.Interceptor(codecOpts...)
if err != nil {
    return nil, nil, fmt.Errorf("failed to build codec interceptor for upstream %q: %w", up.Name, err)
}

Source: GitHub Commit 6843a2c462

Detection Methods for CVE-2026-108126

Indicators of Compromise

  • Requests to the codec server /decode endpoint carrying payloads whose embedded DEK identifier does not match keys policy-mapped to the caller's namespace.
  • Workflow or activity payloads appearing in namespace B whose ciphertext DEK identifier matches keys policy-mapped to namespace A.
  • Repeated /decode or /encode calls from a single principal that reference payload identifiers unseen in that namespace's own history.

Detection Strategies

  • Audit proxy access logs for callers whose authorized namespace differs from the originating namespace of payloads they request decryption for.
  • Correlate Temporal server write events in namespace B with ciphertext DEK identifiers that only appear elsewhere in namespace A workflow histories.
  • Compare the configured namespace of each proxy instance against the KEKs it loads, and flag proxies that serve multiple distinct trust zones.

Monitoring Recommendations

  • Enable verbose logging on the codec server routes and ship logs to a centralized store for cross-namespace correlation.
  • Alert on any /decode request whose resulting plaintext references workflow IDs or metadata belonging to a namespace different from the request path.
  • Monitor commit of foreign ciphertext blobs into namespace stores by authenticated callers with limited namespace scope.

How to Mitigate CVE-2026-108126

Immediate Actions Required

  • Upgrade temporal-proxy to version 0.9.0 or later, which binds encrypted payloads to the namespace named by the caller.
  • Enable strict namespace binding so both the /encode and /decode routes require the request to name a namespace.
  • Where feasible, segregate KEKs by running one proxy per trust boundary instead of co-tenanting namespaces behind a single proxy.

Patch Information

The fix is delivered in temporal-proxy release v0.9.0. The remediation is implemented across two pull requests: PR #221 binds sealed payloads to their namespace at the crypto layer in commit 6843a2c462, and PR #222 binds codec server payloads to the namespace named by the caller in commit 508991c298. See the maintainer discussion thread for migration notes.

Workarounds

  • Restrict codec server access to trusted administrators until the upgrade is deployed, limiting the pool of callers able to invoke /decode.
  • Deploy separate proxy instances per namespace so each process holds only one key policy, preventing cross-namespace key reuse.
  • Revoke write permissions on sensitive namespaces for principals who should not be able to stage foreign payloads for readback.
bash
# Upgrade to the patched release
go install github.com/temporalio/temporal-proxy@v0.9.0

# Verify the running proxy version
temporal-proxy version

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.