Information Exposure Affecting sigs.k8s.io/secrets-store-csi-driver/pkg/secrets-store package, versions <1.3.3
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-GOLANG-SIGSK8SIOSECRETSSTORECSIDRIVERPKGSECRETSSTORE-5660298
- published 28 May 2023
- disclosed 26 May 2023
- credit Tomer Shaiman from Microsoft.
Introduced: 26 May 2023
CVE-2023-2878 Open this link in a new tabHow to fix?
Upgrade sigs.k8s.io/secrets-store-csi-driver/pkg/secrets-store to version 1.3.3 or higher.
Overview
Affected versions of this package are vulnerable to Information Exposure in secrets-store-csi-driver where an actor with access to the driver logs can observe service account tokens. These tokens could then potentially be exchanged with external cloud providers to access secrets stored in cloud vault solutions.
Note: Tokens are only logged when the TokenRequests is configured in the CSIDriver object and the driver is set to run at log level 2 or greater via the -v flag.
To check if token requests are configured, run the following command:
kubectl get csidriver secrets-store.csi.k8s.io -o jsonpath="{.spec.tokenRequests}"
To check if tokens are being logged, examine the secrets-store container log:
kubectl logs -l app=secrets-store-csi-driver -c secrets-store -f | grep --line-buffered "csi.storage.k8s.io/serviceAccount.tokens"