CVE-2018-16395
publishedruby: OpenSSL::X509:: Name equality check does not work correctly
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Amazon Linux | AL2 | Release evaluationALAS2-2019-1143 | Fixed | Not stated | Amazon Linux assessment |
| Alpine Linux | edge | ruby | Fixed | 2.5.2-r0 | Package fix record |
| Debian | jessie | ruby2.1 | Advisory build | 2.1.5-2+deb8u6 | DLA-1558-1 |
| Oracle Linux | 7 | rubyaarch64 | Advisory build | 0:2.0.0.648-34.el7_6 | ELSA-2018-3738 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby23-rubysrc | Advisory build | 2.3.8-69.el6 | RHSA-2018:3729 |
| Alpine Linux | v3.11 | ruby | Fixed | 2.5.2-r0 | Package fix record |
| Alpine Linux | v3.12 | ruby | Fixed | 2.5.2-r0 | Package fix record |
Show 94 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.13 | ruby | Fixed | 2.5.2-r0 | Package fix record |
| Alpine Linux | v3.14 | ruby | Fixed | 2.5.2-r0 | Package fix record |
| Alpine Linux | v3.15 | ruby | Fixed | 2.5.2-r0 | Package fix record |
| Alpine Linux | v3.16 | ruby | Fixed | 2.5.2-r0 | Package fix record |
| Alpine Linux | v3.17 | ruby | Fixed | 2.5.2-r0 | Package fix record |
| Alpine Linux | v3.18 | ruby | Fixed | 2.5.2-r0 | Package fix record |
| Alpine Linux | v3.19 | ruby | Fixed | 2.5.2-r0 | Package fix record |
| Alpine Linux | v3.20 | ruby | Fixed | 2.5.2-r0 | Package fix record |
| Alpine Linux | v3.21 | ruby | Fixed | 2.5.2-r0 | Package fix record |
| Alpine Linux | v3.22 | ruby | Fixed | 2.5.2-r0 | Package fix record |
| Alpine Linux | v3.23 | ruby | Fixed | 2.5.2-r0 | Package fix record |
| Alpine Linux | v3.24 | ruby | Fixed | 2.5.2-r0 | Package fix record |
| Alpine Linux | v3.4 | ruby | Fixed | 2.3.8-r0 | Package fix record |
| Alpine Linux | v3.5 | ruby | Fixed | 2.3.8-r0 | Package fix record |
| Alpine Linux | v3.6 | ruby | Fixed | 2.4.5-r0 | Package fix record |
| Alpine Linux | v3.7 | ruby | Fixed | 2.4.5-r0 | Package fix record |
| Alpine Linux | v3.8 | ruby | Fixed | 2.5.2-r0 | Package fix record |
| Alpine Linux | v3.9 | ruby | Fixed | 2.5.2-r0 | Package fix record |
| Debian | stretch | ruby2.3 | Advisory build | 2.3.3-1+deb9u4 | DSA-4332-1 |
| Oracle Linux | 7 | rubyx86_64 | Advisory build | 0:2.0.0.648-34.el7_6 | ELSA-2018-3738 |
| Oracle Linux | 7 | ruby-develaarch64 | Advisory build | 0:2.0.0.648-34.el7_6 | ELSA-2018-3738 |
| Oracle Linux | 7 | ruby-develx86_64 | Advisory build | 0:2.0.0.648-34.el7_6 | ELSA-2018-3738 |
| Oracle Linux | 7 | ruby-docaarch64 | Advisory build | 0:2.0.0.648-34.el7_6 | ELSA-2018-3738 |
| Oracle Linux | 7 | ruby-docx86_64 | Advisory build | 0:2.0.0.648-34.el7_6 | ELSA-2018-3738 |
| Oracle Linux | 7 | ruby-irbaarch64 | Advisory build | 0:2.0.0.648-34.el7_6 | ELSA-2018-3738 |
| Oracle Linux | 7 | ruby-irbx86_64 | Advisory build | 0:2.0.0.648-34.el7_6 | ELSA-2018-3738 |
| Oracle Linux | 7 | ruby-libsaarch64 | Advisory build | 0:2.0.0.648-34.el7_6 | ELSA-2018-3738 |
| Oracle Linux | 7 | ruby-libsx86_64 | Advisory build | 0:2.0.0.648-34.el7_6 | ELSA-2018-3738 |
| Oracle Linux | 7 | ruby-tcltkaarch64 | Advisory build | 0:2.0.0.648-34.el7_6 | ELSA-2018-3738 |
| Oracle Linux | 7 | ruby-tcltkx86_64 | Advisory build | 0:2.0.0.648-34.el7_6 | ELSA-2018-3738 |
| Oracle Linux | 7 | rubygem-bigdecimalaarch64 | Advisory build | 0:1.2.0-34.el7_6 | ELSA-2018-3738 |
| Oracle Linux | 7 | rubygem-bigdecimalx86_64 | Advisory build | 0:1.2.0-34.el7_6 | ELSA-2018-3738 |
| Oracle Linux | 7 | rubygem-io-consoleaarch64 | Advisory build | 0:0.4.2-34.el7_6 | ELSA-2018-3738 |
| Oracle Linux | 7 | rubygem-io-consolex86_64 | Advisory build | 0:0.4.2-34.el7_6 | ELSA-2018-3738 |
| Oracle Linux | 7 | rubygem-jsonaarch64 | Advisory build | 0:1.7.7-34.el7_6 | ELSA-2018-3738 |
| Oracle Linux | 7 | rubygem-jsonx86_64 | Advisory build | 0:1.7.7-34.el7_6 | ELSA-2018-3738 |
| Oracle Linux | 7 | rubygem-minitestaarch64 | Advisory build | 0:4.3.2-34.el7_6 | ELSA-2018-3738 |
| Oracle Linux | 7 | rubygem-minitestx86_64 | Advisory build | 0:4.3.2-34.el7_6 | ELSA-2018-3738 |
| Oracle Linux | 7 | rubygem-psychaarch64 | Advisory build | 0:2.0.0-34.el7_6 | ELSA-2018-3738 |
| Oracle Linux | 7 | rubygem-psychx86_64 | Advisory build | 0:2.0.0-34.el7_6 | ELSA-2018-3738 |
| Oracle Linux | 7 | rubygem-rakeaarch64 | Advisory build | 0:0.9.6-34.el7_6 | ELSA-2018-3738 |
| Oracle Linux | 7 | rubygem-rakex86_64 | Advisory build | 0:0.9.6-34.el7_6 | ELSA-2018-3738 |
| Oracle Linux | 7 | rubygem-rdocaarch64 | Advisory build | 0:4.0.0-34.el7_6 | ELSA-2018-3738 |
| Oracle Linux | 7 | rubygem-rdocx86_64 | Advisory build | 0:4.0.0-34.el7_6 | ELSA-2018-3738 |
| Oracle Linux | 7 | rubygemsaarch64 | Advisory build | 0:2.0.14.1-34.el7_6 | ELSA-2018-3738 |
| Oracle Linux | 7 | rubygemsx86_64 | Advisory build | 0:2.0.14.1-34.el7_6 | ELSA-2018-3738 |
| Oracle Linux | 7 | rubygems-develaarch64 | Advisory build | 0:2.0.14.1-34.el7_6 | ELSA-2018-3738 |
| Oracle Linux | 7 | rubygems-develx86_64 | Advisory build | 0:2.0.14.1-34.el7_6 | ELSA-2018-3738 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby23-rubyx86_64 | Advisory build | 2.3.8-69.el6 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby23-ruby-debuginfox86_64 | Advisory build | 2.3.8-69.el6 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby23-ruby-develx86_64 | Advisory build | 2.3.8-69.el6 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby23-ruby-docnoarch | Advisory build | 2.3.8-69.el6 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby23-ruby-irbnoarch | Advisory build | 2.3.8-69.el6 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby23-ruby-libsx86_64 | Advisory build | 2.3.8-69.el6 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby23-ruby-tcltkx86_64 | Advisory build | 2.3.8-69.el6 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby23-rubygem-bigdecimalx86_64 | Advisory build | 1.2.8-69.el6 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby23-rubygem-did_you_meanx86_64 | Advisory build | 1.0.0-69.el6 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby23-rubygem-io-consolex86_64 | Advisory build | 0.4.5-69.el6 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby23-rubygem-jsonx86_64 | Advisory build | 1.8.3.1-69.el6 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby23-rubygem-minitestnoarch | Advisory build | 5.8.5-69.el6 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby23-rubygem-net-telnetx86_64 | Advisory build | 0.1.1-69.el6 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby23-rubygem-power_assertnoarch | Advisory build | 0.2.6-69.el6 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby23-rubygem-psychx86_64 | Advisory build | 2.1.0.1-69.el6 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby23-rubygem-rakenoarch | Advisory build | 10.4.2-69.el6 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby23-rubygem-rdocnoarch | Advisory build | 4.2.1-69.el6 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby23-rubygem-test-unitnoarch | Advisory build | 3.1.5-69.el6 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby23-rubygemsnoarch | Advisory build | 2.5.2.3-69.el6 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby23-rubygems-develnoarch | Advisory build | 2.5.2.3-69.el6 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubysrc | Advisory build | 2.4.5-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubyx86_64 | Advisory build | 2.4.5-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-ruby-debuginfox86_64 | Advisory build | 2.4.5-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-ruby-develx86_64 | Advisory build | 2.4.5-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-ruby-docnoarch | Advisory build | 2.4.5-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-ruby-irbnoarch | Advisory build | 2.4.5-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-ruby-libsx86_64 | Advisory build | 2.4.5-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygem-bigdecimalx86_64 | Advisory build | 1.3.2-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygem-did_you_meanx86_64 | Advisory build | 1.1.0-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygem-io-consolex86_64 | Advisory build | 0.4.6-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygem-jsonx86_64 | Advisory build | 2.0.4-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygem-minitestnoarch | Advisory build | 5.10.1-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygem-net-telnetx86_64 | Advisory build | 0.1.1-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygem-opensslx86_64 | Advisory build | 2.0.9-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygem-power_assertnoarch | Advisory build | 0.4.1-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygem-psychx86_64 | Advisory build | 2.2.2-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygem-rakenoarch | Advisory build | 12.0.0-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygem-rdocnoarch | Advisory build | 5.0.0-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygem-test-unitnoarch | Advisory build | 3.2.3-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygem-xmlrpcnoarch | Advisory build | 0.2.1-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygemsnoarch | Advisory build | 2.6.14.3-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygems-develnoarch | Advisory build | 2.6.14.3-91.el6 | RHSA-2018:3730 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby23-rubysrc | Advisory build | 2.3.8-69.el7 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby23-rubyx86_64 | Advisory build | 2.3.8-69.el7 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby23-ruby-debuginfox86_64 | Advisory build | 2.3.8-69.el7 | RHSA-2018:3729 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby23-ruby-develx86_64 | Advisory build | 2.3.8-69.el7 | RHSA-2018:3729 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
19- openSUSE-SU-2019:1771 http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00036.html
- 1042105 http://www.securitytracker.com/id/1042105
- RHSA-2018:3729 https://access.redhat.com/errata/RHSA-2018:3729
- RHSA-2018:3730 https://access.redhat.com/errata/RHSA-2018:3730
- RHSA-2018:3731 https://access.redhat.com/errata/RHSA-2018:3731
- RHSA-2018:3738 https://access.redhat.com/errata/RHSA-2018:3738
- RHSA-2019:1948 https://access.redhat.com/errata/RHSA-2019:1948
- RHSA-2019:2565 https://access.redhat.com/errata/RHSA-2019:2565
- https://hackerone.com/reports/387250
- [debian-lts-announce] 20181028 [SECURITY] [DLA 1558-1] ruby2.1 security update https://lists.debian.org/debian-lts-announce/2018/10/msg00020.html
- https://security.netapp.com/advisory/ntap-20190221-0002/
- USN-3808-1 https://usn.ubuntu.com/3808-1/
- DSA-4332 https://www.debian.org/security/2018/dsa-4332
- https://www.oracle.com/security-alerts/cpujan2020.html
- https://www.ruby-lang.org/en/news/2018/10/17/openssl-x509-name-equality-check-does-not-work-correctly-cve-2018-16395/
- 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/ruby-2-4-5-released/
- https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-5-2-released/
- https://www.ruby-lang.org/en/news/2018/11/06/ruby-2-6-0-preview3-released/
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- a906e6f7c607bc54959016769f0f6eb9fc959189b15116e58d17abadb1170759
- Ingested
- 23 Sep 2026, 07:43:53 UTC
- Source record
- Official CVE record