-
Notifications
You must be signed in to change notification settings - Fork 42k
Closed
Labels
area/securitykind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.official-cve-feedIssues or PRs related to CVEs officially announced by Security Response Committee (SRC)Issues or PRs related to CVEs officially announced by Security Response Committee (SRC)priority/critical-urgentHighest priority. Must be actively worked on as someone's top priority right now.Highest priority. Must be actively worked on as someone's top priority right now.sig/cliCategorizes an issue or PR as relevant to SIG CLI.Categorizes an issue or PR as relevant to SIG CLI.
Milestone
Description
Is this a BUG REPORT or FEATURE REQUEST?: Bug
/kind bug
What happened:
kubectl cp :/some/remote/dir /some/local/dir
If the container returns a malformed tarfile with paths like:
'/some/remote/dir/../../../../tmp/foo' kubectl writes this to /tmp/foo instead of /some/local/dir/tmp/foo
What you expected to happen:
I expect kubectl to clean up the path and write to /some/local/dir/tmp/foo
Notes
Original credit to @hansmi (Michael Hanselmann) for originally reporting the bug.
Tracked as CVE-2018-1002100
warmchang
Metadata
Metadata
Assignees
Labels
area/securitykind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.official-cve-feedIssues or PRs related to CVEs officially announced by Security Response Committee (SRC)Issues or PRs related to CVEs officially announced by Security Response Committee (SRC)priority/critical-urgentHighest priority. Must be actively worked on as someone's top priority right now.Highest priority. Must be actively worked on as someone's top priority right now.sig/cliCategorizes an issue or PR as relevant to SIG CLI.Categorizes an issue or PR as relevant to SIG CLI.