Skip to content
Fencer Intel
medium 5.9

CVE-2017-6512 json

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 arb…

published 2017-06-01 9 y ago modified 2026-06-17 4 mo ago also EUVD-2017-15568

cvss
5.9
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
2.4%
EPSS 2.4% chance of exploitation in 30 days, percentile 83%
public exploits
0
none known

Summary

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.

Patch / fix

  • file::path_project file::path 2.13
  • perl Debian 14, Debian 13, Debian 12 5.24.1-3

debian advisories DEBIAN-CVE-2017-6512

  • perl Ubuntu 14.04 LTS 5.18.2-2ubuntu1.4
  • perl Ubuntu 16.04 LTS 5.22.1-9ubuntu0.3

ubuntu advisories UBUNTU-CVE-2017-6512

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • perl SLE Module for Package Hub 15 SP4, SLE Module for Package Hub 15 SP3, SLE Module for Development Tools 15 SP4 +8 more 5.26.1-150300.17.11.1
  • perl-File-Path SLES for SAP 12 SP5, SLES 12 SP5 2.150000-8.3.1
  • perl SLES for SAP 12 SP3, SLES for SAP 12 SP2, SLES for Raspberry Pi 12 SP2 +4 more 5.18.2-12.3.1
  • perl SLES for SAP 11 SP4, SLES 11 SP4, SLE Software Development Kit 11 SP4 5.10.0-64.81.3.1
  • perl SLES for SAP 15 SP2, SLES 15 SP2-LTSS, SLE High Performance Computing 15 SP2-LTSS 5.26.1-150000.7.18.1

suse advisories SUSE-SU-2024:1630-1SUSE-SU-2022:3271-1SUSE-SU-2021:0449-1SUSE-SU-2017:3092-1SUSE-SU-2017:2951-1

  • perl-File-Path openSUSE Tumbleweed 2.180000-1.15

opensuse advisories openSUSE-SU-2024:13154-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2017-6512 updated cvss 4.7

perl-File-Path: rmtree/remove_tree race condition

  • Red Hat Enterprise Linux 7 perl-File-Path Red Hat Software Collections rh-perl520-perl-File-Path, rh-perl524-perl-File-Path
    affected: no fix planned “Will not fix”

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

2.36% chance of exploitation in the next 30 days, higher than 83% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
NVD 3.1 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
NVD 2.0 4.3 AV:N/AC:M/Au:N/C:N/I:P/A:N

Classification

Weakness
  • CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.