CVE-2023-25399: Withdrawn Scipy Memory Leak Vulnerability Vulnerability
MODERATECVE-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
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).
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.
pip install scipy>=1.10.0
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
CVE-2023-25399 Affected Withdrawn Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
scipy
|
PyPI |
< 1.10.0
|
1.10.0
|
References
Frequently Asked Questions
What is CVE-2023-25399?
Which Withdrawn versions are affected?
What version fixes CVE-2023-25399?
Is scipy affected?
What is the CVSS score of CVE-2023-25399?
What CWE is associated with CVE-2023-25399?
How can I check PyPI dependencies for CVE-2023-25399?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}