Kubernetes Secrets Store CSI Driver plugins arbitrary file writeGHSA-2v35-wj4r-rcmv
MEDIUMFix: Azure/secrets-store-csi-driver-provider-azure#298GHSA-2v35-wj4r-rcmv is a medium-severity (CVSS 4.9) CWE-24 vulnerability in github.com/hashicorp/vault-csi-provider. A fix is available for github.com/hashicorp/vault-csi-provider — see the affected versions and patch details below.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
github.com/hashicorp/vault-csi-provider🐹github.com/Azure/secrets-store-csi-driver-provider-azure🐹github.com/GoogleCloudPlatform/secrets-store-csi-driver-provider-gcpReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.
Description
Kubernetes Secrets Store CSI Driver Vault Plugin prior to v0.0.6, Azure Plugin prior to v0.0.10, and GCP Plugin prior to v0.2.0 allow an attacker who can create specially-crafted SecretProviderClass objects to write to arbitrary file paths on the host filesystem, including /var/lib/kubelet/pods.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐹Go | github.com/hashicorp/vault-csi-provider | all versions | 0.0.6go get github.com/hashicorp/vault-csi-provider@v0.0.6 |
| 🐹Go | github.com/Azure/secrets-store-csi-driver-provider-azure | all versions | 0.0.10go get github.com/Azure/secrets-store-csi-driver-provider-azure@v0.0.10 |
| 🐹Go | github.com/GoogleCloudPlatform/secrets-store-csi-driver-provider-gcp | all versions | 0.2.0go get github.com/GoogleCloudPlatform/secrets-store-csi-driver-provider-gcp@v0.2.0 |
Affected Products
secret manager provider for secret store csi drivergooglevault provider for secrets store csi driverhashicorpazure key vault provider for secrets store csi drivermicrosoftDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for github.com/hashicorp/vault-csi-provider, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update github.com/hashicorp/vault-csi-provider to 0.0.6 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-2v35-wj4r-rcmv is resolved across your whole dependency graph.
Workarounds
Resolve every user-supplied path to its canonical form and reject anything that escapes the intended directory, and run the component under an account that has no read or write access outside the directory it legitimately serves.
Frequently Asked Questions
Is GHSA-2v35-wj4r-rcmv in your dependencies?
Find it across Go, including transitive dependencies.