CVEfocus › CVE database › CVE-2018-16395

CVE-2018-16395

CVSS 9.8 CriticalEPSS 10.7% (higher than 96% of CVEs)Published 2018-11-16Updated 2024-08-05Assigner: mitre

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.

What to do

Likely to be exploited: EPSS gives a 11% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.

Fixed builds are available from Alpine, Red Hat, RubyGems, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

40Fixed
1Fix pending
10Will not fix
40Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 18.04ruby-opensslFix pending
Ubuntu 18.04ruby2.5Fixed2.5.1-1ubuntu1.1UBUNTU-CVE-2018-16395
Ubuntu 16.04ruby2.3Fixed2.3.1-2~16.04.11UBUNTU-CVE-2018-16395
Ubuntu 14.04ruby1.9.1Fixed1.9.3.484-2ubuntu1.13UBUNTU-CVE-2018-16395
Ubuntu 14.04ruby2.0Fixed2.0.0.484-1ubuntu2.11UBUNTU-CVE-2018-16395
Red Hat Enterprise Linux 8rubyNot affected
Red Hat Enterprise Linux 8ruby-bundled-gemsNot affected
Red Hat Enterprise Linux 8ruby-default-gemsNot affected
Red Hat Enterprise Linux 8ruby-develNot affected
Red Hat Enterprise Linux 8ruby-docNot affected
Red Hat Enterprise Linux 8ruby-irbNot affected
Red Hat Enterprise Linux 8ruby-libsNot affected
Red Hat Enterprise Linux 8rubygem-abrtNot affected
Red Hat Enterprise Linux 8rubygem-abrt-docNot affected
Red Hat Enterprise Linux 8rubygem-bigdecimalNot affected
Red Hat Enterprise Linux 8rubygem-bsonNot affected
Red Hat Enterprise Linux 8rubygem-bson-docNot affected
Red Hat Enterprise Linux 8rubygem-bundlerNot affected
Red Hat Enterprise Linux 8rubygem-bundler-docNot affected
Red Hat Enterprise Linux 8rubygem-did_you_meanNot affected
Red Hat Enterprise Linux 8rubygem-io-consoleNot affected
Red Hat Enterprise Linux 8rubygem-irbNot affected
Red Hat Enterprise Linux 8rubygem-jsonNot affected
Red Hat Enterprise Linux 8rubygem-minitestNot affected
Red Hat Enterprise Linux 8rubygem-mongoNot affected
Red Hat Enterprise Linux 8rubygem-mongo-docNot affected
Red Hat Enterprise Linux 8rubygem-mysql2Not affected
Red Hat Enterprise Linux 8rubygem-mysql2-docNot affected
Red Hat Enterprise Linux 8rubygem-net-telnetNot affected
Red Hat Enterprise Linux 8rubygem-opensslNot affected
Red Hat Enterprise Linux 8rubygem-pgNot affected
Red Hat Enterprise Linux 8rubygem-pg-docNot affected
Red Hat Enterprise Linux 8rubygem-power_assertNot affected
Red Hat Enterprise Linux 8rubygem-psychNot affected
Red Hat Enterprise Linux 8rubygem-raccNot affected
Red Hat Enterprise Linux 8rubygem-rakeNot affected
Red Hat Enterprise Linux 8rubygem-rbsNot affected
Red Hat Enterprise Linux 8rubygem-rdocNot affected
Red Hat Enterprise Linux 8rubygem-rexmlNot affected
Red Hat Enterprise Linux 8rubygem-rssNot affected
Red Hat Enterprise Linux 8rubygem-test-unitNot affected
Red Hat Enterprise Linux 8rubygem-typeprofNot affected
Red Hat Enterprise Linux 8rubygem-xmlrpcNot affected
Red Hat Enterprise Linux 8rubygemsNot affected
Red Hat Enterprise Linux 8rubygems-develNot affected
Red Hat Enterprise Linux 7rubyFixed0:2.0.0.648-34.el7_6RHSA-2018:3738
Red Hat Enterprise Linux 7ruby-develFixed0:2.0.0.648-34.el7_6RHSA-2018:3738
Red Hat Enterprise Linux 7ruby-docFixed0:2.0.0.648-34.el7_6RHSA-2018:3738
Red Hat Enterprise Linux 7ruby-irbFixed0:2.0.0.648-34.el7_6RHSA-2018:3738
Red Hat Enterprise Linux 7ruby-libsFixed0:2.0.0.648-34.el7_6RHSA-2018:3738
Red Hat Enterprise Linux 7ruby-tcltkFixed0:2.0.0.648-34.el7_6RHSA-2018:3738
Red Hat Enterprise Linux 7rubygem-bigdecimalFixed0:1.2.0-34.el7_6RHSA-2018:3738
Red Hat Enterprise Linux 7rubygem-io-consoleFixed0:0.4.2-34.el7_6RHSA-2018:3738
Red Hat Enterprise Linux 7rubygem-jsonFixed0:1.7.7-34.el7_6RHSA-2018:3738
Red Hat Enterprise Linux 7rubygem-minitestFixed0:4.3.2-34.el7_6RHSA-2018:3738
Red Hat Enterprise Linux 7rubygem-psychFixed0:2.0.0-34.el7_6RHSA-2018:3738
Red Hat Enterprise Linux 7rubygem-rakeFixed0:0.9.6-34.el7_6RHSA-2018:3738
Red Hat Enterprise Linux 7rubygem-rdocFixed0:4.0.0-34.el7_6RHSA-2018:3738
Red Hat Enterprise Linux 7rubygemsFixed0:2.0.14.1-34.el7_6RHSA-2018:3738
Red Hat Enterprise Linux 7rubygems-develFixed0:2.0.14.1-34.el7_6RHSA-2018:3738
Red Hat Enterprise Linux 6rubyWill not fix
Will not fix
Red Hat Enterprise Linux 6ruby-develWill not fix
Will not fix
Red Hat Enterprise Linux 6ruby-docsWill not fix
Will not fix
Red Hat Enterprise Linux 6ruby-irbWill not fix
Will not fix
Red Hat Enterprise Linux 6ruby-libsWill not fix
Will not fix
Red Hat Enterprise Linux 6ruby-rdocWill not fix
Will not fix
Red Hat Enterprise Linux 6ruby-riWill not fix
Will not fix
Red Hat Enterprise Linux 6ruby-staticWill not fix
Will not fix
Red Hat Enterprise Linux 6ruby-tcltkWill not fix
Will not fix
Red Hat Enterprise Linux 5rubyWill not fix
Will not fix
Alpine Linux 3.24rubyFixed2.5.2-r0ALPINE-CVE-2018-16395
Alpine Linux 3.23rubyFixed2.5.2-r0ALPINE-CVE-2018-16395
Alpine Linux 3.22rubyFixed2.5.2-r0ALPINE-CVE-2018-16395
Alpine Linux 3.21rubyFixed2.5.2-r0ALPINE-CVE-2018-16395
Alpine Linux 3.20rubyFixed2.5.2-r0ALPINE-CVE-2018-16395
Alpine Linux 3.19rubyFixed2.5.2-r0ALPINE-CVE-2018-16395
Alpine Linux 3.18rubyFixed2.5.2-r0ALPINE-CVE-2018-16395
Alpine Linux 3.17rubyFixed2.5.2-r0ALPINE-CVE-2018-16395
Alpine Linux 3.16rubyFixed2.5.2-r0ALPINE-CVE-2018-16395
Alpine Linux 3.15rubyFixed2.5.2-r0ALPINE-CVE-2018-16395
Alpine Linux 3.14rubyFixed2.5.2-r0ALPINE-CVE-2018-16395
Alpine Linux 3.13rubyFixed2.5.2-r0ALPINE-CVE-2018-16395
Alpine Linux 3.12rubyFixed2.5.2-r0ALPINE-CVE-2018-16395
Alpine Linux 3.11rubyFixed2.5.2-r0ALPINE-CVE-2018-16395
Alpine Linux 3.9rubyFixed2.5.2-r0ALPINE-CVE-2018-16395
Alpine Linux 3.8rubyFixed2.5.2-r0ALPINE-CVE-2018-16395
Alpine Linux 3.7rubyFixed2.4.5-r0ALPINE-CVE-2018-16395
Alpine Linux 3.6rubyFixed2.4.5-r0ALPINE-CVE-2018-16395
Alpine Linux 3.5rubyFixed2.3.8-r0ALPINE-CVE-2018-16395
Alpine Linux 3.4rubyFixed2.3.8-r0ALPINE-CVE-2018-16395
RubyGems libraryopensslFixed2.0.9GHSA-mmrq-6999-72v8

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.