CVE-2018-15664 json
In Docker through 18.06.1-ce-rc2, the API endpoints behind the 'docker cp' command are vulnerable to a symlink-exchange attack with Directo…
published 2019-05-23 7 y ago modified 2026-06-17 4 mo ago also EUVD-2018-7535
- cvss
- 7.5
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.4%
- EPSS 3.4% chance of exploitation in 30 days, percentile 89%
- public exploits
- 0
- none known
Summary
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).
Patch / fix
- docker.io Debian 14, Debian 13, Debian 12 18.09.1+dfsg1-7.1
debian advisories DEBIAN-CVE-2018-15664
- docker.io Ubuntu 16.04 LTS 18.09.7-0ubuntu1~16.04.4
- docker.io Ubuntu 18.04 LTS 18.09.7-0ubuntu1~18.04.3
ubuntu advisories UBUNTU-CVE-2018-15664
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- docker RHEL 7 EXTRAS_OTHER 2:1.13.1-102.git7f2769b.el7
- docker-client RHEL 7 EXTRAS_OTHER 2:1.13.1-102.git7f2769b.el7
- docker-common RHEL 7 EXTRAS_OTHER 2:1.13.1-102.git7f2769b.el7
- docker-logrotate RHEL 7 EXTRAS_OTHER 2:1.13.1-102.git7f2769b.el7
- docker-lvm-plugin RHEL 7 EXTRAS_OTHER 2:1.13.1-102.git7f2769b.el7
- docker-v1.10-migrator RHEL 7 EXTRAS_OTHER 2:1.13.1-102.git7f2769b.el7
- docker-novolume-plugin RHEL 7 EXTRAS_OTHER 2:1.13.1-102.git7f2769b.el7
- docker-rhel-push-plugin RHEL 7 EXTRAS_OTHER 2:1.13.1-102.git7f2769b.el7
red hat advisories RHSA-2019:1910
- docker-stable SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES for SAP 15 SP3 +12 more 24.0.9_ce-150000.1.25.1
- slirp4netns SLE Module for Containers 15 SP1 0.3.0-3.3.3
- libcontainers-common SLE Module for Basesystem 15 SP1 20190401-3.3.5
- fuse3 SLE Module for Containers 15 SP1 3.6.1-3.3.8
- podman SLE Module for Containers 15 SP1 1.4.4-4.8.1
- fuse-overlayfs SLE Module for Containers 15 SP1 0.4.1-3.3.8
- docker SLE Module for Containers 15 SP1, SLE Module for Containers 15 18.09.6_ce-6.20.3
- docker SLE Module for Containers 12 18.09.6_ce-98.40.1
suse advisories SUSE-SU-2025:03545-1SUSE-SU-2025:03540-1SUSE-SU-2019:2223-1SUSE-SU-2019:1562-1SUSE-SU-2019:1514-1
- docker-stable openSUSE Tumbleweed 24.0.9_ce-15.1
- docker openSUSE Tumbleweed 20.10.6_ce-2.1
- libcontainers-common openSUSE Tumbleweed 20210626-5.1
- slirp4netns openSUSE Leap 15.1 0.3.0-lp151.2.3.1
- libcontainers-common openSUSE Leap 15.1 20190401-lp151.2.3.1
- fuse3 openSUSE Leap 15.1 3.6.1-lp151.2.1
- podman openSUSE Leap 15.1 1.4.4-lp151.3.3.1
- fuse-overlayfs openSUSE Leap 15.1 0.4.1-lp151.2.1
opensuse advisories openSUSE-SU-2025:15589-1openSUSE-SU-2024:10722-1openSUSE-SU-2024:10931-1openSUSE-SU-2019:2044-1openSUSE-SU-2019:1621-1
- docker Alpine 3.24, Alpine 3.23, Alpine 3.22 +11 more 18.09.7-r0
- docker Alpine 3.11, Alpine 3.9 18.09.7
alpine advisories ALPINE-CVE-2018-15664
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- docker Arch Linux 1:18.09.7-1
arch linux advisories AVG-968
- github.com/moby/moby#39252 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2018-15664 updated cvss 7.5
docker: symlink-exchange race attacks in docker cp
-
Red Hat OpenShift Container Platform 3.4 docker, docker-client, docker-common, docker-logrotate, docker-unit-test, docker-lvm-plugin, +3 more Red Hat OpenShift Container Platform 3.5 docker, docker-client, docker-common, docker-logrotate, docker-unit-test, docker-lvm-plugin, +3 more Red Hat OpenShift Container Platform 3.6 docker, docker-client, docker-common, docker-logrotate, docker-unit-test, docker-lvm-plugin, +3 more Red Hat OpenShift Container Platform 3.7 docker, docker-client, docker-common, docker-logrotate, docker-unit-test, docker-lvm-plugin, +3 moreaffected: workaround, no fix planned “Stopping a container prior to running "docker cp" removes the TOCTOU vulnerability.”
-
Red Hat Enterprise Linux 7 Extras docker 1.13.1-102.git7f2769b.el7, docker-client 1.13.1-102.git7f2769b.el7, docker-common 1.13.1-102.git7f2769b.el7, docker-logrotate 1.13.1-102.git7f2769b.el7, docker-lvm-plugin 1.13.1-102.git7f2769b.el7, docker-v1.10-migrator 1.13.1-102.git7f2769b.el7, +2 morefixed: vendor fix “Stopping a container prior to running "docker cp" removes the TOCTOU vulnerability.” RHSA-2019:1910
-
Red Hat Fuse 7 dockernot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
3.43% chance of exploitation in the next 30 days, higher than 89% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- bugzilla.suse.com https://bugzilla.suse.com/show_bug.cgi?id=1096726 referenced PoC, tagged "exploit" by a source, unverified
- openwall.com http://www.openwall.com/lists/oss-security/2019/05/28/1 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 7.5 | CVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H |
| NVD | 2.0 | 6.2 | AV:L/AC:H/Au:N/C:C/I:C/A:C |
Classification
- Weakness
-
- CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization
- Technology feeds
References
-
github.com
/moby/moby/pull/39252
issue-tracking, third-party-advisory
-
bugzilla.suse.com
/show_bug.cgi?id=1096726
exploit, issue-tracking, third-party-advisory
-
openwall.com
/lists/oss-security/2019/05/28/1
mailing-list, exploit, third-party-advisory
-
lists.opensuse.org
/opensuse-security-announce/2019-06/msg00066.html
vendor-advisory
-
usn.ubuntu.com
/4048-1/
vendor-advisory
-
access.redhat.com
/errata/RHSA-2019:1910
vendor-advisory
-
lists.opensuse.org
/opensuse-security-announce/2019-09/msg00001.html
vendor-advisory
-
securityfocus.com
/bid/108507
vdb-entry, third-party-advisory
- portal.msrc.microsoft.com /en-US/security-guidance/advisory/CVE-2018-15664
-
openwall.com
/lists/oss-security/2019/08/21/1
mailing-list
-
access.redhat.com
/security/cve/cve-2018-15664
third-party-advisory
Sources
- CVE List CVE-2018-15664
- NVD CVE-2018-15664
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.