Google Vertex AI SDK Flaw Let Attackers Hijack Model Uploads via Bucket Squatting Swati Khandelwal Jun 16, 2026 Machine Learning / Cloud Security A flaw in the Google Cloud Vertex AI SDK for Python let an attacker with no access to a victim's project hijack the victim's machine learning model upload and run code inside Google's serving infrastructure. Palo Alto Networks Unit 42, which found and reported the bug through Google's bug bounty program, calls the technique " Pickle in the Middle " and said it saw no exploitation in the wild. Google has patched it; if you use the SDK, update to version 1.148.0 or later. The attacker needed only a Google Cloud project of their own and the victim's project ID, which is often public. No credentials, no phishing, no foothold in the target. The flaw was in how the SDK chose a temporary Cloud Storage bucket for model uploads. If a user did not set a bucket, the SDK generated a predictable name from the project ID and region, such as project-vertex-staging-region . It checked whether that bucket existed, but not whether the victim owned it. Because bucket names are globally unique, an attacker could create the expected bucket first in their own project. The victim's SDK would then upload the model files to the attacker's bucket. The attacker could then replace the uploaded model with a malicious one. Many Python ML models are saved with pickle or joblib , which can run code when a file is loaded. When Vertex AI later loaded the swapped model, the attacker's code executed inside the serving container. The attack depended on speed. Unit 42 measured about 2.5 seconds between the victim's upload and Vertex AI reading the file. In its proof of concept, the attacker used a Cloud Function that triggered after upload and replaced the model in 1.4 seconds, before Vertex AI read it. The payload then stole an OAuth token from the serving container's metadata server and sent it to the attacker. In Un
Back to Home

Google Vertex AI SDK Flaw Let Attackers Hijack Model Uploads via Bucket Squatting
B
Blizine Admin
·2 min read·0 views
B
Blizine Admin
View Profile Staff Writer
Related Articles
Want Gemini features before everyone else? Google is recruiting testers
Jun 17, 2026·2 min read
For the First Time, ChatGPT Reportedly Has Less Than Half of the AI Assistant Market
Jun 17, 2026·2 min read
Why Weibo’s tiny VibeThinker-3B has the AI world arguing over benchmarks again
Jun 17, 2026·1 min read