An issue was discovered in the OpenSSL library in Ruby before 2.3.8, 2.4.x before 2.4.5…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 25 fixed, 4 without a fix
Attack profile from CVSS 3.0 · NVD. Fix status from CNA, GitHub and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | openssl (RubyGems) | before 2.0.9 | 2.0.9 | Patch available | GHSA-mmrq-6999-72v8 |
| — | openssl (RubyGems) | 2.1.0 to before 2.1.2 | 2.1.2 | Patch available | GHSA-mmrq-6999-72v8 |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- openssl (RubyGems) Vendor— Affected before 2.0.9 Fixed in 2.0.9 Patch available GHSA-mmrq-6999-72v8
- openssl (RubyGems) Vendor— Affected 2.1.0 to before 2.1.2 Fixed in 2.1.2 Patch available GHSA-mmrq-6999-72v8
CPE configurations NVD · 11
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:ruby-lang:openssl:*:*:*:*:*:ruby:*:* | before 2.1.2 | Vulnerable | ruby |
| cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* | 2.3.0 – 2.3.7; 2.4.0 – 2.4.4; 2.5.0 – 2.5.1 | Vulnerable | ruby |
| cpe:2.3:a:ruby-lang:ruby:2.6.0:preview1:*:*:*:*:*:* | 2.6.0 preview1 | Vulnerable | ruby |
| cpe:2.3:a:ruby-lang:ruby:2.6.0:preview2:*:*:*:*:*:* | 2.6.0 preview2 | Vulnerable | ruby |
| cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:* | 14.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* | 16.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:* | 18.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:18.10:*:*:*:*:*:*:* | 18.10 | Vulnerable | Canonical |
| cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* | 8.0 | Vulnerable | Debian |
| cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* | 9.0 | Vulnerable | Debian |
- cpe:2.3:a:ruby-lang:openssl:*:*:*:*:*:ruby:*:* Versions before 2.1.2 Vulnerable ·ruby
- cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* Versions 2.3.0 – 2.3.7; 2.4.0 – 2.4.4; 2.5.0 – 2.5.1 Vulnerable ·ruby
- cpe:2.3:a:ruby-lang:ruby:2.6.0:preview1:*:*:*:*:*:* Versions 2.6.0 preview1 Vulnerable ·ruby
- cpe:2.3:a:ruby-lang:ruby:2.6.0:preview2:*:*:*:*:*:* Versions 2.6.0 preview2 Vulnerable ·ruby
- cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:* Versions 14.04 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* Versions 16.04 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:* Versions 18.04 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:18.10:*:*:*:*:*:*:* Versions 18.10 Vulnerable ·Canonical
- cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* Versions 8.0 Vulnerable ·Debian
- cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* Versions 9.0 Vulnerable ·Debian
Remediation
- Fix · GHSA-mmrq-6999-72v8 openssl (RubyGems) Fixed in 2.0.9 Advisory →
- Fix · GHSA-mmrq-6999-72v8 openssl (RubyGems) Fixed in 2.1.2 Advisory →
Red Hat 6 advisories
- RHSA-2019:2565 Released 2019-08-27 · Red Hat rating Importantruby security update
- Red Hat Enterprise Linux ComputeNode EUS (v. 7.5) ruby-2.0.0.648-34.el7_5, ruby-irb-2.0.0.648-34.el7_5, ruby-libs-2.0.0.648-34.el7_5 +6
- Red Hat Enterprise Linux ComputeNode Optional EUS (v. 7.5) ruby-devel-2.0.0.648-34.el7_5, ruby-doc-2.0.0.648-34.el7_5, ruby-tcltk-2.0.0.648-34.el7_5 +3
- Red Hat Enterprise Linux Server EUS (v. 7.5) ruby-2.0.0.648-34.el7_5, ruby-irb-2.0.0.648-34.el7_5, ruby-libs-2.0.0.648-34.el7_5 +7
- Red Hat Enterprise Linux Server Optional EUS (v. 7.5) ruby-devel-2.0.0.648-34.el7_5, ruby-doc-2.0.0.648-34.el7_5, ruby-tcltk-2.0.0.648-34.el7_5 +3
- RHSA-2019:1948 Released 2019-07-30 · Red Hat rating Importantruby security update
- Red Hat Enterprise Linux ComputeNode EUS (v. 7.4) ruby-2.0.0.648-34.el7_4, ruby-irb-2.0.0.648-34.el7_4, ruby-libs-2.0.0.648-34.el7_4 +6
- Red Hat Enterprise Linux ComputeNode Optional EUS (v. 7.4) ruby-devel-2.0.0.648-34.el7_4, ruby-doc-2.0.0.648-34.el7_4, ruby-tcltk-2.0.0.648-34.el7_4 +3
- Red Hat Enterprise Linux Server EUS (v. 7.4) ruby-2.0.0.648-34.el7_4, ruby-irb-2.0.0.648-34.el7_4, ruby-libs-2.0.0.648-34.el7_4 +7
- Red Hat Enterprise Linux Server Optional EUS (v. 7.4) ruby-devel-2.0.0.648-34.el7_4, ruby-doc-2.0.0.648-34.el7_4, ruby-tcltk-2.0.0.648-34.el7_4 +3
- RHSA-2018:3738 Released 2018-11-29 · Red Hat rating Importantruby security update
- Red Hat Enterprise Linux Client (v. 7) ruby-2.0.0.648-34.el7_6, ruby-irb-2.0.0.648-34.el7_6, ruby-libs-2.0.0.648-34.el7_6 +6
- Red Hat Enterprise Linux Client Optional (v. 7) ruby-devel-2.0.0.648-34.el7_6, ruby-doc-2.0.0.648-34.el7_6, ruby-tcltk-2.0.0.648-34.el7_6 +3
- Red Hat Enterprise Linux ComputeNode (v. 7) ruby-2.0.0.648-34.el7_6, ruby-irb-2.0.0.648-34.el7_6, ruby-libs-2.0.0.648-34.el7_6 +6
- Red Hat Enterprise Linux ComputeNode Optional (v. 7) ruby-devel-2.0.0.648-34.el7_6, ruby-doc-2.0.0.648-34.el7_6, ruby-tcltk-2.0.0.648-34.el7_6 +3
- Red Hat Enterprise Linux Server (v. 7) ruby-2.0.0.648-34.el7_6, ruby-irb-2.0.0.648-34.el7_6, ruby-libs-2.0.0.648-34.el7_6 +7
- Red Hat Enterprise Linux Server Optional (v. 7) ruby-devel-2.0.0.648-34.el7_6, ruby-doc-2.0.0.648-34.el7_6, ruby-tcltk-2.0.0.648-34.el7_6 +3
- Red Hat Enterprise Linux Workstation (v. 7) ruby-2.0.0.648-34.el7_6, ruby-irb-2.0.0.648-34.el7_6, ruby-libs-2.0.0.648-34.el7_6 +6
- Red Hat Enterprise Linux Workstation Optional (v. 7) ruby-devel-2.0.0.648-34.el7_6, ruby-doc-2.0.0.648-34.el7_6, ruby-tcltk-2.0.0.648-34.el7_6 +3
- Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7) ruby-2.0.0.648-34.el7_6, ruby-irb-2.0.0.648-34.el7_6, ruby-libs-2.0.0.648-34.el7_6 +6
- Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server Optional (v. 7) ruby-devel-2.0.0.648-34.el7_6, ruby-doc-2.0.0.648-34.el7_6, ruby-tcltk-2.0.0.648-34.el7_6 +3
Show 3 more Red Hat advisories
- RHSA-2018:3731 Released 2018-11-29 · Red Hat rating Importantrh-ruby25-ruby security, bug fix, and enhancement update
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-ruby25-ruby-2.5.3-6.el7, rh-ruby25-ruby-devel-2.5.3-6.el7, rh-ruby25-ruby-doc-2.5.3-6.el7 +17
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) rh-ruby25-ruby-2.5.3-6.el7, rh-ruby25-ruby-devel-2.5.3-6.el7, rh-ruby25-ruby-doc-2.5.3-6.el7 +17
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) rh-ruby25-ruby-2.5.3-6.el7, rh-ruby25-ruby-devel-2.5.3-6.el7, rh-ruby25-ruby-doc-2.5.3-6.el7 +17
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6) rh-ruby25-ruby-2.5.3-6.el7, rh-ruby25-ruby-devel-2.5.3-6.el7, rh-ruby25-ruby-doc-2.5.3-6.el7 +17
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-ruby25-ruby-2.5.3-6.el7, rh-ruby25-ruby-devel-2.5.3-6.el7, rh-ruby25-ruby-doc-2.5.3-6.el7 +17
- RHSA-2018:3730 Released 2018-11-29 · Red Hat rating Importantrh-ruby24-ruby security, bug fix, and enhancement update
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) rh-ruby24-ruby-2.4.5-91.el6, rh-ruby24-ruby-devel-2.4.5-91.el6, rh-ruby24-ruby-doc-2.4.5-91.el6 +17
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-ruby24-ruby-2.4.5-91.el7, rh-ruby24-ruby-devel-2.4.5-91.el7, rh-ruby24-ruby-doc-2.4.5-91.el7 +17
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) rh-ruby24-ruby-2.4.5-91.el7, rh-ruby24-ruby-devel-2.4.5-91.el7, rh-ruby24-ruby-doc-2.4.5-91.el7 +17
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) rh-ruby24-ruby-2.4.5-91.el7, rh-ruby24-ruby-devel-2.4.5-91.el7, rh-ruby24-ruby-doc-2.4.5-91.el7 +17
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6) rh-ruby24-ruby-2.4.5-91.el7, rh-ruby24-ruby-devel-2.4.5-91.el7, rh-ruby24-ruby-doc-2.4.5-91.el7 +17
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) rh-ruby24-ruby-2.4.5-91.el6, rh-ruby24-ruby-devel-2.4.5-91.el6, rh-ruby24-ruby-doc-2.4.5-91.el6 +17
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-ruby24-ruby-2.4.5-91.el7, rh-ruby24-ruby-devel-2.4.5-91.el7, rh-ruby24-ruby-doc-2.4.5-91.el7 +17
- RHSA-2018:3729 Released 2018-11-29 · Red Hat rating Importantrh-ruby23-ruby security, bug fix, and enhancement update
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) rh-ruby23-ruby-2.3.8-69.el6, rh-ruby23-ruby-devel-2.3.8-69.el6, rh-ruby23-ruby-doc-2.3.8-69.el6 +16
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-ruby23-ruby-2.3.8-69.el7, rh-ruby23-ruby-devel-2.3.8-69.el7, rh-ruby23-ruby-doc-2.3.8-69.el7 +16
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) rh-ruby23-ruby-2.3.8-69.el7, rh-ruby23-ruby-devel-2.3.8-69.el7, rh-ruby23-ruby-doc-2.3.8-69.el7 +16
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) rh-ruby23-ruby-2.3.8-69.el7, rh-ruby23-ruby-devel-2.3.8-69.el7, rh-ruby23-ruby-doc-2.3.8-69.el7 +16
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6) rh-ruby23-ruby-2.3.8-69.el7, rh-ruby23-ruby-devel-2.3.8-69.el7, rh-ruby23-ruby-doc-2.3.8-69.el7 +16
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) rh-ruby23-ruby-2.3.8-69.el6, rh-ruby23-ruby-devel-2.3.8-69.el6, rh-ruby23-ruby-doc-2.3.8-69.el6 +16
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-ruby23-ruby-2.3.8-69.el7, rh-ruby23-ruby-devel-2.3.8-69.el7, rh-ruby23-ruby-doc-2.3.8-69.el7 +16
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 5 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Will not fix |
| Red Hat Subscription Asset Manager | Affected | No fix planned: Will not fix |
| Red Hat Virtualization 4 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux Client (v. 7) | Fixed | RHSA-2018:3738 |
| Red Hat Enterprise Linux Client Optional (v. 7) | Fixed | RHSA-2018:3738 |
| Red Hat Enterprise Linux ComputeNode (v. 7) | Fixed | RHSA-2018:3738 |
| Red Hat Enterprise Linux ComputeNode EUS (v. 7.4) | Fixed | RHSA-2019:1948 |
| Red Hat Enterprise Linux ComputeNode EUS (v. 7.5) | Fixed | RHSA-2019:2565 |
| Red Hat Enterprise Linux ComputeNode Optional (v. 7) | Fixed | RHSA-2018:3738 |
| Red Hat Enterprise Linux ComputeNode Optional EUS (v. 7.4) | Fixed | RHSA-2019:1948 |
| Red Hat Enterprise Linux ComputeNode Optional EUS (v. 7.5) | Fixed | RHSA-2019:2565 |
| Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2018:3738 |
| Red Hat Enterprise Linux Server EUS (v. 7.4) | Fixed | RHSA-2019:1948 |
| Red Hat Enterprise Linux Server EUS (v. 7.5) | Fixed | RHSA-2019:2565 |
| Red Hat Enterprise Linux Server Optional (v. 7) | Fixed | RHSA-2018:3738 |
| Red Hat Enterprise Linux Server Optional EUS (v. 7.4) | Fixed | RHSA-2019:1948 |
| Red Hat Enterprise Linux Server Optional EUS (v. 7.5) | Fixed | RHSA-2019:2565 |
| Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2018:3738 |
| Red Hat Enterprise Linux Workstation Optional (v. 7) | Fixed | RHSA-2018:3738 |
| Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7) | Fixed | RHSA-2018:3738 |
| Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server Optional (v. 7) | Fixed | RHSA-2018:3738 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) | Fixed | RHSA-2018:3729, RHSA-2018:3730 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2018:3729, RHSA-2018:3730, RHSA-2018:3731 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) | Fixed | RHSA-2018:3729, RHSA-2018:3730, RHSA-2018:3731 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) | Fixed | RHSA-2018:3729, RHSA-2018:3730, RHSA-2018:3731 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6) | Fixed | RHSA-2018:3729, RHSA-2018:3730, RHSA-2018:3731 |
| Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) | Fixed | RHSA-2018:3729, RHSA-2018:3730 |
| Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2018:3729, RHSA-2018:3730, RHSA-2018:3731 |
Not affected: 1 product
- Red Hat Enterprise Linux 8
Timeline
- 2026-10-02 Threatist record created from CVE-2018-16395
- 2026-10-03 Alias added: GHSA-mmrq-6999-72v8
References
Advisory 17
- https://www.ruby-lang.org/en/news/2018/10/17/openssl-x509-name-equality-check-does-not-work-correctly-cve-2018-16395/
- RHSA-2018:3738
- https://www.ruby-lang.org/en/news/2018/11/06/ruby-2-6-0-preview3-released/
- RHSA-2018:3729
- RHSA-2018:3730
- RHSA-2018:3731
- https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-3-8-released/
- DSA-4332
- USN-3808-1
- https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-4-5-released/
- https://security.netapp.com/advisory/ntap-20190221-0002/
- https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-5-2-released/
- [debian-lts-announce] 20181028 [SECURITY] [DLA 1558-1] ruby2.1 security update
- openSUSE-SU-2019:1771
- RHSA-2019:1948
- RHSA-2019:2565
- https://nvd.nist.gov/vuln/detail/CVE-2018-16395
Other 11
- https://www.oracle.com/security-alerts/cpujan2020.html
- https://github.com/ruby/openssl/commit/f653cfa43f0f20e8c440122ea982382b6228e7f5
- https://www.ruby-lang.org/en/news/2018/11/06/ruby-2-6-0-preview3-released
- https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-5-2-released
- https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-4-5-released
- https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-3-8-released
- https://www.ruby-lang.org/en/news/2018/10/17/openssl-x509-name-equality-check-does-not-work-correctly-cve-2018-16395
- https://web.archive.org/web/20211206015239/https://securitytracker.com/id/1042105
- https://usn.ubuntu.com/3808-1
- https://security.netapp.com/advisory/ntap-20190221-0002
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/openssl/CVE-2018-16395.yml
Sources
- CVE-2018-16395 · CVE Program
- CVE-2018-16395 · NVD
- FIRST EPSS
- GHSA-mmrq-6999-72v8 · GitHub Advisory Database · CC BY 4.0
- CVE-2018-16395 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences