CVE-2025-67508: gardenctl is vulnerable to Command Injection when used with non‑POSIX shells
A security vulnerability was discovered in gardenctl when it is used with non‑POSIX shells such as Fish and 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,…
Published Dec 11, 2025 · Updated Mar 24, 2026
Affected packages
github.com/gardener/gardenctl-v2
- Ecosystem
- Go
- Affected
- < 0.0.0-20251107111549-0bdc484cb5fb
- Fixed in
- 0.0.0-20251107111549-0bdc484cb5fb
- Check
go list -m github.com/gardener/gardenctl-v2
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
A security vulnerability was discovered in gardenctl 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/).
Credited to petersutter, donistz, JordanJordanov, HeckEK.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
