Home/CVE/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 b
CVE

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 b

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.

CRITICAL · CVSS 9.8 EPSS 0.0421
Schedule remediation
  • CVSS base score ≥ 7.0
Sigma rules3 YARA rules0

Affected Products & Versions

8
ruby-lang ruby>= 2.3.0 and <= 2.3.7
ruby-lang ruby>= 2.4.0 and <= 2.4.4
ruby-lang ruby>= 2.5.0 and <= 2.5.1
ruby-lang rubyall versions
debian linuxall versions

Affected Packages

1
Language-ecosystem packages (from OSV) tied to this CVE, with the version that fixes it - the dependency-level detail NVD doesn’t carry.
RubyGems openssl CRITICAL fixed in 2.0.9

Sigma Hunt Rules

3
Exact rules name this CVE ID. Product rules name an affected product in their title. Related rules cover techniques used by actors who exploited this CVE. Showing the most relevant matches; the complete related set is on the full drill-down.
productmediumRuby on Rails Framework Exceptions
productmediumPotential Ruby Reverse Shell
productmediumRuby Inline Command Execution

Scoring & Timeline

9.8
CRITICAL · CVSS v3.0 · cve@mitre.org
View on NVD
Attack Vector
Network Adjacent Local Physical
Attack Complexity
Low High
Privileges Required
None Low High
User Interaction
None Required
Scope
Unchanged Changed
Confidentiality
None Low High
Integrity
None Low High
Availability
None Low High
Published to NVD16 Nov 2018 · 06:29 PM
CVSS VectorCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Vendor Advisories

12
suse-csafSUSE-SU-2022:15034-1
suse-csafSUSE-SU-2020:1570-1
suse-csafopenSUSE-SU-2019:1771-1
suse-csafSUSE-SU-2019:1804-1
Intelligence Graph · click any node to traverse
CVETechnique ActorTool Family
drag to reposition · click any node to traverse · button top-right enlarges
External lookups - second-class, for what we don’t hold ourselves
Vulnerabilities
CISA KEV catalog
CWE weaknesses
CAPEC attack patterns
Package vulnerabilities
Threat intelligence
Threat actors
Tools & malware
ATT&CK techniques
IOCs
Detection & defense
Sigma rules
YARA rules
Atomic Red Team tests
D3FEND countermeasures
Compliance
NIST 800-53
ISO 27001:2022
SOC 2 TSC
PCI-DSS v4.0
CIS Controls v8.1
About
All capabilities
Live statistics
Data sources
Privacy policy
Terms of service
threatengine.sh  ·  Open-source threat intelligence platform  ·  100+ authoritative sources  ·  Every fact traces to its origin