Information Exposure Affecting sigs.k8s.io/secrets-store-csi-driver/pkg/secrets-store package, versions <1.3.3


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.05% (17th percentile)

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.

How 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"

References

CVSS Scores

version 3.1
Expand this section

Snyk

6.5 medium
  • Attack Vector (AV)
    Local
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    Low
  • User Interaction (UI)
    None
  • Scope (S)
    Changed
  • Confidentiality (C)
    High
  • Integrity (I)
    None
  • Availability (A)
    None
Expand this section

NVD

5.5 medium
Expand this section

Red Hat

6.5 medium