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-108728 Overview
CVE-2026-108728 is a cleartext storage of sensitive information vulnerability [CWE-312] affecting Flyte versions 2.0.1 through 2.0.51. The embedded secret manager webhook writes base64-encoded FILE-mounted secret values into the SECRETS environment variable on init containers. Users with Pod read access can decode these values from the Pod spec without needing permissions on the underlying Kubernetes Secret store. This breaks the privilege boundary that normally separates Pod readers from Secret readers in Role-Based Access Control (RBAC) policies.
Critical Impact
Any principal with pods/get or pods/list access in a namespace running Flyte workloads can retrieve secret material intended to be isolated by Kubernetes Secret RBAC.
Affected Products
- Flyte 2.0.1 through 2.0.51
- Deployments using the embedded secret manager admission webhook
- Workloads configured with FILE-mounted secrets through Flyte
Discovery Timeline
- 2026-10-11 - CVE-2026-108728 published to the National Vulnerability Database (NVD)
- 2026-10-16 - Last updated in NVD database
Technical Details for CVE-2026-108728
Vulnerability Analysis
Flyte is an orchestration platform for data and machine learning workflows that runs tasks as Kubernetes Pods. Its admission webhook, implemented in executor/pkg/webhook/handler.go, mutates Pod specs to inject secrets requested by tasks. When a task requests a secret with the FILE mount type, the embedded secret manager retrieves the secret value, base64-encodes it, and injects it into the SECRETS environment variable of an init container. The init container then decodes and writes the value to a file for the main container to consume.
The design assumes that only authorized principals can read Pod specs. In practice, Pod read permissions are broader than Secret read permissions in most Kubernetes RBAC configurations. Monitoring agents, operators, and developer tooling frequently hold pods/get without secrets/get. Any such principal can read the init container environment, extract the base64 string, and recover the original secret material.
Root Cause
The root cause is a design flaw in the embedded secret manager at flyteplugins/go/tasks/pluginmachinery/secret/embedded_secret_manager.go. Base64 encoding is not a confidentiality control; it is a transport encoding. Writing secret material into a Pod spec field, even when encoded, exposes the data to every principal with Pod read access. The FILE mount contract should have been implemented using Kubernetes Secret volume mounts or envFrom with secretKeyRef, both of which keep the ciphertext in etcd and require Secret RBAC to resolve.
Attack Vector
An attacker with namespace-scoped pods/get or pods/list permissions queries the API server for Flyte task Pods. They inspect the init container env entries, locate the SECRETS variable, split the value on its delimiter, and base64-decode each entry. No code execution on the Pod and no access to the Secret store is required. The attack is network-based against the Kubernetes API and succeeds with low privileges.
Detection Methods for CVE-2026-108728
Indicators of Compromise
- Audit log entries showing get or list verbs against pods resources in Flyte task namespaces from accounts that do not require secret access
- Unusual API server queries filtering on init container specifications or Pod env fields
- Service accounts reading Pod specs at a rate inconsistent with their documented function
Detection Strategies
- Review Kubernetes audit logs for principals performing get pods against namespaces that host Flyte workflows, correlating against the expected set of operators and controllers
- Inspect Flyte-generated Pod specs for init containers that contain a SECRETS environment variable with base64-encoded content
- Enumerate RoleBindings and ClusterRoleBindings granting pods/get or pods/list in Flyte namespaces and compare against the set of principals granted Secret access
Monitoring Recommendations
- Enable Kubernetes API server audit logging at the Metadata level or higher for Pod read operations in Flyte namespaces
- Alert on unexpected service accounts or user identities enumerating Pods in namespaces that execute Flyte tasks
- Track creation of Pods containing a SECRETS environment variable in init containers as a leading indicator of exposure surface
How to Mitigate CVE-2026-108728
Immediate Actions Required
- Inventory Flyte deployments and identify any version in the 2.0.1 through 2.0.51 range
- Audit RBAC in Flyte namespaces and remove unnecessary pods/get and pods/list grants, especially for human users and non-essential service accounts
- Rotate any secrets that were delivered through Flyte FILE mounts while the vulnerable version was deployed
- Review the VulnCheck advisory on Flyte and the HackMD disclosure for upstream guidance
Patch Information
No fixed version is listed in the NVD record at the time of publication. Monitor the Flyte GitHub repository for a release that removes base64-encoded secrets from Pod specs and replaces the delivery mechanism with native Kubernetes Secret volume mounts.
Workarounds
- Avoid the FILE mount type for secrets in Flyte tasks until a patched release is available, and prefer environment-based delivery backed by Kubernetes secretKeyRef where appropriate
- Restrict pods/get and pods/list to the minimum set of principals using tightly scoped Roles, and deny these verbs to interactive users where feasible
- Deploy an admission policy using Kyverno or OPA Gatekeeper that rejects Pods carrying base64-encoded secret payloads in init container environment variables
- Isolate Flyte workloads in dedicated namespaces so that RBAC boundaries contain any exposure
# Example audit query: list principals with pods/get in a Flyte namespace
kubectl get rolebindings,clusterrolebindings -A -o json \
| jq '.items[] | select(.roleRef.name as $r | $r | test("pod|admin|edit|view"))
| {name: .metadata.name, namespace: .metadata.namespace, subjects: .subjects}'
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

