Description
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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | perl | 5.24.1-3 | — |
| Debian 13 | perl | 5.24.1-3 | — |
| Debian 12 | perl | 5.24.1-3 | — |
| Debian 8 | perl | 5.20.2-3+deb8u7 | DSA-3873-1 |
| Debian 7 | perl | 5.14.2-21+deb7u5 | DLA-978-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | perl | 5.22.1-9ubuntu0.3 | USN-3625-1 |
| Ubuntu 14.04 LTS | perl | 5.18.2-2ubuntu1.4 | USN-3625-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP4 | perl | 5.26.1-150300.17.11.1 | SUSE-SU-2022:3271-1 |
| SLES 15 SP3 | perl | 5.26.1-150300.17.11.1 | SUSE-SU-2022:3271-1 |
| SLES 15 SP2 | perl | 5.26.1-150000.7.18.1 | SUSE-SU-2024:1630-1 |
| SLES 12 SP5 | perl-File-Path | 2.150000-8.3.1 | SUSE-SU-2021:0449-1 |
| SLES 12 SP3 | perl | 5.18.2-12.3.1 | SUSE-SU-2017:3092-1 |
Show 10 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP2 | perl | 5.18.2-12.3.1 | SUSE-SU-2017:3092-1 |
| SLES 11 SP4 | perl | 5.10.0-64.81.3.1 | SUSE-SU-2017:2951-1 |
| SLES for SAP 15 SP2 | perl | 5.26.1-150000.7.18.1 | SUSE-SU-2024:1630-1 |
| SLES for SAP 12 SP5 | perl-File-Path | 2.150000-8.3.1 | SUSE-SU-2021:0449-1 |
| SLES for SAP 12 SP3 | perl | 5.18.2-12.3.1 | SUSE-SU-2017:3092-1 |
| SLES for SAP 12 SP2 | perl | 5.18.2-12.3.1 | SUSE-SU-2017:3092-1 |
| SLES for SAP 11 SP4 | perl | 5.10.0-64.81.3.1 | SUSE-SU-2017:2951-1 |
| SLE Micro 5.2 | perl | 5.26.1-150300.17.11.1 | SUSE-SU-2022:3271-1 |
| SLE Micro 5.1 | perl | 5.26.1-150300.17.11.1 | SUSE-SU-2022:3271-1 |
| SLE HPC 15 SP2 | perl | 5.26.1-150000.7.18.1 | SUSE-SU-2024:1630-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | perl-File-Path | 2.180000-1.15 | openSUSE-SU-2024:13154-1 |
| openSUSE Leap 15.4 | perl | 5.26.1-150300.17.11.1 | SUSE-SU-2022:3271-1 |
| openSUSE Leap 15.3 | perl | 5.26.1-150300.17.11.1 | SUSE-SU-2022:3271-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap Micro 5.2 | perl | 5.26.1-150300.17.11.1 | SUSE-SU-2022:3271-1 |
Advisories 10
- USN-3625-1 perl vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- DLA-978-1 perl - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-3873-1 perl - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2017:2951-1 Security update for perl SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2017:3092-1 Security update for perl SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:1630-1 Security update for perl SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:3271-1 Security update for perl SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:13154-1 perl-File-Path-2.180000-1.15 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:0449-1 Security update for perl-File-Path SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2022-1439 Perl: Schwachstelle ermöglicht Privilegieneskalation BSI CERT-Bund (WID) · May 13, 2024
References
- http://cpansearch.perl.org/src/JKEENAN/File-Path-2.13/Changes
- USN-3625-2 vendor-advisory
- DSA-3873 vendor-advisory
- 99180 vdb-entry
- 1038610 vdb-entry
- GLSA-201709-12 vendor-advisory
- http://security.cucumberlinux.com/security/details.php?id=153
- https://rt.cpan.org/Ticket/Display.html?id=121951
- USN-3625-1 vendor-advisory