Race condition in the rmtree and remove_tree functions in the File-Path module before 2.13 for Perl allows attackers to set the mode on arbitrary files via vectors involving directory-permission loosening logic.
https://usn.ubuntu.com/3625-2/
https://usn.ubuntu.com/3625-1/
https://security.gentoo.org/glsa/201709-12
https://rt.cpan.org/Ticket/Display.html?id=121951
http://www.securitytracker.com/id/1038610
http://www.securityfocus.com/bid/99180
http://www.debian.org/security/2017/dsa-3873
http://security.cucumberlinux.com/security/details.php?id=153
http://cpansearch.perl.org/src/JKEENAN/File-Path-2.13/Changes