CVE-2018-15664
In Docker through 18.06.1-ce-rc2, the API endpoints behind the 'docker cp' command are vulnerable to a symlink-exchange attack with Directory Traversal, giving attackers arbitrary read-write access to the host filesystem with root privileges, because daemon/archive.go does not do archive operations on a frozen filesystem (or from within a chroot).
What to do
Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 18.04 | docker.io | Fixed | 18.09.7-0ubuntu1~18.04.3 | UBUNTU-CVE-2018-15664 |
| Ubuntu 16.04 | docker.io | Fixed | 18.09.7-0ubuntu1~16.04.4 | UBUNTU-CVE-2018-15664 |
| Ubuntu 14.04 | docker.io | Fix pending | ||
| Debian 14 | docker.io | Fixed | 18.09.1+dfsg1-7.1 | DEBIAN-CVE-2018-15664 |
| Debian 13 | docker.io | Fixed | 18.09.1+dfsg1-7.1 | DEBIAN-CVE-2018-15664 |
| Debian 12 | docker.io | Fixed | 18.09.1+dfsg1-7.1 | DEBIAN-CVE-2018-15664 |
| Alpine Linux 3.24 | docker | Fixed | 18.09.7-r0 | ALPINE-CVE-2018-15664 |
| Alpine Linux 3.23 | docker | Fixed | 18.09.7-r0 | ALPINE-CVE-2018-15664 |
| Alpine Linux 3.22 | docker | Fixed | 18.09.7-r0 | ALPINE-CVE-2018-15664 |
| Alpine Linux 3.21 | docker | Fixed | 18.09.7-r0 | ALPINE-CVE-2018-15664 |
| Alpine Linux 3.20 | docker | Fixed | 18.09.7-r0 | ALPINE-CVE-2018-15664 |
| Alpine Linux 3.19 | docker | Fixed | 18.09.7-r0 | ALPINE-CVE-2018-15664 |
| Alpine Linux 3.18 | docker | Fixed | 18.09.7-r0 | ALPINE-CVE-2018-15664 |
| Alpine Linux 3.17 | docker | Fixed | 18.09.7-r0 | ALPINE-CVE-2018-15664 |
| Alpine Linux 3.16 | docker | Fixed | 18.09.7-r0 | ALPINE-CVE-2018-15664 |
| Alpine Linux 3.15 | docker | Fixed | 18.09.7-r0 | ALPINE-CVE-2018-15664 |
| Alpine Linux 3.14 | docker | Fixed | 18.09.7-r0 | ALPINE-CVE-2018-15664 |
| Alpine Linux 3.13 | docker | Fixed | 18.09.7-r0 | ALPINE-CVE-2018-15664 |
| Alpine Linux 3.12 | docker | Fixed | 18.09.7-r0 | ALPINE-CVE-2018-15664 |
| Alpine Linux 3.11 | docker | Fixed | 18.09.7 | ALPINE-CVE-2018-15664 |
| Alpine Linux 3.10 | docker | Fixed | 18.09.7-r0 | ALPINE-CVE-2018-15664 |
| Alpine Linux 3.9 | docker | Fixed | 18.09.7 | ALPINE-CVE-2018-15664 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00066.html (vendor-advisory)
- https://usn.ubuntu.com/4048-1/ (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2019:1910 (vendor-advisory)
- http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00001.html (vendor-advisory)
References
- https://bugzilla.suse.com/show_bug.cgi?id=1096726
- https://github.com/moby/moby/pull/39252
- http://www.openwall.com/lists/oss-security/2019/05/28/1
- http://www.securityfocus.com/bid/108507
- http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00066.html
- https://usn.ubuntu.com/4048-1/
- https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2018-15664
- https://access.redhat.com/errata/RHSA-2019:1910
- http://www.openwall.com/lists/oss-security/2019/08/21/1
- http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00001.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.