{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2018-16395","published":"2018-11-16T18:29:00.943000Z","last_modified":"2026-06-17T01:44:12.863000Z","status":"Modified","cvss":{"version":"3.0","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":[],"cpes":[{"criteria":"cpe:2.3:a:ruby-lang:openssl:*:*:*:*:*:ruby:*:*","part":"a","vendor":"ruby-lang","product":"openssl","version_end_excluding":"2.1.2"},{"criteria":"cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:*","part":"a","vendor":"ruby-lang","product":"ruby","version_start_including":"2.3.0","version_end_including":"2.3.7"},{"criteria":"cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:*","part":"a","vendor":"ruby-lang","product":"ruby","version_start_including":"2.4.0","version_end_including":"2.4.4"},{"criteria":"cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:*","part":"a","vendor":"ruby-lang","product":"ruby","version_start_including":"2.5.0","version_end_including":"2.5.1"},{"criteria":"cpe:2.3:a:ruby-lang:ruby:2.6.0:preview1:*:*:*:*:*:*","part":"a","vendor":"ruby-lang","product":"ruby","version":"2.6.0"},{"criteria":"cpe:2.3:a:ruby-lang:ruby:2.6.0:preview2:*:*:*:*:*:*","part":"a","vendor":"ruby-lang","product":"ruby","version":"2.6.0"},{"criteria":"cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*","part":"o","vendor":"canonical","product":"ubuntu_linux","version":"14.04"},{"criteria":"cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*","part":"o","vendor":"canonical","product":"ubuntu_linux","version":"16.04"},{"criteria":"cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*","part":"o","vendor":"canonical","product":"ubuntu_linux","version":"18.04"},{"criteria":"cpe:2.3:o:canonical:ubuntu_linux:18.10:*:*:*:*:*:*:*","part":"o","vendor":"canonical","product":"ubuntu_linux","version":"18.10"},{"criteria":"cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*","part":"o","vendor":"debian","product":"debian_linux","version":"8.0"},{"criteria":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","part":"o","vendor":"debian","product":"debian_linux","version":"9.0"},{"criteria":"cpe:2.3:o:redhat:enterprise_linux:7.4:*:*:*:*:*:*:*","part":"o","vendor":"redhat","product":"enterprise_linux","version":"7.4"}],"cpes_truncated":false,"vendors":["ruby-lang","canonical","debian","redhat"],"products":["ruby-lang/openssl","ruby-lang/ruby","canonical/ubuntu_linux","debian/debian_linux","redhat/enterprise_linux"],"epss":{"score":0.11861,"percentile":0.968,"date":"2026-11-28","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-mmrq-6999-72v8","ecosystem":"RubyGems","name":"openssl","purl":"pkg:gem/openssl","ranges":[{"introduced":"0","fixed":"2.0.9"}],"versions":["2.0.0","2.0.0.beta.1","2.0.0.beta.2","2.0.1","2.0.2","2.0.3","2.0.4","2.0.5","2.0.6","2.0.7","2.0.8"],"versions_truncated":false},{"advisory":"GHSA-mmrq-6999-72v8","ecosystem":"RubyGems","name":"openssl","purl":"pkg:gem/openssl","ranges":[{"introduced":"2.1.0","fixed":"2.1.2"}],"versions":["2.1.0","2.1.1"],"versions_truncated":false}],"severity":"critical","priority_score":75,"links":{"html_es":"/es/cve/CVE-2018-16395/","html_en":"/en/cve/CVE-2018-16395/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2018-16395","cve_org":"https://www.cve.org/CVERecord?id=CVE-2018-16395"},"untrusted":{"vendor_name":"Ruby-lang","product_name":"Openssl","desc_en":"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.","affected":[],"references":[{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00036.html","tags":["Mailing List","Third Party Advisory"]},{"url":"http://www.securitytracker.com/id/1042105","tags":["Third Party Advisory","VDB Entry"]},{"url":"https://access.redhat.com/errata/RHSA-2018:3729","tags":["Third Party Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2018:3730","tags":["Third Party Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2018:3731","tags":["Third Party Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2018:3738","tags":["Third Party Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2019:1948","tags":["Third Party Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2019:2565","tags":[]},{"url":"https://hackerone.com/reports/387250","tags":["Patch","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2018/10/msg00020.html","tags":["Third Party Advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20190221-0002/","tags":["Third Party Advisory"]},{"url":"https://usn.ubuntu.com/3808-1/","tags":["Third Party Advisory"]},{"url":"https://www.debian.org/security/2018/dsa-4332","tags":["Third Party Advisory"]},{"url":"https://www.oracle.com/security-alerts/cpujan2020.html","tags":[]},{"url":"https://www.ruby-lang.org/en/news/2018/10/17/openssl-x509-name-equality-check-does-not-work-correctly-cve-2018-16395/","tags":["Mitigation","Vendor Advisory"]},{"url":"https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-3-8-released/","tags":["Release Notes","Vendor Advisory"]},{"url":"https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-4-5-released/","tags":["Release Notes","Vendor Advisory"]},{"url":"https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-5-2-released/","tags":["Release Notes","Vendor Advisory"]},{"url":"https://www.ruby-lang.org/en/news/2018/11/06/ruby-2-6-0-preview3-released/","tags":["Release Notes","Vendor Advisory"]}]}}