CVE-2018-16395 Ruby Openssl Allows Incorrect Value Comparison
CriticalCVSS 9.8
EPSS 10.7%
PoC
- Published
- Updated
- Exploit status
- Proof-of-concept only
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| rubygems openssl(RubyGems) | < 2.0.9 | 2.0.9 |
| rubygems openssl(RubyGems) | >= 2.1.0, < 2.1.2 | 2.1.2 |
| rubygems openssl(RubyGems) | = 2.0.0 | No fix listed |
| rubygems openssl(RubyGems) | = 2.0.0.beta.1 | No fix listed |
| rubygems openssl(RubyGems) | = 2.0.0.beta.2 | No fix listed |
| rubygems openssl(RubyGems) | = 2.0.1 | No fix listed |
| rubygems openssl(RubyGems) | = 2.0.2 | No fix listed |
| rubygems openssl(RubyGems) | = 2.0.3 | No fix listed |
| rubygems openssl(RubyGems) | = 2.0.4 | No fix listed |
| rubygems openssl(RubyGems) | = 2.0.5 | No fix listed |
| rubygems openssl(RubyGems) | = 2.0.6 | No fix listed |
| rubygems openssl(RubyGems) | = 2.0.7 | No fix listed |
| rubygems openssl(RubyGems) | = 2.0.8 | No fix listed |
| rubygems openssl(RubyGems) | = 2.1.0 | No fix listed |
| rubygems openssl(RubyGems) | = 2.1.1 | No fix listed |
| ruby-lang openssl | < 2.1.2 | 2.1.2 |
| ruby-lang ruby | >= 2.3.0, <= 2.3.7 | No fix listed |
| ruby-lang ruby | >= 2.4.0, <= 2.4.4 | No fix listed |
| ruby-lang ruby | >= 2.5.0, <= 2.5.1 | No fix listed |
| ruby-lang ruby | = 2.6.0-preview1 | No fix listed |
| ruby-lang ruby | = 2.6.0-preview2 | No fix listed |
| Canonical Ubuntu Linux | = 14.04 | No fix listed |
| Canonical Ubuntu Linux | = 16.04 | No fix listed |
| Canonical Ubuntu Linux | = 18.04 | No fix listed |
| Canonical Ubuntu Linux | = 18.10 | No fix listed |
Show 23 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian linux | = 8.0 | No fix listed |
| debian linux | = 9.0 | No fix listed |
| redhat enterprise linux | = 7.4 | No fix listed |
| alpine/ruby(Alpine:v3.11) | >= 2.5.0, < 2.5.2-r0 | 2.5.2-r0 |
| alpine/ruby(Alpine:v3.12) | >= 2.5.0, < 2.5.2-r0 | 2.5.2-r0 |
| alpine/ruby(Alpine:v3.13) | >= 2.5.0, < 2.5.2-r0 | 2.5.2-r0 |
| alpine/ruby(Alpine:v3.14) | >= 2.5.0, < 2.5.2-r0 | 2.5.2-r0 |
| alpine/ruby(Alpine:v3.15) | >= 2.5.0, < 2.5.2-r0 | 2.5.2-r0 |
| alpine/ruby(Alpine:v3.16) | >= 2.5.0, < 2.5.2-r0 | 2.5.2-r0 |
| alpine/ruby(Alpine:v3.17) | >= 2.5.0, < 2.5.2-r0 | 2.5.2-r0 |
| alpine/ruby(Alpine:v3.18) | >= 2.5.0, < 2.5.2-r0 | 2.5.2-r0 |
| alpine/ruby(Alpine:v3.19) | >= 2.5.0, < 2.5.2-r0 | 2.5.2-r0 |
| alpine/ruby(Alpine:v3.20) | >= 2.5.0, < 2.5.2-r0 | 2.5.2-r0 |
| alpine/ruby(Alpine:v3.21) | >= 2.5.0, < 2.5.2-r0 | 2.5.2-r0 |
| alpine/ruby(Alpine:v3.22) | >= 2.5.0, < 2.5.2-r0 | 2.5.2-r0 |
| alpine/ruby(Alpine:v3.23) | >= 2.5.0, < 2.5.2-r0 | 2.5.2-r0 |
| alpine/ruby(Alpine:v3.24) | >= 2.5.0, < 2.5.2-r0 | 2.5.2-r0 |
| alpine/ruby(Alpine:v3.4) | >= 2.3.0, < 2.3.8-r0 | 2.3.8-r0 |
| alpine/ruby(Alpine:v3.5) | >= 2.3.0, < 2.3.8-r0 | 2.3.8-r0 |
| alpine/ruby(Alpine:v3.6) | >= 2.4.0, < 2.4.5-r0 | 2.4.5-r0 |
| alpine/ruby(Alpine:v3.7) | >= 2.4.0, < 2.4.5-r0 | 2.4.5-r0 |
| alpine/ruby(Alpine:v3.8) | >= 2.5.0, < 2.5.2-r0 | 2.5.2-r0 |
| alpine/ruby(Alpine:v3.9) | >= 2.5.0, < 2.5.2-r0 | 2.5.2-r0 |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- hackerone.com patch third-party-advisory
- RHSA-2018:3729 third-party-advisory vendor-advisory
- RHSA-2018:3730 third-party-advisory vendor-advisory
- RHSA-2018:3731 third-party-advisory vendor-advisory
- RHSA-2018:3738 third-party-advisory vendor-advisory
- RHSA-2019:1948 third-party-advisory vendor-advisory
- RHSA-2019:2565 vendor-advisory
- [debian-lts-announce] 20181028 [SECURITY] [DLA 1558-1] ruby2.1 security update mailing-list third-party-advisory
- security.netapp.com third-party-advisory
- USN-3808-1 third-party-advisory vendor-advisory
- DSA-4332 third-party-advisory vendor-advisory
- www.oracle.com
- www.ruby-lang.org mitigation vendor-advisory
- www.ruby-lang.org release-notes vendor-advisory
- www.ruby-lang.org release-notes vendor-advisory
- www.ruby-lang.org release-notes vendor-advisory
- www.ruby-lang.org release-notes vendor-advisory
- openSUSE-SU-2019:1771 mailing-list third-party-advisory vendor-advisory
- github.com patch
- github.com exploit
- web.archive.org
- github.com
- 1042105 third-party-advisory vdb-entry
- security.alpinelinux.org vendor-advisory