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…
- 9.8CriticalCVSS base score
- 10.7%Exploitation in 30 daysEPSS · top 4.1% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
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.
Timeline
ID reserved
By mitre
- 2 months later
· 2 months later
Published
- 6 years later
· 6 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.0 | Critical9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 10.7% · top 4.1% of all CVEs (11 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.8.
Affected products
n/a
- affected n/a
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- RubyGemsopensslGHSA-mmrq-6999-72v8 (opens in a new tab)
References
References19
- https://www.ruby-lang.org/en/news/2018/10/17/openssl-x509-name-equality-check-does-not-work-correctly-cve-2018-16395/ (opens in a new tab)x_refsource_CONFIRMx_transferred
- RHSA-2018:3738 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- https://www.ruby-lang.org/en/news/2018/11/06/ruby-2-6-0-preview3-released/ (opens in a new tab)x_refsource_CONFIRMx_transferred
- RHSA-2018:3729 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- https://hackerone.com/reports/387250 (opens in a new tab)x_refsource_MISCx_transferred
- RHSA-2018:3730 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- RHSA-2018:3731 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-3-8-released/ (opens in a new tab)x_refsource_CONFIRMx_transferred
- DSA-4332 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- USN-3808-1 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-4-5-released/ (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://security.netapp.com/advisory/ntap-20190221-0002/ (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-5-2-released/ (opens in a new tab)x_refsource_CONFIRMx_transferred
- [debian-lts-announce] 20181028 [SECURITY] [DLA 1558-1] ruby2.1 security update (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- 1042105 (opens in a new tab)vdb-entryx_refsource_SECTRACKx_transferred
- openSUSE-SU-2019:1771 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- RHSA-2019:1948 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- RHSA-2019:2565 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- https://www.oracle.com/security-alerts/cpujan2020.html (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2022-4596 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-mmrq-6999-72v8 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2018-16395)Record last updated .