Executive Summary

Summary
Title Perl: Race condition vulnerability
Informations
Name GLSA-201709-12 First vendor Publication 2017-09-17
Vendor Gentoo Last vendor Modification 2017-09-17
Severity (Vendor) N/A Revision N/A

Security-Database Scoring CVSS v3

Cvss vector : N/A
Overall CVSS Score NA
Base Score NA Environmental Score NA
impact SubScore NA Temporal Score NA
Exploitabality Sub Score NA
 
Calculate full CVSS 3.0 Vectors scores

Security-Database Scoring CVSS v2

Cvss vector : (AV:N/AC:M/Au:N/C:N/I:P/A:N)
Cvss Base Score 4.3 Attack Range Network
Cvss Impact Score 2.9 Attack Complexity Medium
Cvss Expoit Score 8.6 Authentication None Required
Calculate full CVSS 2.0 Vectors scores

Detail

Synopsis

A vulnerability in module File::Path for Perl allows local attackers to set arbitrary mode values on arbitrary files bypassing security restrictions.

Background

File::Path module provides a convenient way to create directories of arbitrary depth and to delete an entire directory subtree from the filesystem.

Description

A race condition occurs within concurrent environments. This condition was discovered by The cPanel Security Team in the rmtree and remove_tree functions in the File-Path module before 2.13 for Perl.
This is due to the time-of-check-to-time-of-use (TOCTOU) race condition between the stat() that decides the inode is a directory and the chmod() that tries to make it user-rwx.

Impact

A local attacker could exploit this condition to set arbitrary mode values on arbitrary files and hence bypass security restrictions.

Workaround

There is no known workaround at this time.

Resolution

All Perl users should upgrade to the latest version:
# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-lang/perl-5.24.1-r2"

All File-Path users should upgrade to the latest version:
# emerge --sync
# emerge --ask --oneshot --verbose ">=perl-core/File-Path-2.130.0"

All Perl-File-Path users should upgrade to the latest version:
# emerge --sync
# emerge --ask --oneshot --verbose ">=virtual/perl-File-Path-2.130.0"

References

[ 1 ] CVE-2017-6512 : https://nvd.nist.gov/nvd.cfm?cvename=CVE-2017-6512

Availability

This GLSA and any updates to it are available for viewing at the Gentoo Security Website:

https://security.gentoo.org/glsa/201709-12

Original Source

Url : http://security.gentoo.org/glsa/glsa-201709-12.xml

CWE : Common Weakness Enumeration

% Id Name
100 % CWE-362 Race Condition

CPE : Common Platform Enumeration

TypeDescriptionCount
Os 4
Os 2

Nessus® Vulnerability Scanner

Date Description
2017-11-27 Name : The remote openSUSE host is missing a security update.
File : openSUSE-2017-1304.nasl - Type : ACT_GATHER_INFO
2017-11-27 Name : The remote SUSE host is missing one or more security updates.
File : suse_SU-2017-3092-1.nasl - Type : ACT_GATHER_INFO
2017-11-09 Name : The remote SUSE host is missing one or more security updates.
File : suse_SU-2017-2951-1.nasl - Type : ACT_GATHER_INFO
2017-09-18 Name : The remote Gentoo host is missing one or more security-related patches.
File : gentoo_GLSA-201709-12.nasl - Type : ACT_GATHER_INFO
2017-07-17 Name : The remote Fedora host is missing a security update.
File : fedora_2017-4e981a51e6.nasl - Type : ACT_GATHER_INFO
2017-06-22 Name : The remote Fedora host is missing a security update.
File : fedora_2017-212f07c853.nasl - Type : ACT_GATHER_INFO
2017-06-19 Name : The remote Fedora host is missing a security update.
File : fedora_2017-dd42592f9a.nasl - Type : ACT_GATHER_INFO
2017-06-06 Name : The remote Debian host is missing a security update.
File : debian_DLA-978.nasl - Type : ACT_GATHER_INFO
2017-06-06 Name : The remote Debian host is missing a security-related update.
File : debian_DSA-3873.nasl - Type : ACT_GATHER_INFO

Alert History

If you want to see full details history, please login or register.
0
1
Date Informations
2017-09-19 13:25:09
  • Multiple Updates
2017-09-18 00:22:29
  • First insertion