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()
{
"nvd_published_at": "2019-04-22T15:29:00Z",
"github_reviewed_at": "2025-04-24T17:41:45Z",
"cwe_ids": [
"CWE-212",
"CWE-271"
],
"severity": "HIGH",
"github_reviewed": true
}