Security Advisories (2)
CVE-2017-6512 (2017-05-02)

Race condition in the rmtree and remove_tree functions allows attackers to set the mode on arbitrary files via vectors involving directory-permission loosening logic.

CVE-2008-5302 (2008-12-01)

Race condition in the rmtree function in File::Path 1.08 and 2.07 (lib/File/Path.pm) in Perl 5.8.8 and 5.10.0 allows local users to create arbitrary setuid binaries via a symlink attack, a different vulnerability than CVE-2005-0448, CVE-2004-0452, and CVE-2008-2827. NOTE: this is a regression error related to CVE-2005-0448. It is different from CVE-2008-5303 due to affected versions.

Changes for version 2.07 - 2008-11-09

  • Another VMS test tweak from Craig and additional improvements from Gisle.

Changes for version 2.06_08 - 2008-11-05

  • More documentation tweaks from Gisle Aas.
  • VMS tweaks courtesy of Craig A. Berry (cpan #40512).

Changes for version 2.06_07 - 2008-10-29

  • Silence 'uninitialized warning' reported in #36615.
  • Fix $Force_Writeable issue reported in #36982 (see also http://bugs.debian.org/487319).
  • Code style improvements and documentation improvements from Gisle Aas.

Changes for version 2.06_06 - 2008-10-05

  • Documentation improvements, no code changes.

Changes for version 2.06_05 - 2008-10-02

  • Introduce make_path() and rm_tree() API extension.
  • Remove problematic test revealed by Matt Kraal on QNX (see http://nntp.perl.org/group/perl.perl5.porters/140187)

Changes for version 2.06_04 - 2008-05-13

  • Can't use \S+ if a directory name contains a space (which it will may do on Windows (the continuing saga of CPAN #35708)).

Changes for version 2.06_03 - 2008-05-12

  • ancestor removal test getting slashed up on Windows (see CPAN #35708).

Changes for version 2.06_02 - 2008-05-12

  • Problem on Windows where c:\path\to\dir was not considered to be underneath C:/Path/To (issues of directory separators and case sensitivity). As reported in smoke report http://www.nntp.perl.org/group/perl.cpan.testers/2008/05/msg1435813.html

Changes for version 2.06_01 - 2008-05-10

  • Close directory handle in t/Path.t with closedir (close is close but incorrect). Problem identified with Strawberry Perl.

Modules

Create or remove directory trees