PyPI: tensorflow-gpu

CVE-2023-25801

Safety vulnerability ID: SFTY-20230325-53164

Safety legacy ID: pyup.io-55895

Tensorflow-gpu 2.11.1 and 2.12.0 include a fix for CVE-2023-25801: Prior to versions 2.12.0 and 2.11.1, 'nn_ops.fractional_avg_pool_v2' and 'nn_ops.fractional_max_pool_v2' require the first and fourth elements of their parameter 'pooling_ratio' to be equal to 1.0, as pooling on batch and channel dimensions is not supported. https://github.com/tensorflow/tensorflow/security/advisories/GHSA-f49c-87jh-g47q

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

Overview

TensorFlow has double free in Fractional(Max/Avg)Pool

Advisory

Tensorflow-gpu 2.11.1 and 2.12.0 include a fix for CVE-2023-25801: Prior to versions 2.12.0 and 2.11.1, 'nn_ops.fractional_avg_pool_v2' and 'nn_ops.fractional_max_pool_v2' require the first and fourth elements of their parameter 'pooling_ratio' to be equal to 1.0, as pooling on batch and channel dimensions is not supported. https://github.com/tensorflow/tensorflow/security/advisories/GHSA-f49c-87jh-g47q

Affected Package

Affecting tensorflow-gpu package, versions<2.11.1>=2.12.0rc0,<2.12.0

Also affects

---

How to Fix

Upgradetensorflow-gputo2.12.02.12.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