Feast vulnerable to unsafe deserialization RCE in registry server via UDF proto
The registry server deserialises a base64-encoded user-defined function body with dill.loads() before checking authorisation. An attacker can send a crafted gRPC request containing a malicious serialised Python object to run OS commands as the feast service account.
feast-dev/feast
Originally disclosed on huntr
Feast before 0.63.0 contains an unsafe deserialization vulnerability that allows unauthenticated or unauthorized attackers to achieve remote code execution by sending a crafted gRPC request to the registry server. The user_defined_function.body field of an OnDemandFeatureView spec is decoded from base64 and passed to dill.loads() before any authorization check is performed, enabling attackers to embed a malicious serialized Python object with an arbitrary reduce method to execute OS commands as the feast service account.
From the GitHub Advisory Database (GHSA-q63x-9pfm-mjx4, 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 server deserialises untrusted input with dill.loads() before performing any authorisation check.
Impact
An unauthenticated or unauthorised attacker could achieve remote code execution as the feast service account.
What the attacker needed
Network access to the registry server; no authentication required
The fix
Feast was fixed in version 0.63.0.
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.
The server turns a blob of data from a request back into a live Python object without checking who sent it. If that data is crafted, rebuilding the object can run code on the server. This is called unsafe deserialisation.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.