Bug 1311620 (CVE-2015-7826) - CVE-2015-7826 botan: acceptance of invalid certificate names
Summary: CVE-2015-7826 botan: acceptance of invalid certificate names
Alias: CVE-2015-7826
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Whiteboard: impact=moderate,public=20151026,repor...
Depends On:
TreeView+ depends on / blocked
Reported: 2016-02-24 15:38 UTC by Andrej Nemec
Modified: 2019-06-08 21:01 UTC (History)
1 user (show)

Fixed In Version: botan 1.11.22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2018-01-31 16:55:07 UTC

Attachments (Terms of Use)

Description Andrej Nemec 2016-02-24 15:38:11 UTC
RFC 6125 specifies how to match a X.509v3 certificate against a DNS name for application usage.

Otherwise valid certificates using wildcards would be accepted as matching certain hostnames they should not according to RFC 6125. For example a certificate issued for ‘*.example.com’ should match ‘foo.example.com’ but not ‘example.com’ or ‘bar.foo.example.com’. Previously Botan would accept such a certificate as valid for ‘bar.foo.example.com’.

RFC 6125 also requires that when matching a X.509 certificate against a DNS name, the CN entry is only compared if no subjectAlternativeName entry is available. Previously X509_Certificate::matches_dns_name would always check both names.

External references:


Comment 1 Thomas Moschny 2016-04-29 18:34:40 UTC
CVE-2015-7826 only affects 1.11.X for X<22.

In Fedora/EPEL, we have 1.8.X and 1.10.X (i.e. stable) versions.

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