CVE-2018-16395 — Vulnerability in openssl — CVE Details
Ruby Openssl Allows Incorrect Value Comparison
Summary
Advisory Timeline
- First published May 13, 2022 (1613 days ago).
- Last revised December 3, 2024 — 935 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install openssl -v 2.1.2
gem install openssl -v 2.0.9
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: rubygems (1).
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2018-16395ADVISORY
- https://github.com/ruby/openssl/commit/f653cfa43f0f20e8c440122ea982382b6228e7f5WEB
- https://hackerone.com/reports/387250WEB
- https://www.ruby-lang.org/en/news/2018/11/06/ruby-2-6-0-preview3-releasedWEB
- https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-5-2-releasedWEB
- https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-4-5-releasedWEB
- https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-3-8-releasedWEB
- https://www.ruby-lang.org/en/news/2018/10/17/openssl-x509-name-equality-check-does-not-work-correctly-cve-2018-16395WEB
- https://www.oracle.com/security-alerts/cpujan2020.htmlWEB
- https://www.debian.org/security/2018/dsa-4332WEB
- https://web.archive.org/web/20211206015239/https://securitytracker.com/id/1042105WEB
- https://usn.ubuntu.com/3808-1WEB
- https://security.netapp.com/advisory/ntap-20190221-0002WEB
- https://lists.debian.org/debian-lts-announce/2018/10/msg00020.htmlWEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/openssl/CVE-2018-16395.ymlWEB
- https://access.redhat.com/errata/RHSA-2019:2565WEB
- https://access.redhat.com/errata/RHSA-2019:1948WEB
- https://access.redhat.com/errata/RHSA-2018:3738WEB
- https://access.redhat.com/errata/RHSA-2018:3731WEB
- https://access.redhat.com/errata/RHSA-2018:3730WEB
- https://access.redhat.com/errata/RHSA-2018:3729WEB
- https://lists.opensuse.org/opensuse-security-announce/2019-07/msg00036.htmlWEB
Frequently Asked Questions
- What is CVE-2018-16395?
- Ruby Openssl Allows Incorrect Value Comparison This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2018-16395?
- CVE-2018-16395 affects openssl. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2018-16395 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation is straightforward and causes maximum impact. Patch immediately.
Also Known As
Related CVEs
- CVE-2026-55107CRITICAL
kobako Sandbox Escape: guest eval reaches host RCE via method_missing → public_send (any bound Service)
- CVE-2026-77602CRITICAL
OpenC3 COSMOS: Authenticated remote code execution via the user-writable config overlay (table definitions, cmd/tlm definitions, and script suites)
- CVE-2016-7798HIGH
OpenSSL gem for Ruby using inadequate encryption strength
- CVE-2017-14033HIGH
Ruby OpenSSL DoS Vulnerability
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies