ArchLinux: 201504-13: ruby: permissive certificate verification
Summary
After reviewing RFC 6125 and RFC 5280, multiple violations were found of
matching hostnames and particularly wildcard certificates.
Ruby’s OpenSSL extension will now provide a string-based matching
algorithm which follows more strict behavior, as recommended by these
RFCs. In particular, matching of more than one wildcard per subject/SAN
is no-longer allowed. As well, comparison of these values are now
case-insensitive.
This change will take affect Ruby’s
OpenSSL::SSL#verify_certificate_identity behavior.
Specifically:
- Only one wildcard character in the left-most part of the hostname is
allowed.
- IDNA names can now only be matched by a simple wildcard (e.g.
‘*.domain’).
- Subject/SAN should be limited to ASCII characters only.
Resolution
Upgrade to 2.2.2-1.
# pacman -Syu "ruby>=2.2.2-1"
The problem has been fixed upstream in version 2.2.2.
References
https://www.ruby-lang.org/en/news/2015/04/13/ruby-openssl-hostname-matching-vulnerability/ https://access.redhat.com/security/cve/CVE-2015-1855 https://bugs.ruby-lang.org/issues/9644
![Dist Arch](/images/distros/dist-arch.png)
Workaround
None.