Amazon Linux AMI Security Advisory: ALAS-2019-1245
Advisory Release Date: 2019-07-25 18:46 Pacific
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. (CVE-2018-15664 )
Run yum update docker to update your system.