Bug 1853350 (CVE-2020-15719) - CVE-2020-15719 openldap: Certificate validation incorrectly matches name against CN-ID
Summary: CVE-2020-15719 openldap: Certificate validation incorrectly matches name agai...
Keywords:
Status: CLOSED WONTFIX
Alias: CVE-2020-15719
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1857290 1857291
Blocks: 1790666
TreeView+ depends on / blocked
 
Reported: 2020-07-02 12:56 UTC by Cedric Buissart
Modified: 2021-02-16 19:43 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-12-10 09:25:24 UTC
Embargoed:


Attachments (Terms of Use)

Description Cedric Buissart 2020-07-02 12:56:51 UTC
OpenLDAP library, libldap, fails to strictly follow RFC 6125 during certificate validation.

During certificate validation, a client matches the server's name against the Common Name identifier when other non-matching identifiers are present.
This is explicitly denied in RFC 6125 (section 6.4.4, Checking of Common Names) :

```
   As noted, a client MUST NOT seek a match for a reference identifier
   of CN-ID if the presented identifiers include a DNS-ID, SRV-ID,
   URI-ID, or any application-specific identifier types supported by the
   client.
```

This may help an attacker to force a client to consider a specially crafted certificate as valid, which could be used for a Person in the Middle attack.

Comment 1 Cedric Buissart 2020-07-02 12:56:55 UTC
Acknowledgments:

Name: Jakub Hrozek, Christian Heimes

Comment 4 Cedric Buissart 2020-07-15 15:26:26 UTC
In RHEL-8, this was fixed in openldap-2.4.46-10.el8

Comment 5 Cedric Buissart 2020-07-15 15:27:02 UTC
External References:

https://bugzilla.redhat.com/show_bug.cgi?id=1740070

Comment 7 Cedric Buissart 2020-07-15 17:03:14 UTC
related bugs :
original fix : https://bugzilla.redhat.com/show_bug.cgi?id=1740070 

regression fixes for the above : 
https://bugzilla.redhat.com/show_bug.cgi?id=1788572
https://bugzilla.redhat.com/show_bug.cgi?id=1814674


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