Bug 474455 (CVE-2008-5298)

Summary: CVE-2008-5298 chm2pdf insecure temporary file use
Product: [Other] Security Response Reporter: Josh Bressers <bressers>
Component: vulnerabilityAssignee: Narasimhan <lakshminaras2002>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: lakshminaras2002, mail, security-response-team, vdanen
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://nvd.nist.gov/nvd.cfm?cvename=CVE-2008-5298
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-07 17:05:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On: 474459, 665494    
Bug Blocks:    
Description Flags
Patch that fixes the insecure temporary file issue none

Description Josh Bressers 2008-12-03 21:49:39 UTC
chm2pdf 0.9 uses temporary files in directories with fixed names, which allows local users to cause a denial of service (chm2pdf failure) of other users by creating those directories ahead of time.


Comment 2 Vincent Danen 2010-12-24 03:21:16 UTC
Let's try this again.  chm2pdf in Fedora 14 is still vulnerable to this.  A patch was provided in the Debian bug:


I can't think of a reason not to use it.

Comment 3 Vincent Danen 2010-12-24 03:23:54 UTC
Created chm2pdf tracking bugs for this issue

Affects: fedora-all [bug 665494]

Comment 4 Narasimhan 2011-01-08 05:50:27 UTC
I have been able to apply the patch supplied in the bug url given by Vincent. There are two patches present there , one for insecure_temp_dir and other for bashims. I have applied the first one.

Comment 5 Narasimhan 2011-01-09 12:14:32 UTC
Created attachment 472423 [details]
Patch that fixes the insecure temporary file issue

Comment 7 Narasimhan 2011-01-15 07:21:35 UTC
Could you provide a review of the patch provided (in the attachment)?


Comment 8 Vincent Danen 2011-01-15 16:41:12 UTC
(In reply to comment #7)
> Vincent,
> Could you provide a review of the patch provided (in the attachment)?

The patch in the attachment looked pretty odd, so I looked at the srpm and pulled the patch you had in there.  That one looks good (I've just looked, not tested).  I would go ahead and submit it.

Comment 9 Vincent Danen 2011-02-07 17:05:04 UTC
This flaw was corrected in Fedora 14:

chm2pdf-0.9.1-9.fc14 (FEDORA-2011-0454)

and Fedora 13:

chm2pdf-0.9.1-8.fc13 (FEDORA-2011-0467)