GLSA-201709-12 : Perl: Race condition vulnerability

medium Nessus Plugin ID 103280

Synopsis

The remote Gentoo host is missing one or more security-related patches.

Description

The remote host is affected by the vulnerability described in GLSA-201709-12 (Perl: Race condition vulnerability)

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.

Solution

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'

See Also

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

Plugin Details

Severity: Medium

ID: 103280

File Name: gentoo_GLSA-201709-12.nasl

Version: 3.6

Type: local

Published: 9/18/2017

Updated: 1/11/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Low

Score: 3.6

CVSS v2

Risk Factor: Medium

Base Score: 4.3

Vector: CVSS2#AV:N/AC:M/Au:N/C:N/I:P/A:N

CVSS v3

Risk Factor: Medium

Base Score: 5.9

Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

Vulnerability Information

CPE: cpe:/o:gentoo:linux, p-cpe:/a:gentoo:linux:perl-file-path, p-cpe:/a:gentoo:linux:perl, p-cpe:/a:gentoo:linux:file-path

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Patch Publication Date: 9/17/2017

Vulnerability Publication Date: 6/1/2017

Reference Information

CVE: CVE-2017-6512

GLSA: 201709-12