CVE-2023-25399: Withdrawn Scipy Memory Leak Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-9jx5-6pgf-crrp
CVSS 5.5
CWE-400
Published
Advisory Summary

CVE-2023-25399 is a MODERATE (CVSS 5.5) scipy memory leak vulnerability vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Withdrawn libraries in the PyPI ecosystem. The issue involves scipy memory leak vulnerability. Remediation is available by upgrading affected packages to version 1.10.0.

CVE-2023-25399 at a Glance

CVE Identifier CVE-2023-25399
GHSA Identifier GHSA-9jx5-6pgf-crrp
Severity MODERATE
CVSS v3.1 Base Score 5.5
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Withdrawn
Package Ecosystem PyPI
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.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
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-2023-25399

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

scipy fixed: 1.10.0
pip install scipy>=1.10.0
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 scipy

How to Check if You Are Affected

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

pip show scipy

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Withdrawn, 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

## Withdrawn Advisory This advisory has been withdrawn because it has been found to not be an issue. Please see the issue [here](https://github.com/scipy/scipy/issues/16235#issuecomment-1625361328) for more information. ## Original Description A refcounting issue which leads to potential memory leak was discovered in scipy commit 8627df31ab in `Py_FindObjects()` function.

CVE-2023-25399 Affected Withdrawn Versions

1 component(s)
Fixed Versions:
1.10.0
Product / Package Ecosystem Affected Versions Fixed Version
scipy
PyPI
< 1.10.0
1.10.0

References

Frequently Asked Questions

What is CVE-2023-25399?
CVE-2023-25399 is a security vulnerability in Withdrawn involving scipy memory leak vulnerability under CWE-400: Uncontrolled Resource Consumption.
Which Withdrawn versions are affected?
Affected versions include releases prior to 1.10.0 across affected packages: scipy.
What version fixes CVE-2023-25399?
Upgrading to 1.10.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is scipy affected?
Yes, scipy is affected in releases prior to 1.10.0. Upgrade your dependency to 1.10.0 or later.
What is the CVSS score of CVE-2023-25399?
CVE-2023-25399 has a CVSS v3.1 base score of 5.5 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2023-25399?
CVE-2023-25399 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check PyPI dependencies for CVE-2023-25399?
Run the dependency tree command: 'pip show scipy'. 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-9jx5-6pgf-crrp",
  "modified" : "2024-05-14T20:15:44Z",
  "published" : "2023-07-05T18:30:44Z",
  "withdrawn" : "2024-05-14T20:15:44Z",
  "aliases" : [ "CVE-2023-25399" ],
  "summary" : "Withdrawn: scipy memory leak vulnerability",
  "details" : "## Withdrawn Advisory\n\nThis advisory has been withdrawn because it has been found to not be an issue. Please see the issue [here](https://github.com/scipy/scipy/issues/16235#issuecomment-1625361328) for more information.\n\n## Original Description\n\nA refcounting issue which leads to potential memory leak was discovered in scipy commit 8627df31ab in `Py_FindObjects()` function.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "scipy"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.10.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-25399"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/scipy/scipy/issues/16235"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/scipy/scipy/issues/16235#issuecomment-1625361328"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/scipy/scipy/pull/16397"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/scipy/scipy/commit/9b6521198c4f31d3f9cb525e581bea8e3e77f0a2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/scipy/PYSEC-2023-102.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/scipy/scipy"
  }, {
    "type" : "WEB",
    "url" : "http://www.square16.org/achievement/cve-2023-25399"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-07-06T21:01:56Z",
    "nvd_published_at" : "2023-07-05T17:15:09Z"
  }
}