{"id":"CVE-2018-16395","published":"2018-11-16T18:00:00Z","modified":"2024-08-05T10:24:32Z","title":"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…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.10715,"percentile":0.95928,"provenance":"source"},"cwes":[],"references":[{"url":"https://www.ruby-lang.org/en/news/2018/10/17/openssl-x509-name-equality-check-does-not-work-correctly-cve-2018-16395/","tags":["x_refsource_CONFIRM"]},{"url":"https://access.redhat.com/errata/RHSA-2018:3738","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://www.ruby-lang.org/en/news/2018/11/06/ruby-2-6-0-preview3-released/","tags":["x_refsource_CONFIRM"]},{"url":"https://access.redhat.com/errata/RHSA-2018:3729","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://hackerone.com/reports/387250","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/errata/RHSA-2018:3730","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2018:3731","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-3-8-released/","tags":["x_refsource_CONFIRM"]},{"url":"https://www.debian.org/security/2018/dsa-4332","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://usn.ubuntu.com/3808-1/","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-4-5-released/","tags":["x_refsource_CONFIRM"]},{"url":"https://security.netapp.com/advisory/ntap-20190221-0002/","tags":["x_refsource_CONFIRM"]},{"url":"https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-5-2-released/","tags":["x_refsource_CONFIRM"]},{"url":"https://lists.debian.org/debian-lts-announce/2018/10/msg00020.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://www.securitytracker.com/id/1042105","tags":["vdb-entry","x_refsource_SECTRACK"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00036.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"https://access.redhat.com/errata/RHSA-2019:1948","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2019:2565","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://www.oracle.com/security-alerts/cpujan2020.html","tags":["x_refsource_MISC"]}],"priority":{"score":19.2,"factors":[{"name":"EPSS percentile","points":19.19}]},"affected":[{"ecosystem":"RubyGems","package":"openssl","vulnerableRanges":["<2.0.9",">=2.1.0, <2.1.2"],"patched":["2.0.9","2.1.2"],"from":["GHSA-mmrq-6999-72v8"],"provenance":"source"}],"summary":{"text":"The flaw is in the OpenSSL integration of Ruby (versions 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), where comparing two OpenSSL::X509::Name objects with == can wrongly return true for non-equal names depending on their ordering and character values. An attacker able to supply a crafted certificate can exploit this mismatch to produce an illegitimate certificate that may be accepted as valid and then used in signing or encryption operations, with no conditions beyond the attacker's ability to present that certificate.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:49:21Z"},"euvd":{"id":"EUVD-2022-4596","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2016-7798","published":"2017-01-30","fixed":"2.0.0","kev":false},{"cve":"CVE-2017-14033","published":"2017-09-19","fixed":"2.0.0","kev":false,"link":{"from":"CVE-2017-14033","to":"CVE-2018-16395","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:openssl","fromFixed":"2.0.0","toFixed":"2.0.9","daysApart":423}]}},{"cve":"CVE-2018-16395","published":"2018-11-16","fixed":"2.1.2","kev":false}],"package":"RubyGems:openssl"}}