Bug 452635 (CVE-2008-2827) - CVE-2008-2827 perl: insecure use of chmod in rmtree
Summary: CVE-2008-2827 perl: insecure use of chmod in rmtree
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2008-2827
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL: http://nvd.nist.gov/nvd.cfm?cvename=C...
Whiteboard:
Depends On: 452641 452642
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-06-24 07:37 UTC by Tomas Hoger
Modified: 2021-11-12 19:50 UTC (History)
5 users (show)

Fixed In Version: 5.10.0-27.fc9
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-07-26 05:55:46 UTC
Embargoed:


Attachments (Terms of Use)
Test case extracted from CPAN bug report (355 bytes, text/plain)
2008-06-24 08:02 UTC, Tomas Hoger
no flags Details

Description Tomas Hoger 2008-06-24 07:37:15 UTC
Common Vulnerabilities and Exposures assigned an identifier CVE-2008-2827 to the following vulnerability:

The rmtree function in lib/File/Path.pm in Perl 5.10 does not properly
check permissions before performing a chmod, which allows local users
to modify the permissions of arbitrary files via a symlink attack, a
different vulnerability than CVE-2005-0448 and CVE-2004-0452.

References:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=487319
http://rt.cpan.org/Public/Bug/Display.html?id=36982

Comment 1 Tomas Hoger 2008-06-24 08:02:03 UTC
Created attachment 310113 [details]
Test case extracted from CPAN bug report

Comment 2 Tomas Hoger 2008-06-24 08:04:58 UTC
This issue did not affect the versions of perl as shipped with Red Hat
Enterprise Linux 2.1, 3, 4, or 5, Red Hat Application Stack 1 and Fedora 8.

Comment 3 Tomas Hoger 2008-06-24 08:05:20 UTC
Proposed patch in Debian BTS:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=487319#32

Comment 5 Marcela Mašláňová 2008-06-24 13:31:23 UTC
Proposed patch fix this issue. It was tested on CPAN bug report.

Comment 6 Fedora Update System 2008-06-25 08:58:51 UTC
perl-5.10.0-27.fc9 has been submitted as an update for Fedora 9

Comment 7 Fedora Update System 2008-06-26 08:33:20 UTC
perl-5.10.0-27.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Red Hat Product Security 2008-06-26 08:38:11 UTC
This issue was addressed in:

Fedora:
  https://admin.fedoraproject.org/updates/F9/FEDORA-2008-5739




Note You need to log in before you can comment on or make changes to this bug.