OpenSSL Library Vulnerability in Ruby

ruby Updated 02 Oct 2025

Summary

16/11/2018
N/A
Yes i
Critical
9.8

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. Affects ruby across 3 version ranges.

< 2.5.2-r0 < 08e12dd9302c1fd517c642bdd7d274e64b354c53 < faba7187c5e659d7a6da67ec844c4989fc74a8d5

Fixed in 2.5.2-r0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The OpenSSL library is a widely used open-source cryptographic library that provides support for secure communications and data encryption. Ruby is a dynamic, open-source programming language that is popular for web development and scripting. The Ruby OpenSSL library is used for SSL/TLS functionality in Ruby applications. This vulnerability affects versions of 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.

Vulnerability Detail

The vulnerability, identified as CVE-2018-16395, arises from a flaw in the OpenSSL library used by Ruby. When comparing two OpenSSL::X509::Name objects using the '==' operator, non-equal objects may incorrectly return true under specific conditions. This can be exploited to create a malicious certificate that may be accepted as legitimate, leading to potential security issues in signing or encryption operations. The vulnerability has a CVSS score of 9.8, indicating a critical severity level.

How To Fix

Minimum fixed version

2.5.2-r0

This is the first release that contains the fix.

sudo apk add --upgrade ruby

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to apply the recommended fix by updating Ruby to a patched version.

Conclusion

The OpenSSL library vulnerability in Ruby poses a critical security risk, allowing for the creation of illegitimate certificates. To mitigate this risk, it is crucial to update Ruby to version 2.5.2 or later. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for ruby →

Share this vulnerability

FAQ

The vulnerability allows for the creation of illegitimate certificates that may be accepted as legitimate. This can lead to potential security breaches in signing or encryption operations.

Versions of 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 are affected.

The CVSS score of this vulnerability is 9.8, indicating a critical severity level.

No, there is no known workaround. It is necessary to update Ruby to a patched version.

Users should consult the official Ruby documentation or their package manager for instructions on updating Ruby to the fixed version.

Related vulnerabilities

Recent vulnerabilities recorded for ruby.

How To Fix

Minimum fixed version

2.5.2-r0

This is the first release that contains the fix.

sudo apk add --upgrade ruby

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback