PyPI: mindspore

CVE-2021-33652

Safety vulnerability ID: SFTY-20220627-98097

Safety legacy ID: pyup.io-65826

When the Reduce operator run operation is executed, if there is a value of 0 in the parameter axis_sizes element, it will cause a division by 0 exception.

Created at: Jul 5, 2026Updated at: Jul 5, 2026

Overview

When the Reduce operator run operation is executed, if there is a value of 0 in the parameter axis_sizes element, it will cause a division by 0 exception.

Advisory

When the Reduce operator run operation is executed, if there is a value of 0 in the parameter axis_sizes element, it will cause a division by 0 exception.

Affected Package

Affecting mindspore package, versions>=0.7.0,<1.3.0

Also affects

---

How to Fix

Upgrademindsporeto2.0.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