CVE-2017-15364: Ccsv Ccsv Double Free Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-5gxp-c379-pj42
CVSS 5.5
CWE-415
Published
Advisory Summary

CVE-2017-15364 is a MODERATE (CVSS 5.5) ccsv double free vulnerability vulnerability (CWE-415: Double Free) affecting Ccsv libraries in the RubyGems ecosystem. The issue involves ccsv double free vulnerability. Remediation is available in the latest vendor maintenance releases.

CVE-2017-15364 at a Glance

CVE Identifier CVE-2017-15364
GHSA Identifier GHSA-5gxp-c379-pj42
Severity MODERATE
CVSS v3.1 Base Score 5.5
CWE Classification CWE-415: Double Free
Affected Product Ccsv
Package Ecosystem RubyGems
Published Date
Last Updated

Security Impact

CVSS: 5.5

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

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

How to Fix CVE-2017-15364

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

ccsv fixed: Latest secure release
Upgrade ccsv to Latest secure release
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 ccsv

How to Check if You Are Affected

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

inspect dependencies for ccsv

Analyze the terminal output to locate any version of Ccsv in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), 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-415: Double Free, where the product calls free() twice on the same memory address. In Ccsv, 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 foreach function in `ext/ccsv.c` in Ccsv 1.1.0 allows remote attackers to cause a denial of service (double free and application crash) or possibly have unspecified other impact via a crafted file.

CVE-2017-15364 Affected Ccsv Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
ccsv
RubyGems
≤ 1.1.0

References

Frequently Asked Questions

What is CVE-2017-15364?
CVE-2017-15364 is a security vulnerability in Ccsv involving ccsv Double Free vulnerability under CWE-415: Double Free.
Which Ccsv versions are affected?
Affected versions include releases prior to current release patches across affected packages: ccsv.
What version fixes CVE-2017-15364?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is ccsv affected?
Yes, ccsv is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2017-15364?
CVE-2017-15364 has a CVSS v3.1 base score of 5.5 (MODERATE) with vector string CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2017-15364?
CVE-2017-15364 is classified under CWE-415: Double Free (The product calls free() twice on the same memory address.).
How can I check RubyGems dependencies for CVE-2017-15364?
Run the dependency tree command: 'inspect dependencies for ccsv'. 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-5gxp-c379-pj42",
  "modified" : "2023-01-27T00:53:20Z",
  "published" : "2022-05-17T00:29:07Z",
  "aliases" : [ "CVE-2017-15364" ],
  "summary" : "ccsv Double Free vulnerability",
  "details" : "The foreach function in `ext/ccsv.c` in Ccsv 1.1.0 allows remote attackers to cause a denial of service (double free and application crash) or possibly have unspecified other impact via a crafted file.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "ccsv"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "1.1.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-15364"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/evan/ccsv/issues/15"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/evan/ccsv"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/ccsv/CVE-2017-15364.yml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-415" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-01-27T00:53:20Z",
    "nvd_published_at" : "2017-10-15T19:29:00Z"
  }
}