Bug 709097 (CVE-2011-2167)

Summary: CVE-2011-2167 dovecot: directory traversal due to not obeying chroot directive
Product: [Other] Security Response Reporter: Vincent Danen <vdanen>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: kvolny, mhlavink
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-22 04:12:17 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: 709108, 885557    
Bug Blocks: 712345, 855229    

Description Vincent Danen 2011-05-30 15:22:41 UTC
Common Vulnerabilities and Exposures assigned an identifier CVE-2011-2167 to
the following vulnerability:

Name: CVE-2011-2167
URL: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-2167
Assigned: 20110524
Reference: http://dovecot.org/pipermail/dovecot/2011-May/059085.html
Reference: http://openwall.com/lists/oss-security/2011/05/18/4
Reference: http://www.dovecot.org/doc/NEWS-2.0

script-login in Dovecot 2.0.x before 2.0.13 does not follow the chroot
configuration setting, which might allow remote authenticated users to
conduct directory traversal attacks by leveraging a script.

Comment 1 Vincent Danen 2011-05-30 16:23:13 UTC
Created dovecot tracking bugs for this issue

Affects: fedora-all [bug 709108]

Comment 2 Huzaifa S. Sidhpurwala 2011-08-05 04:55:08 UTC
Looking at the upstream NEWS file, i dont see this bug/issue being seperately mentioned.
Also looking at the timeline it seems the following patch is the only one which would fit the bill, not sure if its applicable though:

http://hg.dovecot.org/dovecot-2.0/diff/a2d57b43ccb2/src/util/script-login.c

Comment 3 Huzaifa S. Sidhpurwala 2011-08-05 04:56:21 UTC
Michal,

Can you please take a look at this issue?

Comment 7 Michal Hlavinka 2011-08-08 14:38:09 UTC
(In reply to comment #3)
> Michal,
> 
> Can you please take a look at this issue?

this and CVE-2011-2166 have the same fix from comment #2, but this fix causes some regressions. Upstream knows about this and promised to fix it for next version. That fix is not available atm.

Comment 8 Huzaifa S. Sidhpurwala 2011-08-09 03:13:04 UTC
(In reply to comment #7)
> (In reply to comment #3)
> > Michal,
> > 
> > Can you please take a look at this issue?
> 
> this and CVE-2011-2166 have the same fix from comment #2, but this fix causes
> some regressions. Upstream knows about this and promised to fix it for next
> version. That fix is not available atm.

Ok, upstream just confirmed this. I was under the impression that Timo just mentioned CVE-2011-2166.

Comment 9 Huzaifa S. Sidhpurwala 2011-08-09 03:13:15 UTC
Upstream has confirmed that this particular fix, will break current
configurations for the dovecot server, which will only be fixed in 2.0.14

Reference:
http://www.mail-archive.com/dovecot@dovecot.org/msg38350.html

Comment 10 Huzaifa S. Sidhpurwala 2011-09-01 05:22:48 UTC
Dovecot 2.0.14 is released:
http://dovecot.org/list/dovecot-news/2011-August/000193.html

The following in the Changelog suggests that comment #4 has been addressed:

script-login attempted an unnecessary config lookup, which usually
failed with "Permission denied"

Comment 13 errata-xmlrpc 2013-02-21 10:35:28 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 6

Via RHSA-2013:0520 https://rhn.redhat.com/errata/RHSA-2013-0520.html

Comment 14 Huzaifa S. Sidhpurwala 2013-02-22 04:23:48 UTC
Statement:

(none)