Improper Certificate Validation Affecting botan package, versions [2.2.0,2.6.0)


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.15% (52nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-BOTAN-2370636
  • published26 Jan 2022
  • disclosed2 Apr 2018
  • creditUnknown

Introduced: 2 Apr 2018

CVE-2018-9127  (opens in a new tab)
CWE-295  (opens in a new tab)

How to fix?

Upgrade botan to version 2.6.0 or higher.

Overview

Affected versions of this package are vulnerable to Improper Certificate Validation. Botan 2.2.0 - 2.4.0 (fixed in 2.5.0) improperly handled wildcard certificates and could accept certain certificates as valid for hostnames when, under RFC 6125 rules, they should not match. This only affects certificates issued to the same domain as the host, so to impersonate a host one must already have a wildcard certificate matching other hosts in the same domain. For example, b*.example.com would match some hostnames that do not begin with a 'b' character.

CVSS Scores

version 3.1