Vulnerability in Ruby-Lang OpenSSL
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.107 (95.8th percentile), scored .
Moderate probability of exploitation in the next 30 days — watch for active exploitation reports. 96th percentile — 95.8% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.107 · newest: 0.107 · change: 0.000
Affected products
- Ruby-Lang OpenSSL
- Ruby-Lang Ruby — versions 2.6.0
- Canonical Ubuntu Linux — versions 14.04, 16.04, 18.04
- Debian Linux — versions 8.0, 9.0
- Red Hat Enterprise Linux — versions 7.4
Public proof-of-concept exploits
References
- www.ruby-lang.org/en/news/2018/10/17/openssl-x509-name-equality-check-does-not-… (Mitigation, Vendor Advisory)
- access.redhat.com/errata/RHSA-2018:3738 (vendor-advisory, Third Party Advisory)
- www.ruby-lang.org/en/news/2018/11/06/ruby-2-6-0-preview3-released/ (Release Notes, Vendor Advisory)
- access.redhat.com/errata/RHSA-2018:3729 (vendor-advisory, Third Party Advisory)
- hackerone.com/reports/387250 (Patch, Third Party Advisory)
- access.redhat.com/errata/RHSA-2018:3730 (vendor-advisory, Third Party Advisory)
- access.redhat.com/errata/RHSA-2018:3731 (vendor-advisory, Third Party Advisory)
- www.ruby-lang.org/en/news/2018/10/17/ruby-2-3-8-released/ (Release Notes, Vendor Advisory)
- www.debian.org/security/2018/dsa-4332 (vendor-advisory, Third Party Advisory)
- usn.ubuntu.com/3808-1/ (vendor-advisory, Third Party Advisory)
Frequently asked questions
- What is CVE-2018-16395?
- CVE-2018-16395 is a critical-severity vulnerability in Ruby-Lang OpenSSL. CVSS score: 9.8/10. Published 2018-11-16.
- How severe is CVE-2018-16395?
- Critical severity. CVSS v3 base score is 9.8 out of 10.
- Is CVE-2018-16395 known to be exploited?
- 3 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.