Kubernetes did not effectively clear service account credentials
High severity
GitHub Reviewed
Published
May 24, 2022
to the GitHub Advisory Database
•
Updated Apr 24, 2025
Package
Affected versions
>= 1.12.0, < 1.12.5
>= 1.13.0, < 1.13.1
Patched versions
1.12.5
1.13.1
Description
Published by the National Vulnerability Database
Apr 22, 2019
Published to the GitHub Advisory Database
May 24, 2022
Reviewed
Apr 24, 2025
Last updated
Apr 24, 2025
In Kubernetes v1.12.0-v1.12.4 and v1.13.0, the rest.AnonymousClientConfig() method returns a copy of the provided config, with credentials removed (bearer token, username/password, and client certificate/key data). In the affected versions, rest.AnonymousClientConfig() did not effectively clear service account credentials loaded using rest.InClusterConfig()
References