<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>181941</bug_id>
          
          <creation_ts>2007-06-13 19:36 0000</creation_ts>
          <short_desc>mail-filter/spamassassin Symlink DoS issue (CVE-2007-2873)</short_desc>
          <delta_ts>2007-07-13 16:19:26 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Security</product>
          <component>Vulnerabilities</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          <bug_file_loc>http://spamassassin.apache.org/advisories/cve-2007-2873.txt</bug_file_loc>
          <status_whiteboard>C3? [noglsa] jaervosz</status_whiteboard>
          
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>jaervosz@gentoo.org</reporter>
          <assigned_to>security@gentoo.org</assigned_to>
          <cc>coran.fisher@gmail.com</cc>
    
    <cc>gentoo@valli.org</cc>
    
    <cc>mips@gentoo.org</cc>
    
    <cc>perl@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>jaervosz@gentoo.org</who>
            <bug_when>2007-06-13 19:36:46 0000</bug_when>
            <thetext>CVE reference: CVE-2007-2873

Description:

A local user symlink-attack DoS vulnerability in SpamAssassin has been found,
affecting versions 3.1.x, 3.2.0, and SVN trunk.  It has been assigned
CVE-2007-2873. Details:

- It only affects systems where spamd is run as root, is used with vpopmail or
  virtual users via the &quot;-v&quot;/&quot;--vpopmail&quot; OR &quot;--virtual-config-dir&quot; switch, AND
  with the &quot;-x&quot;/&quot;--no-user-config AND WITHOUT the &quot;-u&quot;/&quot;--username&quot; switch AND
  with the &quot;-l&quot;/&quot;--allow-tell&quot; switch.

  This is not default on any distro package, and is not a common configuration.
  
- It is a local exploit that requires the attacker to have a local account
  whose mail is being processed by spamd.

- The effect of the exploit is to allow overwriting of arbitrary files that are
  accessible by the spamd process (running as root), with data that is not
  under the control of the attacker.  Hence it is a DoS vulnerability that does
  not allow remote execution nor escalation of local privileges.


Workaround: If you are running spamd using a vulnerable combination of switches,
add the &quot;-u&quot; / &quot;--username&quot; switch to specify a non-root user that spamd child
processes will run as.

Note that in a mixed real/virtual user environment you will now have to run two
separate instances of spamd on different ports, with the instance that
specifies &quot;-v&quot;/&quot;--vpopmail&quot; or &quot;--virtual-config-dir&quot; also specifying
&quot;-u&quot;/&quot;--username&quot;.

Fix: The vulnerability is fixed in SpamAssassin version 3.2.1 by, among other
fixes, no longer allowing the use of &quot;-v&quot;/&quot;--vpopmail&quot; or
&quot;--virtual-config-dir&quot; without the &quot;-u&quot;/&quot;--username&quot; switch.  Thus, the
configuration change described in the above workaround is still necessary when
upgrading to 3.2.1.

Further info: mail &lt;security at SpamAssassin.apache.org&gt;
Announced: Jun 11 2007
Corrected: Jun 11 2007
Affects: all versions before the correction date, after and including 3.1.0
Credit: discovery of this vulnerability credited to Martin F. Krafft 
  &lt;madduck@debian.org&gt;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2007-06-15 14:15:10 0000</bug_when>
            <thetext>*** Bug 182149 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jaervosz@gentoo.org</who>
            <bug_when>2007-06-16 06:18:29 0000</bug_when>
            <thetext>perl please advise and bump as necessary.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>coran.fisher@gmail.com</who>
            <bug_when>2007-06-16 14:46:37 0000</bug_when>
            <thetext>3.2.1 is a major bug-fix release, including a potential local DoS.  The
major highlights are:

- bug 5480: fix for CVE-2007-2873: a local user symlink-attack DoS
  vulnerability. It only affects systems where spamd is run as root, is used
  with vpopmail or virtual users via the &quot;-v&quot;/&quot;--vpopmail&quot; OR
  &quot;--virtual-config-dir&quot; switch, AND with the &quot;-x&quot;/&quot;--no-user-config AND
  WITHOUT the &quot;-u&quot;/&quot;--username&quot; switch AND with the &quot;-l&quot;/&quot;--allow-tell&quot; switch.
  This is not default on any distro package, and is not a common configuration.
  More details of the vulnerability can be read at
  &lt;http://spamassassin.apache.org/advisories/cve-2007-2873.txt&gt;.

&lt;list of other bugs truncated as they aren&apos;t related to this bug&gt;
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ian@gentoo.org</who>
            <bug_when>2007-06-17 12:49:53 0000</bug_when>
            <thetext>It&apos;s failing in tests for me. So no bump from me currently.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mcummings@gentoo.org</who>
            <bug_when>2007-06-18 16:08:01 0000</bug_when>
            <thetext>hmmm...passed all tests over here (hence my bump when i saw the update notice from apache.org, irrespective of this bug). where&apos;s it failing ian?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mcummings@gentoo.org</who>
            <bug_when>2007-06-18 22:46:36 0000</bug_when>
            <thetext>http://www.gossamer-threads.com/lists/spamassassin/users/102895

tests seem broken for root. running as a regular user produces success

t/utf8......................ok                                               
t/util_wrap.................ok                                               
t/whitelist_addrs...........ok                                               
t/whitelist_from............ok                                               
t/whitelist_subject.........ok                                               
t/whitelist_to..............ok                                               
t/zz_cleanup................ok                                               
All tests successful, 16 tests skipped.
Files=129, Tests=1985, 582 wallclock secs (288.68 cusr + 22.90 csys = 311.58 CPU)


Move to disable tests for this release (especially if we&apos;re looking at a gsla related keywording)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jaervosz@gentoo.org</who>
            <bug_when>2007-06-23 18:02:30 0000</bug_when>
            <thetext>Thx Micheal.

Arches please test and mark stable. Target keywords are:

spamassassin-3.2.1-r1.ebuild:KEYWORDS=&quot;alpha amd64 hppa ia64 mips ppc ppc64 sparc x86&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>angelos@gentoo.org</who>
            <bug_when>2007-06-23 18:26:15 0000</bug_when>
            <thetext>amd64 done</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jer@gentoo.org</who>
            <bug_when>2007-06-23 23:57:21 0000</bug_when>
            <thetext>Marked stable for HPPA:
 dev-util/re2c-0.12.0
 mail-filter/spamassassin-3.2.1-r1</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>armin76@gentoo.org</who>
            <bug_when>2007-06-24 15:30:57 0000</bug_when>
            <thetext>alpha/ia64/x86 stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dertobi123@gentoo.org</who>
            <bug_when>2007-06-24 19:51:52 0000</bug_when>
            <thetext>ppc stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gustavoz@gentoo.org</who>
            <bug_when>2007-06-25 13:28:18 0000</bug_when>
            <thetext>sparc stable.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>corsair@gentoo.org</who>
            <bug_when>2007-06-26 05:47:26 0000</bug_when>
            <thetext>ppc64 stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jaervosz@gentoo.org</who>
            <bug_when>2007-07-01 02:23:07 0000</bug_when>
            <thetext>This one is ready for GLSA decision. I vote NO.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>py@gentoo.org</who>
            <bug_when>2007-07-01 09:51:03 0000</bug_when>
            <thetext>voting NO too.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>aetius@gentoo.org</who>
            <bug_when>2007-07-02 21:47:14 0000</bug_when>
            <thetext>vote no, too specific and extremely unlikely.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dercorny@gentoo.org</who>
            <bug_when>2007-07-13 16:19:26 0000</bug_when>
            <thetext>yet another no and closing</thetext>
          </long_desc>
      
    </bug>

</bugzilla>