Bug 862743 (CVE-2014-1875) - VUL-1: CVE-2014-1875: perl-Capture-Tiny: insecure temporary file usage
Summary: VUL-1: CVE-2014-1875: perl-Capture-Tiny: insecure temporary file usage
Status: RESOLVED FIXED
Alias: CVE-2014-1875
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Minor
Target Milestone: ---
Assignee: Pascal Bleser
QA Contact: Security Team bot
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-07 09:24 UTC by Victor Pereira
Modified: 2016-11-03 21:37 UTC (History)
3 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Victor Pereira 2014-02-07 09:24:52 UTC
CVE-2014-1875:

It was found 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.


References:
https://github.com/dagolden/Capture-Tiny/issues/16
https://bugzilla.redhat.com/show_bug.cgi?id=1062424
Comment 2 Swamp Workflow Management 2014-02-07 23:00:20 UTC
bugbot adjusting priority
Comment 4 Victor Pereira 2015-02-13 12:46:12 UTC
I did already a submission https://build.suse.de/request/show/51480
Comment 5 Swamp Workflow Management 2015-02-18 11:07:46 UTC
SUSE-SU-2015:0316-1: An update that fixes one vulnerability is now available.

Category: security (moderate)
Bug References: 862743
CVE References: CVE-2014-1875
Sources used:
SUSE Linux Enterprise Build System Kit 12 (src):    perl-Capture-Tiny-0.23-4.1
Comment 6 Dominique Leuenberger 2016-11-03 21:37:04 UTC
Seems fixed.

openSUSE 13.2 was not affected (perl-Capture-Tiny-0.25)
Leap 42.1 and 42.2 inherited the SLE Fix.