All reports
Critical

Ruby Openssl Allows Incorrect Value Comparison

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
RubyGemsopenssl
Affected versions
>= 2.1.0, < 2.1.2
Fixed version
2.1.2
RubyGemsopenssl
Affected versions
< 2.0.9
Fixed version
2.0.9

Exploitation

CVE-2018-16395

Probability of exploitation in the next 30 days: 10.72%

FIRST EPSS · 2026-11-18

Description

An issue was discovered in the OpenSSL library in Ruby 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.

Links

Credits

  • postmodern