CVE-2025-67508: Github.com/gardener/gardenctl v2 Gardenctl Is Vulnerable To Command Vulnerability

HIGH
Advisory Identifier: GHSA-fw33-qpx7-rhx2
CVSS 8.0
CWE-77
Published
Advisory Summary

CVE-2025-67508 is a HIGH (CVSS 8.0) gardenctl is vulnerable to command vulnerability (CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')) affecting Github.com/gardener/gardenctl v2 libraries in the Go ecosystem. The issue involves gardenctl is vulnerable to command injection when used with non‑posix shells. Remediation is available by upgrading affected packages to version 0.0.0-20251107111549-0bdc484cb5fb.

CVE-2025-67508 at a Glance

CVE Identifier CVE-2025-67508
GHSA Identifier GHSA-fw33-qpx7-rhx2
Severity HIGH
CVSS v3.1 Base Score 8.0
CWE Classification CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
Affected Product Github.com/gardener/gardenctl v2
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 8.0

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

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

How to Fix CVE-2025-67508

To remediate this vulnerability, upgrade all affected Github.com/gardener/gardenctl v2 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/gardenctl-v2 fixed: 0.0.0-20251107111549-0bdc484cb5fb
Upgrade github.com/gardener/gardenctl-v2 to 0.0.0-20251107111549-0bdc484cb5fb
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/gardenctl-v2

How to Check if You Are Affected

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

inspect dependencies for github.com/gardener/gardenctl-v2

Analyze the terminal output to locate any version of Github.com/gardener/gardenctl v2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.0-20251107111549-0bdc484cb5fb), 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-77: Improper Neutralization of Special Elements used in a Command ('Command Injection'), where the product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component. In Github.com/gardener/gardenctl v2, 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 [gardenctl](https://github.com/gardener/gardenctl-v2) when it is used with non‑POSIX shells such as **[Fish](https://fishshell.com/)** and **[PowerShell](https://learn.microsoft.com/en-us/powershell/)**. Such setup could allow an attacker with administrative privileges for a Gardener project to craft malicious credential values in infrastructure Secret objects that break out of the intended string context when evaluated in Fish or PowerShell environments used by the Gardener service operators, leading to arbitrary command execution on the operator's device. **Am I vulnerable?** This CVE affects all Gardener operators who use **gardenctl < v2.12.0** with non‑POSIX shells such as **[Fish](https://fishshell.com/)** and **[PowerShell](https://learn.microsoft.com/en-us/powershell/)**.

CVE-2025-67508 Affected Github.com/gardener/gardenctl v2 Versions

1 component(s)
Fixed Versions:
0.0.0-20251107111549-0bdc484cb5fb
Product / Package Ecosystem Affected Versions Fixed Version
github.com/gardener/gardenctl-v2
Go
< 0.0.0-20251107111549-0bdc484cb5fb
0.0.0-20251107111549-0bdc484cb5fb

References

Frequently Asked Questions

What is CVE-2025-67508?
CVE-2025-67508 is a security vulnerability in Github.com/gardener/gardenctl v2 involving gardenctl is vulnerable to Command Injection when used with non‑POSIX shells under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection').
Which Github.com/gardener/gardenctl v2 versions are affected?
Affected versions include releases prior to 0.0.0-20251107111549-0bdc484cb5fb across affected packages: github.com/gardener/gardenctl-v2.
What version fixes CVE-2025-67508?
Upgrading to 0.0.0-20251107111549-0bdc484cb5fb (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/gardener/gardenctl-v2 affected?
Yes, github.com/gardener/gardenctl-v2 is affected in releases prior to 0.0.0-20251107111549-0bdc484cb5fb. Upgrade your dependency to 0.0.0-20251107111549-0bdc484cb5fb or later.
What is the CVSS score of CVE-2025-67508?
CVE-2025-67508 has a CVSS v3.1 base score of 8.0 (HIGH) with vector string CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2025-67508?
CVE-2025-67508 is classified under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection') (The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.).
How can I check Go dependencies for CVE-2025-67508?
Run the dependency tree command: 'inspect dependencies for github.com/gardener/gardenctl-v2'. 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-fw33-qpx7-rhx2",
  "modified" : "2026-03-24T21:08:10Z",
  "published" : "2025-12-11T16:48:48Z",
  "aliases" : [ "CVE-2025-67508" ],
  "summary" : "gardenctl is vulnerable to Command Injection when used with non‑POSIX shells",
  "details" : "A security vulnerability was discovered in [gardenctl](https://github.com/gardener/gardenctl-v2) when it is used with non‑POSIX shells such as **[Fish](https://fishshell.com/)** and **[PowerShell](https://learn.microsoft.com/en-us/powershell/)**. Such setup could allow an attacker with administrative privileges for a Gardener project to craft malicious credential values in infrastructure Secret objects that break out of the intended string context when evaluated in Fish or PowerShell environments used by the Gardener service operators, leading to arbitrary command execution on the operator's device.\n\n**Am I vulnerable?**\nThis CVE affects all Gardener operators who use  **gardenctl < v2.12.0** with non‑POSIX shells such as **[Fish](https://fishshell.com/)** and **[PowerShell](https://learn.microsoft.com/en-us/powershell/)**.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/gardener/gardenctl-v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.0.0-20251107111549-0bdc484cb5fb"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/gardener/gardenctl-v2/security/advisories/GHSA-fw33-qpx7-rhx2"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-67508"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/gardener/gardenctl-v2"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2025-4232"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-77" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-12-11T16:48:48Z",
    "nvd_published_at" : "2025-12-12T06:15:40Z"
  }
}