Bug 530715 (CVE-2009-3767)

Summary: CVE-2009-3767 OpenLDAP: Doesn't properly handle NULL character in subject Common Name
Product: [Other] Security Response Reporter: Jan Lieskovsky <jlieskov>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: jsafrane, jvcelak, jzeleny, kreilly, mjc, vdanen
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://www.openldap.org/devel/cvsweb.cgi/libraries/libldap/tls_o.c.diff?r1=1.8&r2=1.11&f=h
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-12-03 10:46:00 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: 537895, 549872, 560912, 606399, 606400    
Bug Blocks:    

Description Jan Lieskovsky 2009-10-24 12:55:08 UTC
Common Vulnerabilities and Exposures assigned an identifier CVE-2009-3767 to
the following vulnerability:

libraries/libldap/tls_o.c in OpenLDAP, when OpenSSL is used, does not
properly handle a '\0' character in a domain name in the subject's
Common Name (CN) field of an X.509 certificate, which allows
man-in-the-middle attackers to spoof arbitrary SSL servers via a
crafted certificate issued by a legitimate Certification Authority, a
related issue to CVE-2009-2408.

References:
-----------
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3767
http://marc.info/?l=oss-security&m=125198917018936&w=2
http://marc.info/?l=oss-security&m=125369675820512&w=2
http://lists.opensuse.org/opensuse-security-announce/2009-10/msg00001.html

Upstream patch:
---------------
http://www.openldap.org/devel/cvsweb.cgi/libraries/libldap/tls_o.c.diff?r1=1.8&r2=1.11&f=h

Comment 1 Jan Lieskovsky 2009-10-24 12:57:02 UTC
This issue affects the versions of the openldap package, as shipped
with Red Hat Enterprise Linux 3, 4, and 5.

This issue affects the versions of the openldap package, as shipped
with Fedora releases of 10 (openldap-2.4.12-1.fc10),
11 (openldap-2.4.15-6.fc11) and as scheduled to appear in Fedora
of release 12 (openldap-2.4.18-5.fc12).

Please fix.

Comment 9 Vincent Danen 2009-11-25 17:38:44 UTC
This issue affects openldap versions as shipped in Red Hat Enterprise Linux 3, 4, and 5.

Due to how OpenLDAP is typically deployed, the exposure of this flaw is limited.  A malicious attacker would need to perform attacks on a local network to perform a Man-in-the-Middle attack (ARP spoofing, fake AP, control over an intermediate node, or DNS hijacking), as well as having a crafted certificate that OpenLDAP would see as valid from an authorized and trusted Certificate Authority.

This was rated as having moderate security impact.  Future openldap updates may address this flaw.  We do not currently plan to release updates to address only this flaw.

Comment 12 Fedora Update System 2010-03-02 01:03:22 UTC
openldap-2.4.15-7.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 13 errata-xmlrpc 2010-03-30 08:04:50 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5

Via RHSA-2010:0198 https://rhn.redhat.com/errata/RHSA-2010-0198.html

Comment 16 errata-xmlrpc 2010-07-20 16:34:53 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 4

Via RHSA-2010:0543 https://rhn.redhat.com/errata/RHSA-2010-0543.html

Comment 17 Vincent Danen 2010-07-20 21:20:01 UTC
Statement:

This issue was addressed in the openldap packages as shipped with Red Hat Enterprise Linux 5 and 4 via: https://rhn.redhat.com/errata/RHSA-2010-0198.html and https://rhn.redhat.com/errata/RHSA-2010-0543.html respectively.

The Red Hat Security Response Team has rated this issue as having moderate security impact, a future openldap update may address this flaw in Red Hat Enterprise Linux 3.

Comment 18 errata-xmlrpc 2011-06-22 23:17:55 UTC
This issue has been addressed in following products:

  JBoss Enterprise Web Server 1.0

Via RHSA-2011:0896 https://rhn.redhat.com/errata/RHSA-2011-0896.html