PyPI: cupy

SFTY-20240118-10473

Safety legacy ID: pyup.io-64284

Cupy 12.3.0 fixes a race condition in the function csr2dense. It occurred during the conversion of Compressed Sparse Row (CSR) matrices to dense matrices in multithreaded environments. https://github.com/cupy/cupy/pull/7724/commits/734dc0e1a3e9af928f622b80f16148f8c47393ea

Created at: Nov 5, 2025Updated at: Nov 5, 2025

Overview

Cupy 12.3.0 fixes a race condition in the function csr2dense. It occurred during the conversion of Compressed Sparse Row (CSR) matrices to dense matrices in multithreaded environments. https://github.com/cupy/cupy/pull/7724/commits/734dc0e1a3e9af928f622b80f16148f8c47393ea

Advisory

Cupy 12.3.0 fixes a race condition in the function csr2dense. It occurred during the conversion of Compressed Sparse Row (CSR) matrices to dense matrices in multithreaded environments. https://github.com/cupy/cupy/pull/7724/commits/734dc0e1a3e9af928f622b80f16148f8c47393ea

Affected Package

Affecting cupy package, versions<12.3.0

Also affects

---

How to Fix

Upgradecupyto12.3.0or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more