9.8
CRITICAL
CVE-2018-16395
OpenSSL Ruby Certificate Comparison Vulnerability
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.

INFO

Published Date :

Nov. 16, 2018, 6:29 p.m.

Last Modified :

Oct. 3, 2019, 12:03 a.m.

Remotely Exploitable :

Yes !

Impact Score :

5.9

Exploitability Score :

3.9
Public PoC/Exploit Available at Github

CVE-2018-16395 has a 2 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

Affected Products

The following products are affected by CVE-2018-16395 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Ruby-lang ruby
2 Ruby-lang openssl
1 Canonical ubuntu_linux
1 Redhat enterprise_linux
1 Debian debian_linux
1 Openssl openssl
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2018-16395.

URL Resource
http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00036.html Mailing List Third Party Advisory
http://www.securitytracker.com/id/1042105 Third Party Advisory VDB Entry
https://access.redhat.com/errata/RHSA-2018:3729 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:3730 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:3731 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:3738 Third Party Advisory
https://access.redhat.com/errata/RHSA-2019:1948 Third Party Advisory
https://access.redhat.com/errata/RHSA-2019:2565
https://hackerone.com/reports/387250 Patch Third Party Advisory
https://lists.debian.org/debian-lts-announce/2018/10/msg00020.html Third Party Advisory
https://security.netapp.com/advisory/ntap-20190221-0002/ Third Party Advisory
https://usn.ubuntu.com/3808-1/ Third Party Advisory
https://www.debian.org/security/2018/dsa-4332 Third Party Advisory
https://www.oracle.com/security-alerts/cpujan2020.html
https://www.ruby-lang.org/en/news/2018/10/17/openssl-x509-name-equality-check-does-not-work-correctly-cve-2018-16395/ Mitigation Vendor Advisory
https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-3-8-released/ Release Notes Vendor Advisory
https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-4-5-released/ Release Notes Vendor Advisory
https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-5-2-released/ Release Notes Vendor Advisory
https://www.ruby-lang.org/en/news/2018/11/06/ruby-2-6-0-preview3-released/ Release Notes Vendor Advisory

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

None

Updated: 2 months, 2 weeks ago
5 stars 0 fork 0 watcher
Born at : Feb. 23, 2023, 5:42 a.m. This repo has been linked 455 different CVEs too.

Audit C/C++ projects (make, cmake, command line, etc.)

Go Dockerfile

Updated: 4 months, 2 weeks ago
23 stars 4 fork 4 watcher
Born at : Aug. 22, 2019, 6:54 p.m. This repo has been linked 3 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2018-16395 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2018-16395 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Modified by [email protected]

    Jan. 15, 2020

    Action Type Old Value New Value
    Added Reference https://www.oracle.com/security-alerts/cpujan2020.html [No Types Assigned]
  • CWE Remap by [email protected]

    Oct. 03, 2019

    Action Type Old Value New Value
    Changed CWE CWE-19 CWE-310 NVD-CWE-noinfo
  • CVE Modified by [email protected]

    Aug. 27, 2019

    Action Type Old Value New Value
    Added Reference https://access.redhat.com/errata/RHSA-2019:2565 [No Types Assigned]
  • Modified Analysis by [email protected]

    Aug. 26, 2019

    Action Type Old Value New Value
    Changed Reference Type http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00036.html No Types Assigned http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00036.html Mailing List, Third Party Advisory
    Changed Reference Type https://access.redhat.com/errata/RHSA-2019:1948 No Types Assigned https://access.redhat.com/errata/RHSA-2019:1948 Third Party Advisory
    Changed CPE Configuration OR *cpe:2.3:a:openssl:openssl:*:*:*:*:*:ruby:*:* versions up to (excluding) 2.1.2 *cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* versions from (including) 2.3.0 up to (including) 2.3.7 *cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* versions from (including) 2.4.0 up to (including) 2.4.4 *cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* versions from (including) 2.5.0 up to (including) 2.5.1 *cpe:2.3:a:ruby-lang:ruby:2.6.0:preview1:*:*:*:*:*:* *cpe:2.3:a:ruby-lang:ruby:2.6.0:preview2:*:*:*:*:*:* OR *cpe:2.3:a:ruby-lang:openssl:*:*:*:*:*:ruby:*:* versions up to (excluding) 2.1.2 *cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* versions from (including) 2.3.0 up to (including) 2.3.7 *cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* versions from (including) 2.4.0 up to (including) 2.4.4 *cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* versions from (including) 2.5.0 up to (including) 2.5.1 *cpe:2.3:a:ruby-lang:ruby:2.6.0:preview1:*:*:*:*:*:* *cpe:2.3:a:ruby-lang:ruby:2.6.0:preview2:*:*:*:*:*:*
    Added CPE Configuration OR *cpe:2.3:o:redhat:enterprise_linux:7.4:*:*:*:*:*:*:*
  • CVE Modified by [email protected]

    Jul. 30, 2019

    Action Type Old Value New Value
    Added Reference https://access.redhat.com/errata/RHSA-2019:1948 [No Types Assigned]
  • CVE Modified by [email protected]

    Jul. 21, 2019

    Action Type Old Value New Value
    Added Reference http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00036.html [No Types Assigned]
  • Modified Analysis by [email protected]

    Feb. 28, 2019

    Action Type Old Value New Value
    Changed Reference Type https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-3-8-released/ Release Notes https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-3-8-released/ Release Notes, Vendor Advisory
    Changed Reference Type https://www.ruby-lang.org/en/news/2018/11/06/ruby-2-6-0-preview3-released/ Release Notes https://www.ruby-lang.org/en/news/2018/11/06/ruby-2-6-0-preview3-released/ Release Notes, Vendor Advisory
    Changed Reference Type https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-5-2-released/ Release Notes https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-5-2-released/ Release Notes, Vendor Advisory
    Changed Reference Type https://security.netapp.com/advisory/ntap-20190221-0002/ No Types Assigned https://security.netapp.com/advisory/ntap-20190221-0002/ Third Party Advisory
    Changed Reference Type https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-4-5-released/ Release Notes https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-4-5-released/ Release Notes, Vendor Advisory
  • CVE Modified by [email protected]

    Feb. 22, 2019

    Action Type Old Value New Value
    Added Reference https://security.netapp.com/advisory/ntap-20190221-0002/ [No Types Assigned]
  • Initial Analysis by [email protected]

    Dec. 17, 2018

    Action Type Old Value New Value
    Added CVSS V2 (AV:N/AC:L/Au:N/C:P/I:P/A:P)
    Added CVSS V3 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    Changed Reference Type https://access.redhat.com/errata/RHSA-2018:3729 No Types Assigned https://access.redhat.com/errata/RHSA-2018:3729 Third Party Advisory
    Changed Reference Type https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-3-8-released/ No Types Assigned https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-3-8-released/ Release Notes
    Changed Reference Type https://access.redhat.com/errata/RHSA-2018:3738 No Types Assigned https://access.redhat.com/errata/RHSA-2018:3738 Third Party Advisory
    Changed Reference Type https://lists.debian.org/debian-lts-announce/2018/10/msg00020.html No Types Assigned https://lists.debian.org/debian-lts-announce/2018/10/msg00020.html Third Party Advisory
    Changed Reference Type https://hackerone.com/reports/387250 No Types Assigned https://hackerone.com/reports/387250 Patch, Third Party Advisory
    Changed Reference Type https://www.ruby-lang.org/en/news/2018/10/17/openssl-x509-name-equality-check-does-not-work-correctly-cve-2018-16395/ No Types Assigned https://www.ruby-lang.org/en/news/2018/10/17/openssl-x509-name-equality-check-does-not-work-correctly-cve-2018-16395/ Mitigation, Vendor Advisory
    Changed Reference Type https://www.ruby-lang.org/en/news/2018/11/06/ruby-2-6-0-preview3-released/ No Types Assigned https://www.ruby-lang.org/en/news/2018/11/06/ruby-2-6-0-preview3-released/ Release Notes
    Changed Reference Type https://usn.ubuntu.com/3808-1/ No Types Assigned https://usn.ubuntu.com/3808-1/ Third Party Advisory
    Changed Reference Type https://www.debian.org/security/2018/dsa-4332 No Types Assigned https://www.debian.org/security/2018/dsa-4332 Third Party Advisory
    Changed Reference Type https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-5-2-released/ No Types Assigned https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-5-2-released/ Release Notes
    Changed Reference Type https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-4-5-released/ No Types Assigned https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-4-5-released/ Release Notes
    Changed Reference Type http://www.securitytracker.com/id/1042105 No Types Assigned http://www.securitytracker.com/id/1042105 Third Party Advisory, VDB Entry
    Changed Reference Type https://access.redhat.com/errata/RHSA-2018:3731 No Types Assigned https://access.redhat.com/errata/RHSA-2018:3731 Third Party Advisory
    Changed Reference Type https://access.redhat.com/errata/RHSA-2018:3730 No Types Assigned https://access.redhat.com/errata/RHSA-2018:3730 Third Party Advisory
    Added CWE CWE-19
    Added CPE Configuration OR *cpe:2.3:a:openssl:openssl:*:*:*:*:*:ruby:*:* versions up to (excluding) 2.1.2 *cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* versions from (including) 2.3.0 up to (including) 2.3.7 *cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* versions from (including) 2.4.0 up to (including) 2.4.4 *cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* versions from (including) 2.5.0 up to (including) 2.5.1 *cpe:2.3:a:ruby-lang:ruby:2.6.0:preview1:*:*:*:*:*:* *cpe:2.3:a:ruby-lang:ruby:2.6.0:preview2:*:*:*:*:*:*
    Added CPE Configuration OR *cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:* *cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* *cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:* *cpe:2.3:o:canonical:ubuntu_linux:18.10:*:*:*:*:*:*:*
    Added CPE Configuration OR *cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* *cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
  • CVE Modified by [email protected]

    Nov. 30, 2018

    Action Type Old Value New Value
    Added Reference https://access.redhat.com/errata/RHSA-2018:3738 [No Types Assigned]
    Added Reference https://access.redhat.com/errata/RHSA-2018:3731 [No Types Assigned]
    Added Reference https://access.redhat.com/errata/RHSA-2018:3730 [No Types Assigned]
    Added Reference https://access.redhat.com/errata/RHSA-2018:3729 [No Types Assigned]
  • CVE Modified by [email protected]

    Nov. 28, 2018

    Action Type Old Value New Value
    Added Reference http://www.securitytracker.com/id/1042105 [No Types Assigned]
  • CVE Modified by [email protected]

    Nov. 17, 2018

    Action Type Old Value New Value
    Added Reference https://www.debian.org/security/2018/dsa-4332 [No Types Assigned]
    Added Reference https://usn.ubuntu.com/3808-1/ [No Types Assigned]
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2018-16395 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2018-16395 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.90 }} 0.10%

score

0.82846

percentile

CVSS30 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability