kubectl cp allows symlink directory traversal (Kubernetes Kubernetes)

CVE-2019-11249
MEDIUM 4.8

At a glance

Source
NVD
EPSS
EPSS 3.75 % · percentile 90 ()
State
PUBLISHED
Published
Updated
Assigner
kubernetes
NVD status
Modified

Description

The kubectl cp command allows copying files between containers and the user machine. To copy files from a container, Kubernetes runs tar inside the container to create a tar archive, copies it over the network, and kubectl unpacks it on the user’s machine. If the tar binary in the container is malicious, it could run any code and output unexpected, malicious results. An attacker could use this to write files to any path on the user’s machine when kubectl cp is called, limited only by the system permissions of the local user. Kubernetes affected versions include versions prior to 1.13.9, versions prior to 1.14.5, versions prior to 1.15.2, and versions 1.1, 1.2, 1.4, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 1.10, 1.11, 1.12.

Weaknesses (CWE)

  • CWE-61 — UNIX Symbolic Link (Symlink) Following
  • CWE-22 — Improper Limitation of a Pathname to a Restricted Directory

References

Scores

VersionScoreVectorScored by
CVSS 3.0MEDIUM 4.8CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:Nkubernetes
CVSS 3.1MEDIUM 6.5CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:NNVD · nvd@nist.gov (Primary)
CVSS 3.0MEDIUM 4.8CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:NNVD · jordan@liggitt.net (Secondary)
CVSS 2.0MEDIUM 5.8AV:N/AC:M/Au:N/C:N/I:P/A:PNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Kubernetes · Kubernetesaffected prior to 1.13.9 ; affected prior to 1.14.5 ; affected prior to 1.15.2 ; affected 1.1 ; affected 1.2 ; affected 1.4

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD