Every CVE Search/ Get API key

CVE-2017-6512

Race condition in the rmtree and remove_tree functions in the File-Path module before 2.13 for...

5.9 MediumFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
High
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
High
Availability
None

Exploit likelihood

2.36%Up 0.3 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 5.9

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.

Record
CVE-2017-6512
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
CVSS 2.0
4.3 MediumAV:N/AC:M/Au:N/C:N/I:P/A:N
Weakness
CWE-362
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2017-6512
Updated
2026-11-02
EUVDEUVD-2017-15568 No score

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.

Record
EUVD-2017-15568
Updated
2026-11-03
GitHub AdvisoriesGHSA-wf3v-xjg6-86hx 5.9

Race condition in the rmtree and remove_tree functions in the File-Path module before 2.13 for...

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.

Record
GHSA-wf3v-xjg6-86hx
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Weakness
CWE-362
Updated
2026-11-02
OSV 5.9

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.

Record
CVE-2017-6512
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Updated
2026-11-02
OSVDEBIAN-CVE-2017-6512 5.9

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.

Record
DEBIAN-CVE-2017-6512
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Updated
2026-11-02
Show 9 moreShow less
OSVUBUNTU-CVE-2017-6512 5.9

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.

Record
UBUNTU-CVE-2017-6512
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
CVSS 3.0
5.9 MediumCVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Updated
2026-11-02
OSVMGASA-2018-0047 No score

Updated perl packages fix security vulnerability

John Lightsey and Todd Rinaldo reported that the opportunistic loading of optional modules can make many programs unintentionally load code from the current working directory (which might be changed to another directory without the user realising) and potentially leading to privilege escalation (CVE-2016-1238).

The cPanel Security Team reported a time of check to time of use (TOCTTOU) race condition flaw in File::Path, a core module from Perl to create or remove directory trees. An attacker can take advantage of this flaw to set the mode on an attacker-chosen file to a attacker-chosen value (CVE-2017-6512).

Jakub Wilk reported a heap buffer overflow flaw in the regular expression compiler, allowing a remote attacker to cause a denial of service via a specially crafted regular expression with the case-insensitive modifier (CVE-2017-12837).

Jakub Wilk reported a buffer over-read flaw in the regular expression parser, allowing a remote attacker to cause a denial of service or information leak (CVE-2017-12883).

The perl-libintl-perl, perl-MIME-Charset, perl-MIME-EncWords, perl-Module-Build, perl-Sys-Syslog, and perl-Unicode-LineBreak packages have been patched and the perl-Module-Load-Conditional and perl-Net-DNS packages have been updated to fix CVE-2016-1238 as well.

The perl-File-Path package has also been patched to fix CVE-2017-6512.

Record
MGASA-2018-0047
Updated
2026-11-02
OSVopenSUSE-SU-2024:13154-1 No score

perl-File-Path-2.180000-1.15 on GA media

These are all security issues fixed in the perl-File-Path-2.180000-1.15 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:13154-1
Updated
2026-11-02
OSVSUSE-SU-2017:2951-1 No score

Security update for perl

This update for perl fixes the following issues:

Security issue fixed:

  • CVE-2017-6512: 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. (bnc#1047178)

Bug fixes:

  • reformat baselibs.conf as source validator workaround
Record
SUSE-SU-2017:2951-1
Updated
2026-11-02
OSVSUSE-SU-2017:3092-1 No score

Security update for perl

This update for perl fixes the following issues:

Security issues fixed:

  • CVE-2017-12837: Heap-based buffer overflow in the S_regatom function in regcomp.c in Perl 5 before 5.24.3-RC1 and 5.26.x before 5.26.1-RC1 allows remote attackers to cause a denial of service (out-of-bounds write) via a regular expression with a '\N{}' escape and the case-insensitive modifier. (bnc#1057724)
  • CVE-2017-12883: Buffer overflow in the S_grok_bslash_N function in regcomp.c in Perl 5 before 5.24.3-RC1 and 5.26.x before 5.26.1-RC1 allows remote attackers to disclose sensitive information or cause a denial of service (application crash) via a crafted regular expression with an invalid '\N{U+...}' escape. (bnc#1057721)
  • CVE-2017-6512: 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. (bnc#1047178)

Bug fixes:

  • backport set_capture_string changes from upstream (bsc#999735)
  • reformat baselibs.conf as source validator workaround
Record
SUSE-SU-2017:3092-1
Updated
2026-11-02
OSVSUSE-SU-2021:0449-1 No score

Security update for perl-File-Path

This update for perl-File-Path fixes the following issues:

  • Provide File::Path version 2.15 to SLE-12-SP5 (jsc#SLE-17088, jsc#ECO-3050)
  • CVE-2017-6512: fix a race condition in the File-Path module for Perl.
Record
SUSE-SU-2021:0449-1
Updated
2026-11-02
OSVSUSE-SU-2022:3271-1 No score

Security update for perl

This update for perl fixes the following issues:

  • CVE-2017-6512: Fixed File::Path rmtree/remove_tree race condition (bsc#1047178).
Record
SUSE-SU-2022:3271-1
Updated
2026-11-02
OSVSUSE-SU-2024:1630-1 No score

Security update for perl

This update for perl fixes the following issues:

Security issues fixed:

  • CVE-2018-6913: Fixed space calculation issues in pp_pack.c (bsc#1082216)
  • CVE-2018-6798: Fixed heap buffer overflow in regexec.c (bsc#1082233)
  • CVE-2023-31484: Enabled TLS certificate verification in CPAN (bsc#1210999)
  • CVE-2017-6512: Fixed File::Path rmtree/remove_tree race condition (bsc#1047178)
Record
SUSE-SU-2024:1630-1
Updated
2026-11-02
OSVUSN-3625-1 No score

perl vulnerabilities

It was discovered that Perl incorrectly handled certain regular expressions. An attacker could possibly use this issue to cause Perl to hang, resulting in a denial of service. This issue only affected Ubuntu 14.04 LTS. (CVE-2015-8853)

It was discovered that Perl incorrectly loaded libraries from the current working directory. A local attacker could possibly use this issue to execute arbitrary code. This issue only affected Ubuntu 14.04 LTS and Ubuntu 16.04 LTS. (CVE-2016-6185)

It was discovered that Perl incorrectly handled the rmtree and remove_tree functions. A local attacker could possibly use this issue to set the mode on arbitrary files. This issue only affected Ubuntu 14.04 LTS and Ubuntu 16.04 LTS. (CVE-2017-6512)

Brian Carpenter discovered that Perl incorrectly handled certain regular expressions. An attacker could use this issue to cause Perl to crash, resulting in a denial of service, or possibly execute arbitrary code. This issue has only been addressed in Ubuntu 16.04 LTS and Ubuntu 17.10. (CVE-2018-6797)

Nguyen Duc Manh discovered that Perl incorrectly handled certain regular expressions. An attacker could use this issue to cause Perl to crash, resulting in a denial of service. This issue only affected Ubuntu 16.04 LTS and Ubuntu 17.10. (CVE-2018-6798)

GwanYeong Kim discovered that Perl incorrectly handled certain data when using the pack function. An attacker could use this issue to cause Perl to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2018-6913)

Record
USN-3625-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
perl
Debian:12
before 5.24.1-3
5.24.1-3
perl
Debian:13
before 5.24.1-3
5.24.1-3
perl
Debian:14
before 5.24.1-3
5.24.1-3
perl
Debian:7
before 5.14.2-21+deb7u5, plus listed versions
5.14.2-215.14.2-21+deb7u15.14.2-21+deb7u25.14.2-21+deb7u35.14.2-21+deb7u4
5.14.2-21+deb7u5
perl
Debian:8
before 5.20.2-3+deb8u7, plus listed versions
5.20.2-35.20.2-3+deb8u15.20.2-3+deb8u25.20.2-3+deb8u35.20.2-3+deb8u3+kbsd15.20.2-3+deb8u45.20.2-3+deb8u55.20.2-3+deb8u6
5.20.2-3+deb8u7
perl
Mageia:5
before 5.20.1-8.7.mga5
5.20.1-8.7.mga5
perl-libintl-perl
Mageia:5
before 1.230.0-6.1.mga5
1.230.0-6.1.mga5
perl-MIME-Charset
Mageia:5
before 1.11.1-4.1.mga5
1.11.1-4.1.mga5
perl-MIME-EncWords
Mageia:5
before 1.14.2-4.1.mga5
1.14.2-4.1.mga5
perl-Module-Build
Mageia:5
before 0.421.0-5.1.mga5
0.421.0-5.1.mga5
Show 34 moreShow less
Affected packages
PackageAffectedFixed
perl-Module-Load-Conditional
Mageia:5
before 0.680.0-1.mga5
0.680.0-1.mga5
perl-Net-DNS
Mageia:5
before 1.90.0-0.mga5
1.90.0-0.mga5
perl-Sys-Syslog
Mageia:5
before 0.330.0-7.1.mga5
0.330.0-7.1.mga5
perl-Unicode-LineBreak
Mageia:5
before 2014.60.0-5.1.mga5
2014.60.0-5.1.mga5
perl-File-Path
Mageia:5
before 2.90.0-4.1.mga5
2.90.0-4.1.mga5
perl
SUSE:Linux Enterprise Software Development Kit 11 SP4
before 5.10.0-64.81.3.1
5.10.0-64.81.3.1
perl
SUSE:Linux Enterprise Server 11 SP4
before 5.10.0-64.81.3.1
5.10.0-64.81.3.1
perl
SUSE:Linux Enterprise Server for SAP Applications 11 SP4
before 5.10.0-64.81.3.1
5.10.0-64.81.3.1
perl
SUSE:Linux Enterprise Desktop 12 SP2
before 5.18.2-12.3.1
5.18.2-12.3.1
perl
SUSE:Linux Enterprise Desktop 12 SP3
before 5.18.2-12.3.1
5.18.2-12.3.1
perl
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2
before 5.18.2-12.3.1
5.18.2-12.3.1
perl
SUSE:Linux Enterprise Server 12 SP2
before 5.18.2-12.3.1
5.18.2-12.3.1
perl
SUSE:Linux Enterprise Server for SAP Applications 12 SP2
before 5.18.2-12.3.1
5.18.2-12.3.1
perl
SUSE:Linux Enterprise Server 12 SP3
before 5.18.2-12.3.1
5.18.2-12.3.1
perl
SUSE:Linux Enterprise Server for SAP Applications 12 SP3
before 5.18.2-12.3.1
5.18.2-12.3.1
perl-File-Path
SUSE:Linux Enterprise Server 12 SP5
before 2.150000-8.3.1
2.150000-8.3.1
perl-File-Path
SUSE:Linux Enterprise Server for SAP Applications 12 SP5
before 2.150000-8.3.1
2.150000-8.3.1
perl
SUSE:Linux Enterprise Module for Basesystem 15 SP3
before 5.26.1-150300.17.11.1
5.26.1-150300.17.11.1
perl
SUSE:Linux Enterprise Module for Basesystem 15 SP4
before 5.26.1-150300.17.11.1
5.26.1-150300.17.11.1
perl
SUSE:Linux Enterprise Module for Development Tools 15 SP3
before 5.26.1-150300.17.11.1
5.26.1-150300.17.11.1
perl
SUSE:Linux Enterprise Module for Development Tools 15 SP4
before 5.26.1-150300.17.11.1
5.26.1-150300.17.11.1
perl
SUSE:Linux Enterprise Module for Package Hub 15 SP3
before 5.26.1-150300.17.11.1
5.26.1-150300.17.11.1
perl
SUSE:Linux Enterprise Module for Package Hub 15 SP4
before 5.26.1-150300.17.11.1
5.26.1-150300.17.11.1
perl
SUSE:Linux Enterprise Micro 5.1
before 5.26.1-150300.17.11.1
5.26.1-150300.17.11.1
perl
SUSE:Linux Enterprise Micro 5.2
before 5.26.1-150300.17.11.1
5.26.1-150300.17.11.1
perl
openSUSE:Leap Micro 5.2
before 5.26.1-150300.17.11.1
5.26.1-150300.17.11.1
perl
openSUSE:Leap 15.3
before 5.26.1-150300.17.11.1
5.26.1-150300.17.11.1
perl
openSUSE:Leap 15.4
before 5.26.1-150300.17.11.1
5.26.1-150300.17.11.1
perl
SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS
before 5.26.1-150000.7.18.1
5.26.1-150000.7.18.1
perl
SUSE:Linux Enterprise Server 15 SP2-LTSS
before 5.26.1-150000.7.18.1
5.26.1-150000.7.18.1
perl
SUSE:Linux Enterprise Server for SAP Applications 15 SP2
before 5.26.1-150000.7.18.1
5.26.1-150000.7.18.1
perl
Ubuntu:14.04:LTS
before 5.18.2-2ubuntu1.4, plus listed versions
5.14.2-21build15.18.1-45.18.1-4build15.18.1-55.18.2-25.18.2-2ubuntu15.18.2-2ubuntu1.15.18.2-2ubuntu1.3
5.18.2-2ubuntu1.4
perl
Ubuntu:16.04:LTS
before 5.22.1-9ubuntu0.3, plus listed versions
5.20.2-65.22.1-35.22.1-45.22.1-55.22.1-75.22.1-85.22.1-95.22.1-9ubuntu0.2
5.22.1-9ubuntu0.3
perl-File-Path
openSUSE:Tumbleweed
before 2.180000-1.15
2.180000-1.15

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2017-6512 is a medium vulnerability (CVSS 5.9) in Canonical Ubuntu Linux, published June 1, 2017. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.36%, the 83rd percentile. Fixed in perl 5.24.1-3.

References

Show 37 moreShow less
MoveEnter Open