cve.bz

CVE-2017-6512 Race Condition

5.9 mediumEPSS 2.4%

Medium (5.9). EPSS 2.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

5.9 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS
2.4% (unchanged from 2.4% a week ago; 2.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 84th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization (Race Condition)
OWASP Top 10
A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2017-6512 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2017-6512?via=ask-ai-copy and https://cve.bz/cve/CVE-2017-6512?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2017-6512 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
file\:\before 2.13
canonical:ubuntu_linux12.04
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux17.10
debian:debian_linux8.0
debian:debian_linux9.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian7perl5.14.2-21+deb7u5DLA-978-1
Debian8perl5.20.2-3+deb8u7DSA-3873-1
Debian12, 13, 14perl5.24.1-3DEBIAN-CVE-2017-6512
Ubuntu14.04:LTSperl5.18.2-2ubuntu1.4UBUNTU-CVE-2017-6512 USN-3625-1
Ubuntu16.04:LTSperl5.22.1-9ubuntu0.3UBUNTU-CVE-2017-6512 USN-3625-1
SUSELinux Enterprise Desktop 12 SP2, Linux Enterprise Desktop 12 SP3, Linux Enterprise Server 12 SP2 and 4 moreperl5.18.2-12.3.1SUSE-SU-2017:3092-1
SUSELinux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise Server 15 SP2-LTSS, Linux Enterprise Server for SAP Applications 15 SP2perl5.26.1-150000.7.18.1SUSE-SU-2024:1630-1
SUSELinux Enterprise Micro 5.1, Linux Enterprise Micro 5.2, Linux Enterprise Module for Basesystem 15 SP3 and 5 moreperl5.26.1-150300.17.11.1SUSE-SU-2022:3271-1
SUSELinux Enterprise Server 11 SP4, Linux Enterprise Server for SAP Applications 11 SP4, Linux Enterprise Software Development Kit 11 SP4perl5.10.0-64.81.3.1SUSE-SU-2017:2951-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5perl-File-Path2.150000-8.3.1SUSE-SU-2021:0449-1
openSUSELeap 15.3, Leap 15.4, Leap Micro 5.2perl5.26.1-150300.17.11.1SUSE-SU-2022:3271-1
openSUSETumbleweedperl-File-Path2.180000-1.15openSUSE-SU-2024:13154-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Low.

Red Hat's statement

Red Hat Product Security has rated this issue as having Low security impact. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7perl-File-PathWill not fix
Red Hat Software Collectionsrh-perl520-perl-File-PathWill not fix
Red Hat Software Collectionsrh-perl524-perl-File-PathWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2017-6512.

Attack patterns (CAPEC)

  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON