Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 746266 - (CVE-2009-3897) CVE-2009-3897 dovecot: Insecure permissions set for certain directories at installation time
CVE-2009-3897 dovecot: Insecure permissions set for certain directories at in...
Status: CLOSED WONTFIX
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
low Severity low
: ---
: ---
Assigned To: Red Hat Product Security
impact=low,public=20091120,reported=2...
: Security
Depends On:
Blocks: 746273
  Show dependency treegraph
 
Reported: 2011-10-14 11:07 EDT by Jan Lieskovsky
Modified: 2015-03-09 05:10 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-03-06 07:03:54 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Comment 1 Huzaifa S. Sidhpurwala 2011-10-17 05:23:26 EDT
Upstream patch:

http://hg.dovecot.org/dovecot-1.2/rev/3ebbccdc05e6
Comment 2 Huzaifa S. Sidhpurwala 2011-10-17 05:27:18 EDT
rhel-5 uses dovecot-1.0, here is the relevant code snippet:
============================================================

    803 	if (mkdir_parents(set->base_dir, 0777) < 0 && errno != EEXIST) {
    804 		i_error("mkdir(%s) failed: %m", set->base_dir);
    805 		return FALSE;
    806 	}

...

    812 	if ((st.st_mode & 0310) != 0310 || (st.st_mode & 0777) == 0777) {

...
    822 		if (chmod(set->base_dir, 0755) < 0)
    823 			i_error("chmod(%s) failed: %m", set->base_dir);
    824 	}
    825 


Here the base_dir is created with 0777 and then the permission is later changed to 0755

rhel-6 used dovecot-2.0, here:
==============================
    671 	if (mkdir_parents(set->base_dir, 0755) < 0 && errno != EEXIST) {
    672 		i_error("mkdir(%s) failed: %m", set->base_dir);
    673 		return FALSE;
    674 	}

...

    684 	if ((st.st_mode & 0755) != 0755) {
    685 		i_warning("Fixing permissions of %s to be world-readable",
    686 			  set->base_dir);
    687 		if (chmod(set->base_dir, 0755) < 0)
    688 			i_error("chmod(%s) failed: %m", set->base_dir);
    689 	}

and therefore is not affected by this issue
Comment 4 Huzaifa S. Sidhpurwala 2011-10-17 05:43:43 EDT
Statement:

This issue did not affect the version of dovecot shipped with Red Hat Enterprise Linux 6.

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