Bug 474455 (CVE-2008-5298) - CVE-2008-5298 chm2pdf insecure temporary file use
Summary: CVE-2008-5298 chm2pdf insecure temporary file use
Alias: CVE-2008-5298
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Narasimhan
QA Contact:
URL: http://nvd.nist.gov/nvd.cfm?cvename=C...
Depends On: 474459 665494
TreeView+ depends on / blocked
Reported: 2008-12-03 21:49 UTC by Josh Bressers
Modified: 2019-09-29 12:27 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2011-02-07 17:05:04 UTC

Attachments (Terms of Use)
Patch that fixes the insecure temporary file issue (2.07 KB, patch)
2011-01-09 12:14 UTC, Narasimhan
no flags Details | Diff

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)

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