Automated Threat Modeling

Project Gardener CVE-2025-59823: Brief Summary of Critical Code Injection in Multi-Cloud Kubernetes Extensions

A brief summary of CVE-2025-59823, a critical code injection vulnerability in Project Gardener's cloud provider extensions for AWS, Azure, OpenStack, and GCP. Administrative users can inject code during infrastructure provisioning, which may compromise seed clusters and all the shoot clusters they manage. The post covers the affected versions, technical details, and references.

CVE Analysis

8 min read

ZeroPath CVE Analysis
ZeroPath CVE Analysis

2025-09-25

Project Gardener CVE-2025-59823: Brief Summary of Critical Code Injection in Multi-Cloud Kubernetes Extensions
Experimental AI-Generated Content

This CVE analysis is an experimental publication that is completely AI-generated. The content may contain errors or inaccuracies and is subject to change as more information becomes available. We are continuously refining our process.

If you have feedback, questions, or notice any errors, please reach out to us.

[email protected]

Introduction

One misconfigured extension in a Kubernetes management platform can compromise an entire cloud estate. Project Gardener, a widely adopted open-source system for automating Kubernetes cluster operations across multiple clouds, recently disclosed a critical code injection vulnerability in its provider extensions. The issue affects the AWS, Azure, OpenStack, and GCP integrations. It could let an attacker with administrative project access take control of seed clusters and all the shoot clusters they manage.

About Project Gardener: Project Gardener is an open-source Kubernetes cluster management platform. SAP originally developed it, and it is now part of the Cloud Native Computing Foundation (CNCF). Organizations use it to automate the lifecycle of Kubernetes clusters across AWS, Azure, GCP, OpenStack, and other providers. Enterprises adopt Gardener when they want multi-cloud flexibility and consistent cluster operations at scale.

Technical information

CVE-2025-59823 is a code injection vulnerability (CWE-94) in Gardener's cloud provider extensions for AWS, Azure, OpenStack, and GCP. The flaw is in how these extensions handle user-supplied configuration data, specifically the providerConfig field in Infrastructure resources, before they pass it to the Terraformer component.

Terraformer provisions cloud infrastructure using Terraform. The vulnerable extensions do not adequately sanitize or validate the providerConfig input, so an attacker with administrative privileges in a Gardener project can inject arbitrary code. When Terraformer processes that input, it runs the injected code with the privileges of the seed cluster, which manages all associated shoot clusters.

Root cause:

  • Extension controllers do not sufficiently validate or sanitize providerConfig in Infrastructure resources.
  • User-controlled configuration goes straight to Terraformer, which executes it as part of infrastructure provisioning.

Impact:

  • An attacker can fully compromise the seed cluster.
  • Every shoot cluster managed by the compromised seed can be affected.
  • The attack requires administrative privileges within a Gardener project, but enterprise environments commonly assign these.

The advisories and release notes include no public code snippets and do not identify the vulnerable lines. The vulnerability is systemic to the extension architecture and the Terraformer integration.

Affected systems and versions

  • Gardener Extension Provider AWS: All versions before 1.64.0
  • Gardener Extension Provider Azure: All versions before 1.55.0
  • Gardener Extension Provider OpenStack: All versions before 1.49.0
  • Gardener Extension Provider GCP: All versions before 1.46.0

Vulnerable configurations: any Gardener installation that uses Terraformer for infrastructure provisioning with the provider extensions listed above.

Vendor security history

Project Gardener has previously fixed privilege escalation and extension-related vulnerabilities, including:

  • CVE-2025-47283: Project secret validation bypass leading to privilege escalation.
  • CVE-2025-47284: Issues in the gardenlet component affecting cluster management.

The vendor disclosed this vulnerability responsibly and coordinated patches across all affected extensions, which points to a mature and responsive security process.

References

Detect & fix
what others miss

Works with
  • GitHub
  • GitLab
  • Bitbucket
  • Azure DevOps Services
  • Gerrit
  • CVS
  • Jira
  • Linear
  • Slack
  • Security Compass
Explore integrations
Security magnifying glass visualization