Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 2.1 product line. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 98827

Summary: CAN-2003-0455 ImageMagick temporary file handling vulnerability
Product: Red Hat Enterprise Linux 2.1 Reporter: Mark J. Cox <mjc>
Component: ImageMagickAssignee: Matthias Clasen <mclasen>
Status: CLOSED CANTFIX QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.1CC: michal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0455
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-09-20 17:04:03 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:
Attachments:
Description Flags
Patch from OpenPKG for this issue
none
corrected patch for tmpname issue
none
another version of "not leaving droppings tmpname" patch none

Description Mark J. Cox 2003-07-09 10:59:27 UTC
According to the CVE database; the imagemagick libmagick library 5.5 and earlier
creates temporary files insecurely, which allows local users to create or
overwrite arbitrary files.  Red Hat Enterprise Linux (2.1 all variants) shipped
with ImageMagick-5.3.8.

Comment 1 Mark J. Cox 2004-09-23 09:29:46 UTC
Created attachment 104171 [details]
Patch from OpenPKG for this issue

Comment 2 Josh Bressers 2004-10-20 19:13:58 UTC
An errata has been issued which should help the problem 
described in this bug report. This report is therefore being 
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files, 
please follow the link below. You may reopen this bug report 
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2004-494.html


Comment 3 Michal Jaegermann 2004-11-13 20:55:38 UTC
Created attachment 106649 [details]
corrected patch for tmpname issue

A patch used in ImageMagick-5.3.8-5.src.rpm says in a comment:

/* Attention: this creates an additional 
 * intermediate directory for security reasons,
 * but unfortunately it is never deleted.
 */

Leaving such "leftovers" is a bug in itself.  Attached patch corrects
that not to such ghastly things on a normal exit.  It possibly can be
improved but it works.

Comment 4 Michal Jaegermann 2004-11-14 07:00:34 UTC
Created attachment 106661 [details]
another version of "not leaving droppings tmpname" patch 

I believe that this variant is somewhat more elegant then the previous one.
Nothing concentrates mind like posting a code. :-)

Comment 5 David Eisenstein 2005-08-27 10:23:03 UTC
Should this bug be closed?  CAN-2003-0455 says that this was fixed in
<http://www.redhat.com/support/errata/RHSA-2004-494.html>, but that
page tells me that that it is outdated, and to look to 
<http://rhn.redhat.com/errata/RHSA-2005-480.html>....

Comment 6 Matthias Clasen 2005-09-20 17:04:03 UTC
The security issue has been fixed. I don't think the leftover directory issue
warrants a 2.1 update at this point.