CVE-2018-15664

Impact:
Moderate
Public Date:
2019-05-23
CWE:
(CWE-22|CWE-367)
Bugzilla:
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.

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 versions 3.7 and below because for these versions docker was shipped as part of the release. For subsequent versions docker was shipped as part of RHEL.

CVSS v3 metrics

NOTE: The following CVSS v3 metrics and score provided are preliminary and subject to review.

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

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
Red Hat Enterprise Linux 7 docker Affected

Mitigation

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

External References

Last Modified