cve.bz

CVE-2018-15664 docker docker: Race Condition

7.5 highExploit referenceEPSS 3.4%

High (7.5) in docker docker. EPSS 3.4% estimated probability of exploitation activity in the next 30 days.

On this page
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).

Severity

CVSS 3.0

7.5 high
CVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
EPSS
3.4% (unchanged from 3.4% a week ago; 3.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 89th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization (Race Condition)
OWASP Top 10
A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-15664 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-15664?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-15664?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-15664 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
docker:docker17.06.0-ce
docker:docker17.06.0-ce:rc1
docker:docker17.06.0-ce:rc2
docker:docker17.06.0-ce:rc3
docker:docker17.06.0-ce:rc4
docker:docker17.06.0-ce:rc5
docker:docker17.06.1-ce
docker:docker17.06.1-ce:rc1
docker:docker17.06.1-ce:rc2
docker:docker17.06.1-ce:rc3
docker:docker17.06.1-ce:rc4
docker:docker17.06.2-ce
docker:docker17.06.2-ce:rc1
docker:docker17.07.0-ce
docker:docker17.07.0-ce:rc1
docker:docker17.07.0-ce:rc2
docker:docker17.07.0-ce:rc3
docker:docker17.07.0-ce:rc4
docker:docker17.09.0-ce
docker:docker17.09.0-ce:rc1
docker:docker17.09.0-ce:rc2
docker:docker17.09.0-ce:rc3
docker:docker17.09.1-ce
docker:docker17.09.1-ce-:rc1
docker:docker17.10.0-ce
docker:docker17.10.0-ce:rc1
docker:docker17.10.0-ce:rc2
docker:docker17.11.0-ce
docker:docker17.11.0-ce:rc1
docker:docker17.11.0-ce:rc2
docker:docker17.11.0-ce:rc3
docker:docker17.11.0-ce:rc4
docker:docker17.12.0-ce
docker:docker17.12.0-ce:rc1
docker:docker17.12.0-ce:rc2
docker:docker17.12.0-ce:rc3
docker:docker17.12.0-ce:rc4
docker:docker17.12.1-ce
docker:docker17.12.1-ce:rc1
docker:docker17.12.1-ce:rc2
docker:docker18.01.0-ce
docker:docker18.01.0-ce:rc1
docker:docker18.02.0-ce
docker:docker18.02.0-ce:rc1
docker:docker18.02.0-ce:rc2
docker:docker18.03.0-ce
docker:docker18.03.0-ce:rc1
docker:docker18.03.0-ce:rc2
docker:docker18.03.0-ce:rc3
docker:docker18.03.0-ce:rc4
docker:docker18.03.1-ce
docker:docker18.03.1-ce:rc1
docker:docker18.03.1-ce:rc2
docker:docker18.04.0-ce
docker:docker18.04.0-ce:rc1
docker:docker18.04.0-ce:rc2
docker:docker18.05.0-ce
docker:docker18.05.0-ce:rc1
docker:docker18.06.0-ce
docker:docker18.06.0-ce:rc1
docker:docker18.06.0-ce:rc2
docker:docker18.06.0-ce:rc3
docker:docker18.06.1-ce:rc1
docker:docker18.06.1-ce:rc2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14docker.io18.09.1+dfsg1-7.1DEBIAN-CVE-2018-15664
Ubuntu16.04:LTSdocker.io18.09.7-0ubuntu1~16.04.4UBUNTU-CVE-2018-15664 USN-4048-1
Ubuntu18.04:LTSdocker.io18.09.7-0ubuntu1~18.04.3UBUNTU-CVE-2018-15664 USN-4048-1
Red Hatrhel_extras_other:7docker, docker-client, docker-common and 6 more2:1.13.1-102.git7f2769b.el7RHSA-2019:1910
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 11 moredocker-stable24.0.9_ce-150000.1.25.1SUSE-SU-2025:03545-1
SUSELinux Enterprise Module for Basesystem 15 SP1libcontainers-common20190401-3.3.5SUSE-SU-2019:2223-1
SUSELinux Enterprise Module for Containers 12docker18.09.6_ce-98.40.1SUSE-SU-2019:1514-1
SUSELinux Enterprise Module for Containers 15, Linux Enterprise Module for Containers 15 SP1docker18.09.6_ce-6.20.3SUSE-SU-2019:1562-1
SUSELinux Enterprise Module for Containers 15 SP1fuse-overlayfs0.4.1-3.3.8SUSE-SU-2019:2223-1
SUSELinux Enterprise Module for Containers 15 SP1fuse33.6.1-3.3.8SUSE-SU-2019:2223-1
SUSELinux Enterprise Module for Containers 15 SP1podman1.4.4-4.8.1SUSE-SU-2019:2223-1
SUSELinux Enterprise Module for Containers 15 SP1slirp4netns0.3.0-3.3.3SUSE-SU-2019:2223-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5docker-stable24.0.9_ce-1.20.1SUSE-SU-2025:03540-1
openSUSELeap 15.0, Leap 15.1docker18.09.6_ce-lp151.2.6.1openSUSE-SU-2019:1621-1
openSUSELeap 15.1fuse-overlayfs0.4.1-lp151.2.1openSUSE-SU-2019:2044-1
openSUSELeap 15.1fuse33.6.1-lp151.2.1openSUSE-SU-2019:2044-1
openSUSELeap 15.1libcontainers-common20190401-lp151.2.3.1openSUSE-SU-2019:2044-1
openSUSELeap 15.1podman1.4.4-lp151.3.3.1openSUSE-SU-2019:2044-1
openSUSELeap 15.1slirp4netns0.3.0-lp151.2.3.1openSUSE-SU-2019:2044-1
openSUSELeap 15.6docker-stable24.0.9_ce-150000.1.25.1SUSE-SU-2025:03545-1
openSUSETumbleweeddocker20.10.6_ce-2.1openSUSE-SU-2024:10722-1
openSUSETumbleweeddocker-stable24.0.9_ce-15.1openSUSE-SU-2025:15589-1
openSUSETumbleweedlibcontainers-common20210626-5.1openSUSE-SU-2024:10931-1
Alpinev3.9, v3.11docker18.09.7ALPINE-CVE-2018-15664
Alpinev3.10, v3.12, v3.13 and 11 moredocker18.09.7-r0ALPINE-CVE-2018-15664

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

All versions of docker prior to the fix are vulnerable to this flaw.

For clarity, in the "Affected Packages State" table, we only include OpenShift Container Platform (OCP) versions 3.7 and below because for these versions docker was shipped as part of the release. For all subsequent versions of OCP until 3.11, docker is installed from the RHEL Extras repository meaning clusters will be vulnerable to the flaw unless an updated docker package has been applied.

Red Hat Fuse provides only the Docker client library and is not affected by this vulnerability.

Red Hat's mitigation

Stopping a container prior to running "docker cp" removes the TOCTOU vulnerability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7 Extrasdocker-2:1.13.1-102.git7f2769b.el7Fixed 2019-07-29RHSA-2019:1910
Red Hat Fuse 7dockerNot affected
Red Hat OpenShift Container Platform 3.4dockerOut of support scope
Red Hat OpenShift Container Platform 3.5dockerOut of support scope
Red Hat OpenShift Container Platform 3.6dockerWill not fix
Red Hat OpenShift Container Platform 3.7dockerWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-15664.

Attack patterns (CAPEC)

  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON