What’s Vulnerable › Vulnerabilities
CVE-2017-6512
- Severity: medium (CVSS 5.9 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 2.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2017-06-01 · updated 2026-06-17
- Weakness: CWE-362
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.
Affected products
- Canonical Ubuntu Linux: 12.04, 14.04, 16.04, 17.10
- Debian Linux: 8.0, 9.0
- File::Path Project File::Path: before 2.13 — fixed in 2.13
How to fix
Upgrade to a fixed version: File::Path Project File::Path 2.13. Check the vendor advisory for mitigations.
References
- http://cpansearch.perl.org/src/JKEENAN/File-Path-2.13/Changes
- http://security.cucumberlinux.com/security/details.php?id=153
- http://www.debian.org/security/2017/dsa-3873
- http://www.securityfocus.com/bid/99180
- http://www.securitytracker.com/id/1038610
- https://rt.cpan.org/Ticket/Display.html?id=121951
- https://security.gentoo.org/glsa/201709-12
- https://usn.ubuntu.com/3625-1/
- https://usn.ubuntu.com/3625-2/
- http://cpansearch.perl.org/src/JKEENAN/File-Path-2.13/Changes
- http://security.cucumberlinux.com/security/details.php?id=153
- http://www.debian.org/security/2017/dsa-3873
Get alerted when CVE-2017-6512 or the next vulnerability affects your stack