{"id":"CVE-2019-1002101","published":"2019-04-01T14:14:27Z","modified":"2024-09-16T20:46:49Z","title":"kubectl cp path traversal","vendor":"Kubernetes","product":"Kubernetes","tier":"tail","description":{"text":"The kubectl cp command allows copying files between containers and the user machine. To copy files from a container, Kubernetes creates a tar inside the container, 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. The untar function can both create and follow symbolic links. The issue is resolved in kubectl v1.11.9, v1.12.7, v1.13.5, and v1.14.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.4,"severity":"MEDIUM","version":"3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.12802,"percentile":0.96971,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/kubernetes/kubernetes/pull/75037","tags":["x_refsource_MISC"]},{"url":"http://www.securityfocus.com/bid/107652","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://access.redhat.com/errata/RHBA-2019:0620","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHBA-2019:0619","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHBA-2019:0636","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BPV2RE5RMOGUVP5WJMXKQJZUBBLAFZPZ/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"http://www.openwall.com/lists/oss-security/2019/06/21/1","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://www.openwall.com/lists/oss-security/2019/08/05/5","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QZB7E3DOZ5WDG46XAIU6K32CXHXPXB2F/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://www.twistlock.com/labs-blog/disclosing-directory-traversal-vulnerability-kubernetes-copy-cve-2019-1002101/","tags":["x_refsource_MISC"]}],"priority":{"score":28.9,"factors":[{"name":"EPSS percentile","points":19.39},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.48}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2019-04-03","earliestUrl":"https://github.com/brompwnie/CVE-2019-1002101-Helpers","repos":[{"name":"brompwnie/CVE-2019-1002101-Helpers","url":"https://github.com/brompwnie/CVE-2019-1002101-Helpers","stars":6,"created":"2019-04-03"}]},"first":{"date":"2019-04-03","source":"PoC-in-GitHub","url":"https://github.com/brompwnie/CVE-2019-1002101-Helpers"},"provenance":"source"},"vendorSlug":"kubernetes","affectedVersions":[{"vendor":"Kubernetes","product":"Kubernetes","versions":["1.1-1.10",">= 1.11, < 1.11.9",">= 1.12, < 1.12.7",">= 1.13, < 1.13.5"]}],"affected":[{"ecosystem":"Go","package":"k8s.io/kubernetes","vulnerableRanges":["<1.11.9",">=1.12.0, <1.12.7",">=1.13.0, <1.13.5"],"patched":["1.11.9","1.12.7","1.13.5"],"from":["GHSA-34jx-wx69-9x8v","GO-2022-0782"],"provenance":"source"}],"summary":{"text":"The kubectl cp command in Kubernetes unpacks a tar archive created inside a container onto the user's machine, and a flaw in that unpacking step lets a malicious tar binary in the container write files to arbitrary paths on the local machine. An attacker who can supply a malicious tar binary inside a container can write files anywhere the local user has permissions, but this requires the victim to run kubectl cp against that container, along with high-privilege conditions as reflected in the attack vector, namely network access, a privileged position, and user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:39:44Z"},"euvd":{"id":"EUVD-2022-0775","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2018-1002101","published":"2018-12-05","fixed":"1.11.2","kev":false},{"cve":"CVE-2019-11243","published":"2019-04-22","fixed":"1.13.1","kev":false},{"cve":"CVE-2019-1002100","published":"2019-04-01","fixed":"1.13.4","kev":false,"link":{"from":"CVE-2019-1002100","to":"CVE-2019-1002101","relation":"successor","confidence":"medium","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:k8s.io/kubernetes","fromFixed":"1.11.8","toFixed":"1.11.9","daysApart":0},{"kind":"similar","provenance":"machine","score":0.21,"basis":"same product + description similarity"}]}},{"cve":"CVE-2019-1002101","published":"2019-04-01","fixed":"1.13.5","kev":false},{"cve":"CVE-2019-11245","published":"2019-08-29","fixed":"1.14.3","kev":false,"link":{"from":"CVE-2019-1002101","to":"CVE-2019-11245","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:k8s.io/kubernetes","fromFixed":"1.13.5","toFixed":"1.13.7","daysApart":150}]}},{"cve":"CVE-2019-11250","published":"2019-08-29","fixed":"1.16.0-beta.1","kev":false},{"cve":"CVE-2019-11251","published":"2020-02-03","fixed":"1.16.0","kev":false}],"package":"Go:k8s.io/kubernetes"}}