Public Date:
1714722: CVE-2018-15664 docker: symlink-exchange race attacks in docker cp
A flaw was discovered in the API endpoint behind the 'docker cp' command. The endpoint is vulnerable to a Time Of Check to Time Of Use (TOCTOU) vulnerability in the way it handles symbolic links inside a container. An attacker who has compromised an existing container can cause arbitrary files on the host filesystem to be read/written when an administrator tries to copy a file from/to the container.

Find out more about CVE-2018-15664 from the MITRE CVE dictionary dictionary and NIST NVD.


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.

CVSS v3 metrics

CVSS3 Base Score 7.5
CVSS3 Base Metrics CVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
Attack Vector Local
Attack Complexity High
Privileges Required Low
User Interaction Required
Scope Changed
Confidentiality High
Integrity Impact High
Availability Impact High

Red Hat Security Errata

Platform Errata Release Date
Red Hat Enterprise Linux 7 Extras (docker) RHSA-2019:1910 2019-07-29

Affected Packages State

Platform Package State
Red Hat OpenShift Container Platform 3.7 docker Affected
Red Hat OpenShift Container Platform 3.6 docker Affected
Red Hat OpenShift Container Platform 3.5 docker Out of support scope
Red Hat OpenShift Container Platform 3.4 docker Out of support scope
Red Hat JBoss Fuse 7 docker Under investigation
Unless explicitly stated as not affected, all previous versions of packages in any minor update stream of a product listed here should be assumed vulnerable, although may not have been subject to full analysis.


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

External References

Last Modified