Bug 427285 (CVE-2007-6595)

Summary: CVE-2007-6595 clamav insecure /tmp file use
Product: [Other] Security Response Reporter: Lubomir Kundrak <lkundrak>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: rh-bugzilla, steve
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://nvd.nist.gov/nvd.cfm?cvename=CVE-2007-6595
Whiteboard:
Fixed In Version: clamav-0.92.1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-04-25 08:50:30 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: 427287, 427288, 427289    
Bug Blocks:    

Description Lubomir Kundrak 2008-01-02 19:44:18 UTC
Common Vulnerabilities and Exposures assigned an identifier CVE-2007-6595 to the following vulnerability:

ClamAV 0.92 allows local users to overwrite arbitrary files via a symlink attack on (1) temporary files in the cli_gentempfd function in libclamav/others.c or on (2) .ascii files in sigtool, when utf16-decode is enabled.

References:

http://www.securityfocus.com/archive/1/archive/1/485631/100/0/threaded
http://www.securityfocus.com/bid/27064

Comment 2 Lubomir Kundrak 2008-01-08 18:44:50 UTC
Ping on this -- Any chance this will get addressed soon?

Comment 3 Lubomir Kundrak 2008-01-08 18:45:26 UTC
http://bugs.gentoo.org/show_bug.cgi?id=204340

Comment 5 Tomas Hoger 2008-03-17 18:21:23 UTC
(2) remains unfixed upstream

Comment 6 Tomas Hoger 2008-04-24 18:29:52 UTC
Upstream bug report for this issue:

https://wwws.clamav.net/bugzilla/show_bug.cgi?id=752

Moreover, upstream does not consider vector (2) as security issue:

http://lurker.clamav.net/message/20080102.195717.b4bbdef2.en.html

  Sigtool is primarily a tool for signature database developers and by no
  means it was designed to be run with SUID/SGID bits set. There is no
  practical exploitation of this "vulnerability" and it should not be
  considered a security issue.


Comment 7 Tomas Hoger 2008-04-25 08:50:30 UTC
Issue (1) - more important of the two - was fixed in upstream version 0.92.1.

Isuse (2) is not considered as security issue by upstream, as documented in
comment #6.  It can only be exploited if signature author uses sigtool in world
/ group writable directory.  Moreover, there are probably one or two other
similar issues in sigtool - at least race during *.info file creation seems
possible.

Given the upstream statement, I'm closing this as currentrelease - clamav-0.92.1.