secrets-store-csi-driver discloses service account tokens in logs
CVE-2023-2878 · GHSA-g82w-58jf-gcxx
- Affected
- Go sigs.k8s.io/secrets-store-csi-driver < 1.3.3
- Fixed in
- 1.3.3· Vendor fix available
- Issue
- A security issue was discovered in secrets-store-csi-driver where an actor with access to the driver logs could observe service account tokens. These tokens could then potentially be exchanged with external cloud providers to access secrets stored in cloud vault solutions. Tokens are only logged when TokenRequests is configured in the CSIDriver object and the driver is set to run at log level 2 or greater via the -v flag. This issue has been rated MEDIUM CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N (6.5), and assigned CVE-2023-2878 Am I vulnerable? You may be vulnerable if 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: To check if tokens are being logged, examine the secrets-store container log: Affected Versions - secrets-store-csi-driver < 1.3.3 How do I mitigate this vulnerability? Prior to upgrading, this vulnerability can be mitigated…
Recommended action: Upgrade to 1.3.3 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.