title: kubectl creates world-writeable cached schema files
description: 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.
problem types: CWE-524 Information Exposure Through Caching
affected:
{
product: Kubernetes
vendor: Kubernetes
versions:
lessThan: v1.8*, status: affected, version: v1.8.0, versionType: custom
lessThan: v1.9*, status: affected, version: v1.9.0, versionType: custom
lessThan: v1.10*, status: affected, version: v1.10.0, versionType: custom
lessThan: v1.11*, status: affected, version: v1.11.0, versionType: custom
lessThan: v1.12*, status: affected, version: v1.12.0, versionType: custom
lessThan: v1.13*, status: affected, version: v1.13.0, versionType: custom
lessThan: v1.14*, status: affected, version: v1.14.0, versionType: custom
}
metrics:
cvssV3_0: [
attackComplexity: HIGH
attackVector: LOCAL
availabilityImpact: NONE
baseScore: 3.3
baseSeverity: LOW
confidentialityImpact: LOW
integrityImpact: LOW
privilegesRequired: LOW
scope: UNCHANGED
userInteraction: REQUIRED
vectorString: CVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N
version: 3.0
]
workarounds: Use the default --http-cache location in the $HOME directory or point it at a directory that is only accessible to desired users/groups.