CVE-2025-67508: Github.com/gardener/gardenctl v2 Gardenctl Is Vulnerable To Command Vulnerability
HIGHCVE-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
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).
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.
Upgrade github.com/gardener/gardenctl-v2 to 0.0.0-20251107111549-0bdc484cb5fb
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
CVE-2025-67508 Affected Github.com/gardener/gardenctl v2 Versions
1 component(s)| 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?
Which Github.com/gardener/gardenctl v2 versions are affected?
What version fixes CVE-2025-67508?
Is github.com/gardener/gardenctl-v2 affected?
What is the CVSS score of CVE-2025-67508?
What CWE is associated with CVE-2025-67508?
How can I check Go dependencies for CVE-2025-67508?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}