CVE-2018-16395: An issue was discovered in the OpenSSL library in Ruby before 2.3.8, 2.4.x before 2.4.5, 2.5.x before 2.5.2, and 2.6.x before 2.6.0-preview3.
Critical CVSS 9.8
- CVE id
- CVE-2018-16395
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Ruby Runtimes and servers |
>= 2.3.0, <= 2.3.7 >= 2.4.0, <= 2.4.4 >= 2.5.0, <= 2.5.1 |
after 2.3.7, 2.4.4, 2.5.1 |
How to fix it
Upgrade Ruby to a release newer than the last affected update of the line you run (2.3.7, 2.4.4, 2.5.1).
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
An issue was discovered in the OpenSSL library in Ruby before 2.3.8, 2.4.x before 2.4.5, 2.5.x before 2.5.2, and 2.6.x before 2.6.0-preview3. When two OpenSSL::X509::Name objects are compared using ==, depending on the ordering, non-equal objects may return true. When the first argument is one character longer than the second, or the second argument contains a character that is one less than a character in the same position of the first argument, the result of == will be true. This could be leveraged to create an illegitimate certificate that may be accepted as legitimate and then used in signing or encryption operations.
References
- CVE-2018-16395 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2018-16395
- Web: https://access.redhat.com/errata/RHSA-2018:3729
- Web: https://access.redhat.com/errata/RHSA-2018:3730
- Web: https://access.redhat.com/errata/RHSA-2018:3731
- Web: https://access.redhat.com/errata/RHSA-2018:3738
- Web: https://access.redhat.com/errata/RHSA-2019:1948
- Web: https://access.redhat.com/errata/RHSA-2019:2565
- Web: https://hackerone.com/reports/387250
- Web: https://lists.debian.org/debian-lts-announce/2018/10/msg00020.html
- Web: https://security.netapp.com/advisory/ntap-20190221-0002/
- Web: https://usn.ubuntu.com/3808-1/
- Web: https://www.debian.org/security/2018/dsa-4332
- Web: https://www.oracle.com/security-alerts/cpujan2020.html
- Web: https://www.ruby-lang.org/en/news/2018/10/17/openssl-x509-name-equality-check-does-not-work-correctly-cve-2018-16395/
- Web: https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-3-8-released/
- Web: https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-4-5-released/
- Web: https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-5-2-released/
- Web: https://www.ruby-lang.org/en/news/2018/11/06/ruby-2-6-0-preview3-released/
- Web: https://access.redhat.com/errata/RHSA-2018:3729
- Web: https://access.redhat.com/errata/RHSA-2018:3730
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.