ADVISORIES

Vulnerability

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. 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.

21 advisories report this vulnerability, across 9 ecosystems.

Advisories

  • ALAS2-2019-1143

    Amazon Linux 2 2017.12 - ALAS2-2019-1143: important priority package update for ruby

    Important CVE-2018-16395 Amazon Linux Updated 9 January 2019
  • ALPINE-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. When two OpenSSL::X509::Name objects are compared using ==, depending on the…

    CVE-2018-16395 Alpine Updated 17 November 2026
  • ALPINE-EDGE-CVE-2018-16395
    CVE-2018-16395 Alpine Updated 18 November 2026
  • DLA-1558-1

    ruby2.1 - security update

    CVE-2018-16395CVE-2018-16396 Debian Updated 20 November 2026
  • DSA-4332-1

    ruby2.3 - security update

    CVE-2018-16395CVE-2018-16396 Debian Updated 20 November 2026
  • ELSA-2018-3738

    ELSA-2018-3738: ruby security update (IMPORTANT)

    Important CVE-2018-16395 Oracle Linux Updated 29 November 2018
  • GHSA-mmrq-6999-72v8

    Ruby Openssl Allows Incorrect Value Comparison

    Critical CVE-2018-16395 RubyGems Updated 3 December 2024
  • RHSA-2018:3729

    Red Hat Security Advisory: rh-ruby23-ruby security, bug fix, and enhancement update

    CVE-2017-17742CVE-2018-1000073CVE-2018-1000074CVE-2018-1000075 Red Hat Updated 23 November 2026
  • RHSA-2018:3730

    Red Hat Security Advisory: rh-ruby24-ruby security, bug fix, and enhancement update

    CVE-2017-17742CVE-2018-1000073CVE-2018-1000074CVE-2018-1000075 Red Hat Updated 23 November 2026
  • RHSA-2018:3731

    Red Hat Security Advisory: rh-ruby25-ruby security, bug fix, and enhancement update

    CVE-2017-17742CVE-2018-1000073CVE-2018-1000074CVE-2018-1000075 Red Hat Updated 23 November 2026
  • RHSA-2018:3738

    Red Hat Security Advisory: ruby security update

    CVE-2018-16395 Red Hat Updated 23 November 2026
  • RHSA-2019:1948

    Red Hat Security Advisory: ruby security update

    CVE-2018-16395 Red Hat Updated 23 November 2026
  • RHSA-2019:2565

    Red Hat Security Advisory: ruby security update

    CVE-2018-16395 Red Hat Updated 23 November 2026
  • RHVEX-CVE-2018-16395

    ruby: OpenSSL::X509:: Name equality check does not work correctly

    Important CVE-2018-16395 Red Hat Updated 23 November 2026
  • SUSE-SU-2019:1804-1

    Security update for ruby-bundled-gems-rpmhelper, ruby2.5

    CVE-2017-17742CVE-2018-1000073CVE-2018-1000074CVE-2018-1000075 SUSE Updated 4 February 2026
  • SUSE-SU-2020:1570-1

    Security update for ruby2.1

    CVE-2015-9096CVE-2016-2339CVE-2016-7798CVE-2017-0898 SUSE Updated 4 February 2026
  • SUSE-SU-2022:15034-1

    Security update for ruby

    CVE-2018-16395CVE-2021-31810CVE-2021-32066CVE-2021-81810 SUSE Updated 4 February 2026
  • SUSEVEX-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. When two OpenSSL::X509::Name objects are compared using ==, depending on the…

    Moderate CVE-2018-16395 SUSE Updated 11 November 2026
  • UBUNTU-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. When two OpenSSL::X509::Name objects are compared using ==, depending on the…

    CVE-2018-16395 Ubuntu Updated 22 April 2026
  • USN-3808-1

    ruby1.9.1, ruby2.0, ruby2.3, ruby2.5 vulnerabilities

    CVE-2018-16395CVE-2018-16396 Ubuntu Updated 22 April 2026
  • openSUSE-SU-2019:1771-1

    Security update for ruby-bundled-gems-rpmhelper, ruby2.5

    CVE-2017-17742CVE-2018-1000073CVE-2018-1000074CVE-2018-1000075 openSUSE Updated 4 February 2026

References