Vulnerabilities · 2018 · Ruby-lang
CVE-2018-16395
Ruby-lang Openssl vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Openssl, Ruby, Ubuntu Linux, Debian Linux, Enterprise Linux. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Ruby-lang Openssl runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- www.ruby-lang.org/en/news/2018/10/17/openssl-x509-name-equality-check-does-not-work-correc · Mitigation
- www.ruby-lang.org/en/news/2018/10/17/ruby-2-3-8-released/ · Vendor Advisory
- www.ruby-lang.org/en/news/2018/10/17/ruby-2-4-5-released/ · Vendor Advisory
- www.ruby-lang.org/en/news/2018/10/17/ruby-2-5-2-released/ · Vendor Advisory
- www.ruby-lang.org/en/news/2018/11/06/ruby-2-6-0-preview3-released/ · Vendor Advisory
- hackerone.com/reports/387250 · Patch
- lists.opensuse.org/opensuse-security-announce/2019-07/msg00036.html · Third Party Advisory
- www.securitytracker.com/id/1042105 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2018-16395
- cve.org/CVERecord?id=CVE-2018-16395
More vulnerabilities in Ruby-lang products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.