1 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
2 |
Gentoo Linux Security Advisory GLSA 200412-04 |
3 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
4 |
http://security.gentoo.org/ |
5 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
6 |
|
7 |
Severity: Normal |
8 |
Title: Perl: Insecure temporary file creation |
9 |
Date: December 07, 2004 |
10 |
Bugs: #66360 |
11 |
ID: 200412-04 |
12 |
|
13 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
14 |
|
15 |
Synopsis |
16 |
======== |
17 |
|
18 |
Perl is vulnerable to symlink attacks, potentially allowing a local |
19 |
user to overwrite arbitrary files. |
20 |
|
21 |
Background |
22 |
========== |
23 |
|
24 |
Perl is a stable, cross-platform programming language created by Larry |
25 |
Wall. |
26 |
|
27 |
Affected packages |
28 |
================= |
29 |
|
30 |
------------------------------------------------------------------- |
31 |
Package / Vulnerable / Unaffected |
32 |
------------------------------------------------------------------- |
33 |
1 dev-lang/perl < 5.8.5-r2 *>= 5.8.5-r2 |
34 |
>= 5.8.6-r1 |
35 |
dev-lang/perl == 5.8.6 *>= 5.8.5-r2 |
36 |
>= 5.8.6-r1 |
37 |
|
38 |
Description |
39 |
=========== |
40 |
|
41 |
Some Perl modules create temporary files in world-writable directories |
42 |
with predictable names. |
43 |
|
44 |
Impact |
45 |
====== |
46 |
|
47 |
A local attacker could create symbolic links in the temporary files |
48 |
directory, pointing to a valid file somewhere on the filesystem. When a |
49 |
Perl script is executed, this would result in the file being |
50 |
overwritten with the rights of the user running the utility, which |
51 |
could be the root user. |
52 |
|
53 |
Workaround |
54 |
========== |
55 |
|
56 |
There is no known workaround at this time. |
57 |
|
58 |
Resolution |
59 |
========== |
60 |
|
61 |
All Perl users should upgrade to the latest version: |
62 |
|
63 |
# emerge --sync |
64 |
# emerge --ask --oneshot --verbose ">=perl-5.8.5-r2" |
65 |
|
66 |
References |
67 |
========== |
68 |
|
69 |
[ 1 ] CAN-2004-0976 |
70 |
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0976 |
71 |
[ 2 ] Trustix Advisory #2004-0050 |
72 |
http://www.trustix.org/errata/2004/0050/ |
73 |
|
74 |
Availability |
75 |
============ |
76 |
|
77 |
This GLSA and any updates to it are available for viewing at |
78 |
the Gentoo Security Website: |
79 |
|
80 |
http://security.gentoo.org/glsa/glsa-200412-04.xml |
81 |
|
82 |
Concerns? |
83 |
========= |
84 |
|
85 |
Security is a primary focus of Gentoo Linux and ensuring the |
86 |
confidentiality and security of our users machines is of utmost |
87 |
importance to us. Any security concerns should be addressed to |
88 |
security@g.o or alternatively, you may file a bug at |
89 |
http://bugs.gentoo.org. |
90 |
|
91 |
License |
92 |
======= |
93 |
|
94 |
Copyright 2004 Gentoo Foundation, Inc; referenced text |
95 |
belongs to its owner(s). |
96 |
|
97 |
The contents of this document are licensed under the |
98 |
Creative Commons - Attribution / Share Alike license. |
99 |
|
100 |
http://creativecommons.org/licenses/by-sa/2.0 |