Vulnerabilities in pkg:gem/red-arrow

PACKAGE
Advisory Identifier: GHSA-8cw2-jv5c-c825
Advisory Summary

CVE-2019-12408 is a HIGH (CVSS 7.5) remote code execution vulnerability (CWE-909: Missing Initialization of Resource) affecting Pyarrow libraries in the PyPI ecosystem. The issue involves missing initialization of resource in apache arrow. Remediation is available by upgrading affected packages to version 0.15.1.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:gem/red-arrow

2 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-8cw2-jv5c-c825 CVE-2019-12408 HIGH Missing Initialization of Resource in Apache Arrow
GHSA-cjw4-2w9r-r8mv CVE-2019-12410 HIGH Missing Initialization of Resource in Apache Arrow

CVE-2019-12408 at a Glance

CVE Identifier CVE-2019-12408
GHSA Identifier GHSA-8cw2-jv5c-c825
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-909: Missing Initialization of Resource
Affected Product Pyarrow
Package Ecosystem PyPI
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.1/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-2019-12408

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

pyarrow fixed: 0.15.1
pip install pyarrow>=0.15.1
red-arrow fixed: 0.15.1
Upgrade red-arrow to 0.15.1
Verify Direct and Transitive Dependencies

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

pip show pyarrow

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2019-12408, inspect your installed packages using pip:

pip show pyarrow

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

Note: The pip show pyarrow command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-909: Missing Initialization of Resource, where the product does not initialize a critical resource. In Pyarrow, 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

It was discovered that the C++ implementation (which underlies the R, Python and Ruby implementations) of Apache Arrow 0.14.0 to 0.14.1 had a uninitialized memory bug when building arrays with null values in some cases. This can lead to uninitialized memory being unintentionally shared if Arrow Arrays are transmitted over the wire (for instance with Flight) or persisted in the streaming IPC and file formats.

CVE-2019-12408 Affected Pyarrow Versions

2 component(s)
Fixed Versions:
0.15.1
Product / Package Ecosystem Affected Versions Fixed Version
pyarrow
PyPI
≥ 0.14.0
< 0.15.1
0.15.1
red-arrow
RubyGems
≥ 0.14.0
< 0.15.1
0.15.1

References

Frequently Asked Questions

What is CVE-2019-12408?
CVE-2019-12408 is a security vulnerability in Pyarrow involving Missing Initialization of Resource in Apache Arrow under CWE-909: Missing Initialization of Resource.
Which Pyarrow versions are affected?
Affected versions include releases prior to 0.15.1 across affected packages: pyarrow, red-arrow.
What version fixes CVE-2019-12408?
Upgrading to 0.15.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is pyarrow affected?
Yes, pyarrow is affected in releases prior to 0.15.1. Upgrade your dependency to 0.15.1 or later.
Is red-arrow affected?
Yes, red-arrow is affected in releases prior to 0.15.1. Upgrade your dependency to 0.15.1 or later.
What is the CVSS score of CVE-2019-12408?
CVE-2019-12408 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2019-12408?
CVE-2019-12408 is classified under CWE-909: Missing Initialization of Resource (The product does not initialize a critical resource.).
How can I check PyPI dependencies for CVE-2019-12408?
Run the dependency tree command: 'pip show pyarrow'. 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-8cw2-jv5c-c825",
  "modified" : "2024-10-21T21:04:09Z",
  "published" : "2022-05-24T17:00:40Z",
  "aliases" : [ "CVE-2019-12408" ],
  "summary" : "Missing Initialization of Resource in Apache Arrow",
  "details" : "It was discovered that the C++ implementation (which underlies the R, Python and Ruby implementations) of Apache Arrow 0.14.0 to 0.14.1 had a uninitialized memory bug when building arrays with null values in some cases. This can lead to uninitialized memory being unintentionally shared if Arrow Arrays are transmitted over the wire (for instance with Flight) or persisted in the streaming IPC and file formats.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "pyarrow"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.14.0"
      }, {
        "fixed" : "0.15.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "red-arrow"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.14.0"
      }, {
        "fixed" : "0.15.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-12408"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/pyarrow/PYSEC-2019-195.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/red-arrow/CVE-2019-12408.yml"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/49f067b1c5fb7493d952580f0d2d032819ba351f7a78743c21126269@%3Cdev.arrow.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/efd8bbf57427d3c303b5316d208a335f8d0c0dbe0dc4c87cfa995073@%3Cannounce.apache.org%3E"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-909" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-06-28T14:36:34Z",
    "nvd_published_at" : "2019-11-08T19:15:00Z"
  }
}