GHSA-gc2p-g4fg-29vh

Suggest an improvement
Source
https://github.com/advisories/GHSA-gc2p-g4fg-29vh
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-gc2p-g4fg-29vh/GHSA-gc2p-g4fg-29vh.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-gc2p-g4fg-29vh
Aliases
Published
2022-05-24T16:44:02Z
Modified
2025-05-05T16:41:57.914022Z
Severity
  • 8.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Kubernetes did not effectively clear service account credentials
Details

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()

Database specific
{
    "nvd_published_at": "2019-04-22T15:29:00Z",
    "severity": "HIGH",
    "github_reviewed_at": "2025-04-24T17:41:45Z",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-212",
        "CWE-271"
    ]
}
References

Affected packages

Go / k8s.io/kubernetes

Package

Name
k8s.io/kubernetes
View open source insights on deps.dev
Purl
pkg:golang/k8s.io/kubernetes

Affected ranges

Type
SEMVER
Events
Introduced
1.12.0
Fixed
1.12.5

Go / k8s.io/kubernetes

Package

Name
k8s.io/kubernetes
View open source insights on deps.dev
Purl
pkg:golang/k8s.io/kubernetes

Affected ranges

Type
SEMVER
Events
Introduced
1.13.0
Fixed
1.13.1