Before version 4.8.2, WordPress was vulnerable to a directory traversal attack during unzip operations in the ZipArchive and PclZip components.
https://www.debian.org/security/2017/dsa-3997
https://wpvulndb.com/vulnerabilities/8911
https://wordpress.org/news/2017/09/wordpress-4-8-2-security-and-maintenance-release/
https://core.trac.wordpress.org/changeset/41457