CVE-2015-1855: verify_certificate_identity in the OpenSSL extension in Ruby before 2.0.0 patchlevel 645, 2.1.x before 2.1.6, and 2.2.x before 2.2.2 does not properly validate hostnames, which allows remote...
Medium CVSS 5.9
- CVE id
- CVE-2015-1855
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Ruby Runtimes and servers |
>= 2.1.0, < 2.1.6 >= 2.2.0, < 2.2.2 |
2.1.6, 2.2.2 |
How to fix it
Upgrade Ruby to the fixed release of the line you run: 2.1.6, 2.2.2.
ruby --version
- Install the patched Ruby release of your minor line (rbenv, the ruby image tag) and update .ruby-version.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
verifycertificateidentity in the OpenSSL extension in Ruby before 2.0.0 patchlevel 645, 2.1.x before 2.1.6, and 2.2.x before 2.2.2 does not properly validate hostnames, which allows remote attackers to spoof servers via vectors related to (1) multiple wildcards, (1) wildcards in IDNA names, (3) case sensitivity, and (4) non-ASCII characters.
References
- CVE-2015-1855 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2015-1855
- Web: https://bugs.ruby-lang.org/issues/9644
- Web: https://puppetlabs.com/security/cve/cve-2015-1855
- Web: https://www.ruby-lang.org/en/news/2015/04/13/ruby-openssl-hostname-matching-vulnerability/
- Web: https://bugs.ruby-lang.org/issues/9644
- Web: https://puppetlabs.com/security/cve/cve-2015-1855
- Web: https://www.ruby-lang.org/en/news/2015/04/13/ruby-openssl-hostname-matching-vulnerability/
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.