GLSA-201709-12 : Perl: Race condition vulnerability

This script is Copyright (C) 2017 Tenable Network Security, Inc.


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.

See also :

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

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'

Risk factor :

Medium / CVSS Base Score : 4.3
(CVSS2#AV:N/AC:M/Au:N/C:N/I:P/A:N)

Family: Gentoo Local Security Checks

Nessus Plugin ID: 103280 ()

Bugtraq ID:

CVE ID: CVE-2017-6512

Ready to Amp Up Your Nessus Experience?

Get Nessus Professional to scan unlimited IPs, run compliance checks & more

Buy Nessus Professional Now