    def fetch_file(self, in_path, out_path):
        ''' fetch a file from jail to local '''

        vvv("FETCH %s TO %s" % (in_path, out_path), host=self.jail)


        p = self._buffered_exec_command('dd if=%s bs=%s' % (in_path, BUFSIZE), None)

        with open(out_path, 'wb+') as out_file:
            try:
                for chunk in p.stdout.read(BUFSIZE):
                    out_file.write(chunk)
            except:
                traceback.print_exc()
                raise errors.AnsibleError("failed to transfer file to %s" % out_path)
            stdout, stderr = p.communicate()
            if p.returncode != 0:
                raise errors.AnsibleError("failed to transfer file to %s:\n%s\n%s" % (out_path, stdout, stderr))
The software attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.