CVE-2017-6512
published 2017-06-01CVE-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…
PriorityP433medium5.9CVSS 3.1
AVNACHPRNUINSUCNIHAN
EPSS
2.36%
82.0th percentile
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
13 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| debian | debian_linux | — | — |
| debian | debian_linux | — | — |
| debian | perl | < perl 5.24.1-3 (bookworm) | perl 5.24.1-3 (bookworm) |
| perl | perl | >= 0 < 5.24.1-3 | 5.24.1-3 |
| perl | perl | >= 0 < 5.24.1-3 | 5.24.1-3 |
| perl | perl | >= 0 < 5.24.1-3 | 5.24.1-3 |
| perl | perl | >= 0 < 5.24.1-3 | 5.24.1-3 |
| perl | perl | >= 0 < 5.18.2-2ubuntu1.4 | 5.18.2-2ubuntu1.4 |
| perl | perl | >= 0 < 5.22.1-9ubuntu0.3 | 5.22.1-9ubuntu0.3 |
CVSS provenance
nvdv3.15.9MEDIUMCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
nvdv2.04.3MEDIUMAV:N/AC:M/Au:N/C:N/I:P/A:N
osv7.5HIGH
vendor_ubuntu7.5HIGH
vendor_debian5.9MEDIUM
vendor_redhat5.9MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-wf3v-xjg6-86hx: Race condition in the rmtree and remove_tree functions in the File-Path module before 2
ghsa_unreviewed·2022-05-13
CVE-2017-6512 [MEDIUM] CWE-362 GHSA-wf3v-xjg6-86hx: Race condition in the rmtree and remove_tree functions in the File-Path module before 2
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.
OSV
perl vulnerabilities
osv·2018-04-16·CVSS 7.5
CVE-2015-8853 [HIGH] perl vulnerabilities
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 incorre
OSV
CVE-2017-6512: Race condition in the rmtree and remove_tree functions in the File-Path module before 2
osv·2017-06-01·CVSS 5.9
CVE-2017-6512 [MEDIUM] CVE-2017-6512: Race condition in the rmtree and remove_tree functions in the File-Path module before 2
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.
Ubuntu
Perl vulnerabilities
vendor_ubuntu·2018-04-17·CVSS 7.5
CVE-2015-8853 [HIGH] Perl vulnerabilities
Title: Perl vulnerabilities
Summary: Several security issues were fixed in Perl.
USN-3625-1 fixed a vulnerability in Perl. This update provides
the corresponding update for Ubuntu 12.04 ESM.
Original advisory details:
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. (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. (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. (CVE-2017-6512)
GwanYeong Kim d
Ubuntu
Perl vulnerabilities
vendor_ubuntu·2018-04-16·CVSS 7.5
CVE-2015-8853 [HIGH] Perl vulnerabilities
Title: Perl vulnerabilities
Summary: Several security issues were fixed in Perl.
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.
Red Hat
perl-File-Path: rmtree/remove_tree race condition
vendor_redhat·2017-05-02·CVSS 5.9
CVE-2017-6512 [MEDIUM] CWE-367 perl-File-Path: rmtree/remove_tree race condition
perl-File-Path: rmtree/remove_tree race condition
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.
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/.
Package: perl-File-Path (Red Hat Enterprise Linux 7) - Will not fix
Package: rh-perl520-perl-File-Path (Red Hat Software Collections) - Will not fix
Package: rh-perl524-perl-File-Path (Red Hat Software Collections) - Will not fix
Debian
CVE-2017-6512: perl - Race condition in the rmtree and remove_tree functions in the File-Path module b...
vendor_debian·2017·CVSS 5.9
CVE-2017-6512 [MEDIUM] CVE-2017-6512: perl - Race condition in the rmtree and remove_tree functions in the File-Path module b...
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.
Scope: local
bookworm: resolved (fixed in 5.24.1-3)
bullseye: resolved (fixed in 5.24.1-3)
forky: resolved (fixed in 5.24.1-3)
sid: resolved (fixed in 5.24.1-3)
trixie: resolved (fixed in 5.24.1-3)
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2017-6512 perl-File-Path: rmtree/remove_tree race condition
bugzilla·2017-06-01·CVSS 5.9
CVE-2017-6512 [MEDIUM] CVE-2017-6512 perl-File-Path: rmtree/remove_tree race condition
CVE-2017-6512 perl-File-Path: rmtree/remove_tree race condition
A vulnerability was found in perl File-Path. In the rmtree() and remove_tree() functions, the chmod()logic to make directories traversable can be abused to set the mode on an attacker-chosen file to an attacker-chosen value. This is due to the time-of-check-to-time-of-use (TOCTTOU) race condition between the stat() that decides the inode is a directory and the chmod() that tries to make it user-rwx.
Upstream issue:
https://rt.cpan.org/Public/Bug/Display.html?id=121951
Upstream patch:
https://github.com/jkeenan/File-Path/commit/e5ef95276ee8ad471c66ee574a5d42552b3a6af2
Discussion:
Created perl-File-Path tracking bugs for this issue:
Affects: fedora-all [bug 1457834]
---
Statement:
Red Hat Product Security has rated th
Bugzilla
CVE-2017-6512 perl-File-Path: rmtree/remove_tree race condition [fedora-all]
bugzilla·2017-06-01·CVSS 5.9
CVE-2017-6512 [MEDIUM] CVE-2017-6512 perl-File-Path: rmtree/remove_tree race condition [fedora-all]
CVE-2017-6512 perl-File-Path: rmtree/remove_tree race condition [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported versions
http://cpansearch.perl.org/src/JKEENAN/File-Path-2.13/Changeshttp://security.cucumberlinux.com/security/details.php?id=153http://www.debian.org/security/2017/dsa-3873http://www.securityfocus.com/bid/99180http://www.securitytracker.com/id/1038610https://rt.cpan.org/Ticket/Display.html?id=121951https://security.gentoo.org/glsa/201709-12https://usn.ubuntu.com/3625-1/https://usn.ubuntu.com/3625-2/http://cpansearch.perl.org/src/JKEENAN/File-Path-2.13/Changeshttp://security.cucumberlinux.com/security/details.php?id=153http://www.debian.org/security/2017/dsa-3873http://www.securityfocus.com/bid/99180http://www.securitytracker.com/id/1038610https://rt.cpan.org/Ticket/Display.html?id=121951https://security.gentoo.org/glsa/201709-12https://usn.ubuntu.com/3625-1/https://usn.ubuntu.com/3625-2/
2017-06-01
Published