Vulnerabilities in pkg:gem/openssl

PACKAGE
Advisory Identifier: GHSA-v6rp-3r3v-hf4p
Advisory Summary

CVE-2017-14033 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer) affecting Openssl libraries in the RubyGems ecosystem. The issue involves ruby openssl dos vulnerability. Remediation is available by upgrading affected packages to version 2.0.0.

3 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:gem/openssl

3 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:gem/openssl. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-v6rp-3r3v-hf4p CVE-2017-14033 HIGH Ruby OpenSSL DoS Vulnerability
GHSA-mmrq-6999-72v8 CVE-2018-16395 CRITICAL Ruby Openssl Allows Incorrect Value Comparison
GHSA-6h88-qjpv-p32m CVE-2016-7798 HIGH OpenSSL gem for Ruby using inadequate encryption strength

CVE-2017-14033 at a Glance

CVE Identifier CVE-2017-14033
GHSA Identifier GHSA-v6rp-3r3v-hf4p
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer
Affected Product Openssl
Package Ecosystem RubyGems
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2017-14033

To remediate this vulnerability, upgrade all affected Openssl dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

openssl fixed: 2.0.0
Upgrade openssl to 2.0.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for openssl

How to Check if You Are Affected

To determine whether your application is affected by CVE-2017-14033, inspect your project dependencies for Openssl:

inspect dependencies for openssl

Analyze the terminal output to locate any version of Openssl in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer, where the product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. this may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data. In Openssl, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

The decode method in the `OpenSSL::ASN1` module in Ruby before 2.2.8, 2.3.x before 2.3.5, and 2.4.x through 2.4.1 allows attackers to cause a denial of service (interpreter crash) via a crafted string. The `openssl` gem that contains this module is patched in version 2.0.0.

CVE-2017-14033 Affected Openssl Versions

1 component(s)
Fixed Versions:
2.0.0
Product / Package Ecosystem Affected Versions Fixed Version
openssl
RubyGems
< 2.0.0
2.0.0

References

NVD — CVE-2017-14033 NVD
https://nvd.nist.gov/vuln/detail/CVE-2017-14033
Security Fix Commit FIX COMMIT
https://github.com/ruby/openssl/commit/36bf7f403ebb6cefcaa1e7af9d8ec99e6b4bc1ed
access.redhat.com/errata/rhsa-2018:03... WEB
https://access.redhat.com/errata/RHSA-2018:0378
access.redhat.com/errata/rhsa-2018:05... WEB
https://access.redhat.com/errata/RHSA-2018:0583
access.redhat.com/errata/rhsa-2018:05... WEB
https://access.redhat.com/errata/RHSA-2018:0585
Openssl Source Repository REPOSITORY
https://github.com/ruby/openssl
Openssl Source Repository REPOSITORY
https://github.com/rubysec/ruby-advisory-db/blob/master/gems/openssl/CVE-2017-14033.yml
lists.debian.org/debian-lts-announce... WEB
https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html
Openssl Security Information SECURITY
https://security.gentoo.org/glsa/201710-18
Openssl Security Information SECURITY
https://web.archive.org/web/20210509153849/http://www.securityfocus.com/bid/100868
Openssl Security Information SECURITY
https://web.archive.org/web/20210622181826/http://www.securitytracker.com/id/1042004
Openssl Security Information SECURITY
https://web.archive.org/web/20210724095519/http://www.securitytracker.com/id/1039363
Openssl Security Information SECURITY
https://www.debian.org/security/2017/dsa-4031
www.ruby-lang.org/en/news/2017/09/14/... WEB
https://www.ruby-lang.org/en/news/2017/09/14/openssl-asn1-buffer-underrun-cve-2017-14033
www.ruby-lang.org/en/news/2017/09/14/... WEB
https://www.ruby-lang.org/en/news/2017/09/14/ruby-2-2-8-released
www.ruby-lang.org/en/news/2017/09/14/... WEB
https://www.ruby-lang.org/en/news/2017/09/14/ruby-2-3-5-released

Frequently Asked Questions

What is CVE-2017-14033?
CVE-2017-14033 is a security vulnerability in Openssl involving Ruby OpenSSL DoS Vulnerability under CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer.
Which Openssl versions are affected?
Affected versions include releases prior to 2.0.0 across affected packages: openssl.
What version fixes CVE-2017-14033?
Upgrading to 2.0.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is openssl affected?
Yes, openssl is affected in releases prior to 2.0.0. Upgrade your dependency to 2.0.0 or later.
What is the CVSS score of CVE-2017-14033?
CVE-2017-14033 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2017-14033?
CVE-2017-14033 is classified under CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer (The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.).
How can I check RubyGems dependencies for CVE-2017-14033?
Run the dependency tree command: 'inspect dependencies for openssl'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-v6rp-3r3v-hf4p",
  "modified" : "2023-10-24T13:25:43Z",
  "published" : "2022-05-14T02:03:26Z",
  "aliases" : [ "CVE-2017-14033" ],
  "summary" : "Ruby OpenSSL DoS Vulnerability",
  "details" : "The decode method in the `OpenSSL::ASN1` module in Ruby before 2.2.8, 2.3.x before 2.3.5, and 2.4.x through 2.4.1 allows attackers to cause a denial of service (interpreter crash) via a crafted string. The `openssl` gem that contains this module is patched in version 2.0.0.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "openssl"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-14033"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ruby/openssl/commit/36bf7f403ebb6cefcaa1e7af9d8ec99e6b4bc1ed"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2018:0378"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2018:0583"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2018:0585"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ruby/openssl"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/openssl/CVE-2017-14033.yml"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html"
  }, {
    "type" : "WEB",
    "url" : "https://security.gentoo.org/glsa/201710-18"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20210509153849/http://www.securityfocus.com/bid/100868"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20210622181826/http://www.securitytracker.com/id/1042004"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20210724095519/http://www.securitytracker.com/id/1039363"
  }, {
    "type" : "WEB",
    "url" : "https://www.debian.org/security/2017/dsa-4031"
  }, {
    "type" : "WEB",
    "url" : "https://www.ruby-lang.org/en/news/2017/09/14/openssl-asn1-buffer-underrun-cve-2017-14033"
  }, {
    "type" : "WEB",
    "url" : "https://www.ruby-lang.org/en/news/2017/09/14/ruby-2-2-8-released"
  }, {
    "type" : "WEB",
    "url" : "https://www.ruby-lang.org/en/news/2017/09/14/ruby-2-3-5-released"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-119" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-07-26T20:29:06Z",
    "nvd_published_at" : "2017-09-19T17:29:00Z"
  }
}