Bug 452635 (CVE-2008-2827)

Summary: CVE-2008-2827 perl: insecure use of chmod in rmtree
Product: [Other] Security Response Reporter: Tomas Hoger <thoger>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: kasal, mmaslano, rc040203, robin.norwood, tcallawa
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://nvd.nist.gov/nvd.cfm?cvename=CVE-2008-2827
Whiteboard:
Fixed In Version: 5.10.0-27.fc9 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-07-26 05:55:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 452641, 452642    
Bug Blocks:    
Attachments:
Description Flags
Test case extracted from CPAN bug report none

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