Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 500596 (CVE-2014-1875)

Summary: <dev-perl/Capture-Tiny-0.240.0 : insecure temporary file usage (CVE-2014-1875)
Product: Gentoo Security Reporter: Agostino Sarubbo <ago>
Component: VulnerabilitiesAssignee: Gentoo Security <security>
Status: RESOLVED FIXED    
Severity: minor CC: perl
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://bugzilla.redhat.com/show_bug.cgi?id=1062424
Whiteboard: B4 [noglsa]
Package list:
Runtime testing required: ---

Description Agostino Sarubbo gentoo-dev 2014-02-07 08:17:16 UTC
From ${URL} :

It was found [1] that the Capture::Tiny module, provided by the perl-Capture-Tiny package, used the 
File::temp::tmpnam module to generate temporary files:

./lib/Capture/Tiny.pm:  $stash->{flag_files}{$which} = scalar tmpnam();

This module makes use of the mktemp() function when called in the scalar context, which creates 
significantly more predictable temporary files. Additionally, the temporary file is created with 
world-writable (0666) permission. A local attacker could use this flaw to perform a symbolic link attack, 
overwriting arbitrary files accessible to a program using the Capture::Tiny module.

This issue has been reported upstream [2], but has not yet been fixed.

[1] http://seclists.org/oss-sec/2014/q1/267
[2] https://github.com/dagolden/Capture-Tiny/issues/16


@maintainer(s): after the bump, in case we need to stabilize the package, please let us know if it is ready for the stabilization or not.
Comment 1 Tim Harder gentoo-dev 2014-02-15 03:32:36 UTC
Arches go ahead.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-02-15 12:08:45 UTC
(In reply to Tim Harder from comment #1)
> Arches go ahead.

Please write a comment like this or similar:

Arch teams, please test and mark stable:
=dev-perl/Capture-Tiny-0.240.0
Targeted stable KEYWORDS : alpha amd64 hppa ia64 ppc ppc64 sparc x86

so that everyone instantly knows what it is you want.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2014-02-15 12:09:30 UTC
Stable for HPPA.
Comment 4 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2014-02-15 12:59:30 UTC
alpha stable
Comment 5 Akinori Hattori gentoo-dev 2014-02-15 13:54:51 UTC
ia64 stable
Comment 6 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2014-02-15 14:51:17 UTC
amd64 stable
Comment 7 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2014-02-15 14:52:43 UTC
x86 stable
Comment 8 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2014-02-15 15:32:41 UTC
sparc stable
Comment 9 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2014-02-15 16:05:22 UTC
ppc64 stable
Comment 10 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2014-02-15 16:13:04 UTC
ppc stable
Comment 11 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2014-02-15 16:16:17 UTC
Cleanup done.

@Security, please vote.

GLSA vote: no.
Comment 12 Sergey Popov gentoo-dev 2014-02-19 10:43:38 UTC
GLSA vote: no

Closing as noglsa