<?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>197958</bug_id>
          <alias>CVE-2007-5795</alias>
          <creation_ts>2007-11-03 13:44 0000</creation_ts>
          <short_desc>app-editors/emacs hack-local-variables Security bypass (CVE-2007-5795)</short_desc>
          <delta_ts>2007-12-09 19:53:54 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://bugs.debian.org/cgi-bin/bugreport.cgi?bug=449008</bug_file_loc>
          <status_whiteboard>B3 [glsa]</status_whiteboard>
          
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>rbu@gentoo.org</reporter>
          <assigned_to>security@gentoo.org</assigned_to>
          <cc>emacs@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2007-11-03 13:44:07 0000</bug_when>
            <thetext>CVE-2007-5795 (http://nvd.nist.gov/nvd.cfm?cvename=CVE-2007-5795):
  The hack-local-variables function in Emacs before 22.2, when
  enable-local-variables is set to :safe, does not properly search lists of
  unsafe or risky variables, which might allow user-assisted attackers to
  bypass intended restrictions and modify critical program variables via a file
  containing a Local variables declaration.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2007-11-03 13:46:47 0000</bug_when>
            <thetext>Emacs, please advise.
Is any of our ebuilds affected, or maybe other packages than app-editors/emacs?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ulm@gentoo.org</who>
            <bug_when>2007-11-03 15:05:46 0000</bug_when>
            <thetext>Fixed in emacs-22.1-r2. Decreasing severity to B4 since the issue doesn&apos;t affect the default configuration.

Vulnerable versions: &lt;22.1-r2
Unaffected versions: &gt;=22.1-r2, &lt;22

Arch teams: Please stabilise app-editors/emacs-22.1-r2.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>armin76@gentoo.org</who>
            <bug_when>2007-11-03 17:33:18 0000</bug_when>
            <thetext>alpha/ia64/stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>cla@gentoo.org</who>
            <bug_when>2007-11-03 19:12:32 0000</bug_when>
            <thetext>Stable on x86</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>corsair@gentoo.org</who>
            <bug_when>2007-11-03 22:28:01 0000</bug_when>
            <thetext>ppc64 stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dertobi123@gentoo.org</who>
            <bug_when>2007-11-05 18:53:36 0000</bug_when>
            <thetext>ppc stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kingtaco@gentoo.org</who>
            <bug_when>2007-11-06 23:14:41 0000</bug_when>
            <thetext>amd64 done(committed by wolf31o2 for me)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2007-11-06 23:15:12 0000</bug_when>
            <thetext>You&apos;ll probably want to back-port this to the latest SLOT=21 version, too.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ulm@gentoo.org</who>
            <bug_when>2007-11-06 23:58:03 0000</bug_when>
            <thetext>Vulnerable revision emacs-22.1-r1 removed.

(In reply to comment #8)
&gt; You&apos;ll probably want to back-port this to the latest SLOT=21 version, too.

Emacs 21 is not affected; the relevant code is new in version 22.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jaervosz@gentoo.org</who>
            <bug_when>2007-11-07 09:41:31 0000</bug_when>
            <thetext>I tend to vote NO.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2007-11-12 21:59:33 0000</bug_when>
            <thetext>Setting to B3 and voting
  YES

This vulnerability, if emacs is configured as described above, allows execution of arbitrary LISP (not shell) code, therefore can overwrite files writable by emacs. See last comment on the Debian report in URL.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>py@gentoo.org</who>
            <bug_when>2007-11-20 22:13:04 0000</bug_when>
            <thetext>yes too, request filed.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>py@gentoo.org</who>
            <bug_when>2007-12-09 19:53:54 0000</bug_when>
            <thetext>GLSA 200712-03</thetext>
          </long_desc>
      
    </bug>

</bugzilla>