CVE-2025-47284: Github.com/gardener/gardener Gardener Allows Metadata Injection For Vulnerability

CRITICAL
Advisory Identifier: GHSA-9x73-87fh-54w9
CVSS 9.9
CWE-150
Published
Advisory Summary

CVE-2025-47284 is a CRITICAL (CVSS 9.9) gardener allows metadata injection for vulnerability (CWE-150: Improper Neutralization of Escape, Meta, or Control Sequences) affecting Github.com/gardener/gardener libraries in the Go ecosystem. The issue involves gardener allows metadata injection for a project secret which can lead to privilege escalation. Remediation is available by upgrading affected packages to version 1.116.4, 1.117.5, 1.118.2.

CVE-2025-47284 at a Glance

CVE Identifier CVE-2025-47284
GHSA Identifier GHSA-9x73-87fh-54w9
Severity CRITICAL
CVSS v3.1 Base Score 9.9
CWE Classification CWE-150: Improper Neutralization of Escape, Meta, or Control Sequences
Affected Product Github.com/gardener/gardener
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 9.9

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2025-47284

To remediate this vulnerability, upgrade all affected Github.com/gardener/gardener dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/gardener/gardener fixed: 1.116.4
Upgrade github.com/gardener/gardener to 1.116.4
github.com/gardener/gardener fixed: 1.117.5
Upgrade github.com/gardener/gardener to 1.117.5
github.com/gardener/gardener fixed: 1.118.2
Upgrade github.com/gardener/gardener to 1.118.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/gardener/gardener

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-47284, inspect your project dependencies for Github.com/gardener/gardener:

inspect dependencies for github.com/gardener/gardener

Analyze the terminal output to locate any version of Github.com/gardener/gardener in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.116.4), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-150: Improper Neutralization of Escape, Meta, or Control Sequences, where the product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as escape, meta, or control character sequences when they are sent to a downstream component. In Github.com/gardener/gardener, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

A security vulnerability was discovered in the `gardenlet` component of Gardener. It could allow a user with administrative privileges for a Gardener project to obtain control over the seed cluster(s) where their shoot clusters are managed. ### Am I Vulnerable? This CVE affects all Gardener installations where https://github.com/gardener/gardener-extension-provider-gcp is in use. ### Affected Components - `gardener/gardener` (`gardenlet`) ### Affected Versions - < v1.116.4 - < v1.117.5 - < v1.118.2 - < v1.119.0 ### Fixed Versions - &gt;= v1.116.4 - &gt;= v1.117.5 - &gt;= v1.118.2 - &gt;= v1.119.0 ### How do I mitigate this vulnerability? Update to a fixed version.

CVE-2025-47284 Affected Github.com/gardener/gardener Versions

3 component(s)
Fixed Versions:
1.116.41.117.51.118.2
Product / Package Ecosystem Affected Versions Fixed Version
github.com/gardener/gardener
Go
< 1.116.4
1.116.4
github.com/gardener/gardener
Go
≥ 1.117.0
< 1.117.5
1.117.5
github.com/gardener/gardener
Go
≥ 1.118.0
< 1.118.2
1.118.2

References

Frequently Asked Questions

What is CVE-2025-47284?
CVE-2025-47284 is a security vulnerability in Github.com/gardener/gardener involving Gardener allows metadata injection for a project secret which can lead to privilege escalation under CWE-150: Improper Neutralization of Escape, Meta, or Control Sequences.
Which Github.com/gardener/gardener versions are affected?
Affected versions include releases prior to 1.116.4, 1.117.5, 1.118.2 across affected packages: github.com/gardener/gardener.
What version fixes CVE-2025-47284?
Upgrading to 1.116.4, 1.117.5, 1.118.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/gardener/gardener affected?
Yes, github.com/gardener/gardener is affected in releases prior to 1.116.4, 1.117.5, 1.118.2. Upgrade your dependency to 1.116.4, 1.117.5, 1.118.2 or later.
What is the CVSS score of CVE-2025-47284?
CVE-2025-47284 has a CVSS v3.1 base score of 9.9 (CRITICAL) with vector string CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2025-47284?
CVE-2025-47284 is classified under CWE-150: Improper Neutralization of Escape, Meta, or Control Sequences (The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as escape, meta, or control character sequences when they are sent to a downstream component.).
How can I check Go dependencies for CVE-2025-47284?
Run the dependency tree command: 'inspect dependencies for github.com/gardener/gardener'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-9x73-87fh-54w9",
  "modified" : "2025-05-19T21:48:48Z",
  "published" : "2025-05-19T21:09:32Z",
  "aliases" : [ "CVE-2025-47284" ],
  "summary" : "Gardener allows metadata injection for a project secret which can lead to privilege escalation",
  "details" : "A security vulnerability was discovered in the `gardenlet` component of Gardener. It could allow a user with administrative privileges for a Gardener project to obtain control over the seed cluster(s) where their shoot clusters are managed.\n\n### Am I Vulnerable?\n\nThis CVE affects all Gardener installations where https://github.com/gardener/gardener-extension-provider-gcp is in use.\n\n### Affected Components\n\n- `gardener/gardener` (`gardenlet`)\n\n### Affected Versions\n\n- < v1.116.4\n- < v1.117.5\n- < v1.118.2\n- < v1.119.0\n\n### Fixed Versions\n\n- &gt;= v1.116.4\n- &gt;= v1.117.5\n- &gt;= v1.118.2\n- &gt;= v1.119.0\n\n### How do I mitigate this vulnerability?\n\nUpdate to a fixed version.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/gardener/gardener"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.116.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/gardener/gardener"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.117.0"
      }, {
        "fixed" : "1.117.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/gardener/gardener"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.118.0"
      }, {
        "fixed" : "1.118.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/gardener/gardener/security/advisories/GHSA-9x73-87fh-54w9"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-47284"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/gardener/gardener"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-150" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-05-19T21:09:32Z",
    "nvd_published_at" : "2025-05-19T19:15:51Z"
  }
}