VDB

CVE-2018-16395

CVE-2018-16395 PUBLISHED CVSS 9.800000190734863 CRITICAL

Ruby Openssl Allows Incorrect Value Comparison

Reported by mitre · Published November 16, 2018

openssl is fixed in 2.1.2 (RubyGems)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
opensslRubyGems2.1.2
ruby-irbAmazon Linux2.0.0.648-34.amzn2.0.1
rubygem-io-consoleAmazon Linux0.4.2-34.amzn2.0.1
rubygem-rdocAmazon Linux4.0.0-34.amzn2.0.1
ruby-develAmazon Linux2.0.0.648-34.amzn2.0.1
rubygem-bigdecimalAmazon Linux1.2.0-34.amzn2.0.1
rubygem-rakeAmazon Linux0.9.6-34.amzn2.0.1
ruby-libsAmazon Linux2.0.0.648-34.amzn2.0.1
ruby-tcltkAmazon Linux2.0.0.648-34.amzn2.0.1
ruby-docAmazon Linux2.0.0.648-34.amzn2.0.1
ruby2.5Ubuntu:18.04:LTS2.5.1-1ubuntu1.1
opensslruby-lang2.1.2

2 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.0
9.800000190734863
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
n/an/an/a
amazon:2ruby-irb0
amazon:2rubygem-io-console0
amazon:2rubygem-rdoc0
amazon:2ruby-devel0
amazon:2rubygem-bigdecimal0
amazon:2rubygem-rake0
amazon:2ruby-libs0
amazon:2ruby-tcltk0
amazon:2ruby-doc0
n/an/a*
amazon:2ruby0
amazon:2rubygem-json0
amazon:2rubygems0
RubyGemsopenssl0
amazon:2rubygems-devel0
amazon:2rubygem-psych0
alpineruby0, 0, 0
amazon:2rubygem-minitest0

Timeline

  • Oct 19, 2018 PoC Published
  • Nov 16, 2018 CVE Published
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Mar 6, 2026 Distribution Patch (8 in total, the first dated here)
  • Mar 6, 2026 Security Advisory (11 in total, the first dated here)
  • Sep 23, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2018-16395
vulnetix vdb fixes CVE-2018-16395

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2018-16395/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›