Feast vulnerable to Deserialization of Untrusted Data
The Kubernetes materializer job in Feast 0.53.0 deserialises YAML configuration files with an unsafe loader that can instantiate arbitrary Python objects. An attacker who can modify those YAML files could execute operating system commands on the worker pod before the configuration is validated.
feast-dev/feast
Originally disclosed on huntr
A high-severity remote code execution vulnerability exists in feast-dev/feast version 0.53.0, specifically in the Kubernetes materializer job located at feast/sdk/python/feast/infra/compute_engines/kubernetes/main.py. The vulnerability arises from the use of yaml.load(..., Loader=yaml.Loader) to deserialize /var/feast/feature_store.yaml and /var/feast/materialization_config.yaml. This method allows for the instantiation of arbitrary Python objects, enabling an attacker with the ability to modify these YAML files to execute OS commands on the worker pod. This vulnerability can be exploited before the configuration is validated, potentially leading to cluster takeover, data poisoning, and supply-chain sabotage.
From the GitHub Advisory Database (GHSA-34wm-4hw7-qfjv, CC BY 4.0).
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The code uses yaml.load with Loader=yaml.Loader, which can construct arbitrary Python objects instead of only safe data types.
Impact
An attacker able to modify the YAML files could execute commands on the worker pod, potentially leading to cluster takeover, data poisoning and supply-chain sabotage.
What the attacker needed
Ability to modify the YAML config files
The fix
The unsafe loader should be replaced with a safe YAML loader that only produces plain data types.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
YAML is a text format used for configuration files. Some YAML loaders can create Python objects, not just plain data, and if an attacker controls the file they can make the loader run commands. Here the worker pod reads two configuration files with that unsafe loader, so anyone who can edit those files can run code on the pod.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.