cve.bz

CVE-2018-16395

9.8 criticalEPSS 11%Fix available

Critical (9.8). EPSS 11% estimated probability of exploitation activity in the next 30 days. Fixed in openssl 2.0.9, 2.1.2.

On this page
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.

Severity

CVSS 3.0

9.8 critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
11% (unchanged from 11% a week ago; 11% 30 days ago) estimated probability of exploitation activity in the next 30 days; 96th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-16395 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-16395?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-16395?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-16395 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
ruby-lang:opensslbefore 2.1.2
ruby-lang:rubyfrom 2.3.0 through 2.3.7
ruby-lang:rubyfrom 2.4.0 through 2.4.4
ruby-lang:rubyfrom 2.5.0 through 2.5.1
ruby-lang:ruby2.6.0:preview1
ruby-lang:ruby2.6.0:preview2
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux18.04
canonical:ubuntu_linux18.10
debian:debian_linux8.0
debian:debian_linux9.0
redhat:enterprise_linux7.4

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-mmrq-6999-72v8RubyGemsopenssl<2.0.92.0.9
GHSA-mmrq-6999-72v8RubyGemsopenssl>=2.1.0 <2.1.22.1.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8ruby2.12.1.5-2+deb8u6DLA-1558-1
Debian9ruby2.32.3.3-1+deb9u4DSA-4332-1
Ubuntu14.04:LTSruby1.9.11.9.3.484-2ubuntu1.13UBUNTU-CVE-2018-16395 USN-3808-1
Ubuntu14.04:LTSruby2.02.0.0.484-1ubuntu2.11UBUNTU-CVE-2018-16395 USN-3808-1
Ubuntu16.04:LTSruby2.32.3.1-2~16.04.11UBUNTU-CVE-2018-16395 USN-3808-1
Ubuntu18.04:LTSruby2.52.5.1-1ubuntu1.1UBUNTU-CVE-2018-16395 USN-3808-1
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 moreruby, ruby-doc, ruby-irb and 4 more0:2.0.0.648-34.el7_6RHSA-2018:3738
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 morerubygem-bigdecimal0:1.2.0-34.el7_6RHSA-2018:3738
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 morerubygem-io-console0:0.4.2-34.el7_6RHSA-2018:3738
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 morerubygem-json0:1.7.7-34.el7_6RHSA-2018:3738
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 morerubygem-minitest0:4.3.2-34.el7_6RHSA-2018:3738
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 morerubygem-psych0:2.0.0-34.el7_6RHSA-2018:3738
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 morerubygem-rake0:0.9.6-34.el7_6RHSA-2018:3738
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 morerubygem-rdoc0:4.0.0-34.el7_6RHSA-2018:3738
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 morerubygems, rubygems-devel0:2.0.14.1-34.el7_6RHSA-2018:3738
Red Hatrhel_eus:7.4::computenode, rhel_eus:7.4::serverruby, ruby-doc, ruby-irb and 4 more0:2.0.0.648-34.el7_4RHSA-2019:1948
Red Hatrhel_eus:7.4::computenode, rhel_eus:7.4::serverrubygem-bigdecimal0:1.2.0-34.el7_4RHSA-2019:1948
Red Hatrhel_eus:7.4::computenode, rhel_eus:7.4::serverrubygem-io-console0:0.4.2-34.el7_4RHSA-2019:1948
86 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 5, HPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL and 14 moreruby2.12.1.9-19.3.2SUSE-SU-2020:1570-1
SUSELinux Enterprise Module for Basesystem 15, Linux Enterprise Module for Basesystem 15 SP1ruby2.52.5.5-4.3.1SUSE-SU-2019:1804-1
SUSELinux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP2-LTSS, Linux Enterprise Server for SAP Applications 12 SP2 and 1 moreyast2-ruby-bindings3.1.53-9.8.1SUSE-SU-2020:1570-1
SUSEWebYast 1.3ruby1.8.7.p357-0.9.20.3.1SUSE-SU-2022:15034-1
openSUSELeap 15.0, Leap 15.1ruby-bundled-gems-rpmhelper0.0.2-lp151.2.1openSUSE-SU-2019:1771-1
openSUSELeap 15.0, Leap 15.1ruby2.52.5.5-lp151.4.3.1openSUSE-SU-2019:1771-1
Alpinev3.4, v3.5ruby2.3.8-r0ALPINE-CVE-2018-16395
Alpinev3.6, v3.7ruby2.4.5-r0ALPINE-CVE-2018-16395
Alpinev3.8, v3.9, v3.11 and 13 moreruby2.5.2-r0ALPINE-CVE-2018-16395

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Subscription Asset Manager is now in a reduced support phase receiving only Critical impact security fixes. This issue has been rated as having a security impact of Important, and is not currently planned to be addressed in future updates.

Red Hat Virtualization includes a vulnerable version of ruby, however the affected functionality is not used in Red Hat Virtualization or any of its dependencies. A future update may address this issue.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7ruby-0:2.0.0.648-34.el7_6Fixed 2018-11-29RHSA-2018:3738
Red Hat Enterprise Linux 7.4 Extended Update Supportruby-0:2.0.0.648-34.el7_4Fixed 2019-07-30RHSA-2019:1948
Red Hat Enterprise Linux 7.5 Extended Update Supportruby-0:2.0.0.648-34.el7_5Fixed 2019-08-27RHSA-2019:2565
Red Hat Software Collections for Red Hat Enterprise Linux 6rh-ruby23-ruby-0:2.3.8-69.el6Fixed 2018-11-29RHSA-2018:3729
Red Hat Software Collections for Red Hat Enterprise Linux 6rh-ruby24-ruby-0:2.4.5-91.el6Fixed 2018-11-29RHSA-2018:3730
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-ruby23-ruby-0:2.3.8-69.el7Fixed 2018-11-29RHSA-2018:3729
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-ruby24-ruby-0:2.4.5-91.el7Fixed 2018-11-29RHSA-2018:3730
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-ruby25-ruby-0:2.5.3-6.el7Fixed 2018-11-29RHSA-2018:3731
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUSrh-ruby23-ruby-0:2.3.8-69.el7Fixed 2018-11-29RHSA-2018:3729
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUSrh-ruby24-ruby-0:2.4.5-91.el7Fixed 2018-11-29RHSA-2018:3730
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUSrh-ruby25-ruby-0:2.5.3-6.el7Fixed 2018-11-29RHSA-2018:3731
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUSrh-ruby23-ruby-0:2.3.8-69.el7Fixed 2018-11-29RHSA-2018:3729
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUSrh-ruby24-ruby-0:2.4.5-91.el7Fixed 2018-11-29RHSA-2018:3730
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUSrh-ruby25-ruby-0:2.5.3-6.el7Fixed 2018-11-29RHSA-2018:3731
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUSrh-ruby23-ruby-0:2.3.8-69.el7Fixed 2018-11-29RHSA-2018:3729
Red Hat Enterprise Linux 5rubyWill not fix
Red Hat Enterprise Linux 6rubyWill not fix
Red Hat Enterprise Linux 8rubyNot affected
Red Hat Subscription Asset Managerruby193Will not fix
Red Hat Virtualization 4rubyWill not fix
2 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-16395.

References

Check your stackJSON