Vulnerabilities in pkg:pypi/scipy

PACKAGE
Advisory Identifier: GHSA-xp76-357g-9wqq
Advisory Summary

CVE-2013-4251 is a HIGH (CVSS 7.8) scipy creates insecure temporary directories vulnerability (CWE-269: Improper Privilege Management) affecting Scipy libraries in the PyPI ecosystem. The issue involves scipy creates insecure temporary directories. Remediation is available by upgrading affected packages to version 0.12.1.

3 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/scipy

3 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-xp76-357g-9wqq CVE-2013-4251 HIGH SciPy creates insecure temporary directories
GHSA-9jx5-6pgf-crrp CVE-2023-25399 MODERATE Withdrawn: scipy memory leak vulnerability
GHSA-jrfm-2h82-xg28 CVE-2023-29824 CRITICAL Withdrawn: Use after free in SciPy

CVE-2013-4251 at a Glance

CVE Identifier CVE-2013-4251
GHSA Identifier GHSA-xp76-357g-9wqq
Severity HIGH
CVSS v3.1 Base Score 7.8
CWE Classification CWE-269: Improper Privilege Management
Affected Product Scipy
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.8

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:H/I:H/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 High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2013-4251

To remediate this vulnerability, upgrade all affected Scipy 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: 0.12.1
pip install scipy>=0.12.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 scipy

How to Check if You Are Affected

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

pip show scipy

Analyze the terminal output to locate any version of Scipy in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.12.1), 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-269: Improper Privilege Management, where the product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor. In Scipy, 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 `scipy.weave` component in SciPy before 0.12.1 creates insecure temporary directories.

CVE-2013-4251 Affected Scipy Versions

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

References

Frequently Asked Questions

What is CVE-2013-4251?
CVE-2013-4251 is a security vulnerability in Scipy involving SciPy creates insecure temporary directories under CWE-269: Improper Privilege Management.
Which Scipy versions are affected?
Affected versions include releases prior to 0.12.1 across affected packages: scipy.
What version fixes CVE-2013-4251?
Upgrading to 0.12.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is scipy affected?
Yes, scipy is affected in releases prior to 0.12.1. Upgrade your dependency to 0.12.1 or later.
What is the CVSS score of CVE-2013-4251?
CVE-2013-4251 has a CVSS v3.1 base score of 7.8 (HIGH) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2013-4251?
CVE-2013-4251 is classified under CWE-269: Improper Privilege Management (The product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor.).
How can I check PyPI dependencies for CVE-2013-4251?
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-xp76-357g-9wqq",
  "modified" : "2024-10-22T16:44:15Z",
  "published" : "2022-05-05T00:28:59Z",
  "aliases" : [ "CVE-2013-4251" ],
  "summary" : "SciPy creates insecure temporary directories",
  "details" : "The `scipy.weave` component in SciPy before 0.12.1 creates insecure temporary directories.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "scipy"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.12.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-4251"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/scipy/scipy/commit/bd296e0336420b840fcd2faabb97084fd252a973"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/cve-2013-4251"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2013-4251"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.suse.com/show_bug.cgi?id=CVE-2013-4251"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/88052"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/scipy/PYSEC-2019-156.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/scipy/scipy"
  }, {
    "type" : "WEB",
    "url" : "https://security-tracker.debian.org/tracker/CVE-2013-4251"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2013-November/120696.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2013-October/119759.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2013-October/119771.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-269" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-29T09:54:20Z",
    "nvd_published_at" : "2019-11-04T20:15:00Z"
  }
}