Kubernetes Unsafe Cacheing
Moderate severity
GitHub Reviewed
Published
Feb 15, 2022
to the GitHub Advisory Database
•
Updated Sep 18, 2023
Description
Reviewed
May 7, 2021
Published to the GitHub Advisory Database
Feb 15, 2022
Last updated
Sep 18, 2023
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.References