VDB
Sign up
MEDIUM5.0

GHSA-2575-pghm-6qqx

Kubernetes Unsafe Cacheing

Quick fix

GHSA-2575-pghm-6qqx — k8s.io/client-go: upgrade to the fixed version with the command below.

go get k8s.io/client-go@v1.12.9

Details

In Kubernetes v1.8.x-v1.14.x, schema info is cached by kubectl in the location specified by `--cache-dir` (defaulting to `$HOME/.kube/http-cache`), written with world-writeable permissions (`rw-rw-rw-`). If `--cache-dir` is specified and pointed at a different location accessible to other users/groups, the written files may be modified by other users/groups and disrupt the kubectl invocation.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/k8s.io/client-go
Introduced in: 1.8.0Fixed in: 1.12.9
Fixgo get k8s.io/client-go@v1.12.9

References