Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker: CVE-2018-15664 #1965

Closed
3 tasks
MingcongBai opened this issue Aug 21, 2019 · 1 comment
Closed
3 tasks

docker: CVE-2018-15664 #1965

MingcongBai opened this issue Aug 21, 2019 · 1 comment
Labels
security Topic/issue involves a security issue/fixed

Comments

@MingcongBai
Copy link
Member

CVE IDs: CVE-2018-15664

Descriptions:

The basic premise of this attack is that FollowSymlinkInScope suffers from a fairly fundamental TOCTOU attack. The purpose of FollowSymlinkInScope is to take a given path and safely resolve it as though the process was inside the container. After the full path has been resolved, the resolved path is passed around a bit and then operated on a bit later (in the case of 'docker cp' it is opened when creating the archive that is streamed to the client). If an attacker can add a symlink component to the path after the resolution but before it is operated on, then you could end up resolving the symlink path component on the host as root. In the case of 'docker cp' this gives you read and write access to any path on the host.

Patches: moby/moby#39252

PoC(s): https://bugzilla.suse.com/show_bug.cgi?id=1096726

Architectural progress:

  • AMD64 amd64
  • AArch64 arm64
  • ARMv7 armel
@MingcongBai MingcongBai added security Topic/issue involves a security issue/fixed to-stable labels Aug 21, 2019
@MingcongBai MingcongBai added this to the Summer 2019 milestone Aug 21, 2019
@l2dy l2dy changed the title docker CVE-2018-15664 docker: CVE-2018-15664 Sep 7, 2019
@MingcongBai
Copy link
Member Author

Duplication with #1891. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
security Topic/issue involves a security issue/fixed
Projects
None yet
Development

No branches or pull requests

1 participant