CVE-2023-2878: Kubernetes secrets-store-csi-driver discloses service account tokens in logs

Published May 25, 2023
·
Updated

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:

bash 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:

bash kubectl logs -l app=secrets-store-csi-driver -c secrets-store -f | grep --line-buffered "csi.storage.k8s.io/serviceAccount.tokens"

Affected Versions

- secrets-store-csi-driver < 1.3.3

How do I mitigate this vulnerability?

Prior to upgrading, this vulnerability can be mitigated by running secrets-store-csi-driver at log level 0 or 1 via the -v flag.

Fixed Versions

- secrets-store-csi-driver >= 1.3.3

To upgrade, refer to the documentation: https://secrets-store-csi-driver.sigs.k8s.io/getting-started/upgrades.html#upgrades

Detection

Examine cloud provider logs for unexpected token exchanges, as well as unexpected access to cloud vault secrets.

If you find evidence that this vulnerability has been exploited, please contact security@kubernetes.io

Other sources

Kubernetes secrets-store-csi-driver in versions before 1.3.3 discloses service account tokens in logs.

MITRE

Affected Software

2 affected componentsFixes available
go/sigs.k8s.io/secrets-store-csi-driver<1.3.3
1.3.3
Kubernetes secrets-store-csi-driver<1.3.3

Event History

May 26, 2023
Advisory Published
01:59 PM
Jun 7, 2023
CVE Published
via MITRE·02:35 PM
Data Sourced
via MITRE·02:35 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:15 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is CVE-2023-2878?

CVE-2023-2878 is a vulnerability in the secrets-store-csi-driver of Kubernetes that allows an attacker with access to the driver logs to observe service account tokens.

2

How severe is CVE-2023-2878?

CVE-2023-2878 has a severity score of 6.5 out of 10, which is considered medium.

3

How can an attacker exploit CVE-2023-2878?

An attacker can exploit CVE-2023-2878 by gaining access to the driver logs and then potentially exchanging the observed service account tokens with external cloud providers to access secrets stored in cloud vault solutions.

4

How can I fix CVE-2023-2878?

To fix CVE-2023-2878, you should update the secrets-store-csi-driver to version 1.3.3 or higher.

5

Where can I find more information about CVE-2023-2878?

You can find more information about CVE-2023-2878 on the official GitHub security advisory page and NVD.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203