PyPI: tensorflow-macos

CVE-2021-41208

Safety vulnerability ID: SFTY-20211105-15599

Safety legacy ID: pyup.io-58387

Tensorflow-macos versions 2.5.3, 2.6.3 and 2.7.1 include a fix for CVE-2021-41208: In affected versions, the code for boosted trees in TensorFlow is still missing validation. As a result, attackers can trigger denial of service (via dereferencing 'nullptr's or via 'CHECK'-failures) as well as abuse undefined behavior (binding references to 'nullptr's). An attacker can also read and write from heap buffers, depending on the API that gets used and the arguments that are passed to the call. Given that the boosted trees implementation in TensorFlow is unmaintained, it is recommend to no longer use these APIs. TensorFlow's boosted trees APIs will be deprecated in subsequent releases. https://github.com/tensorflow/tensorflow/security/advisories/GHSA-57wx-m983-2f88 https://github.com/tensorflow/tensorflow/commit/5c8c9a8bfe750f9743d0c859bae112060b216f5c https://github.com/tensorflow/tensorflow/security/advisories/GHSA-h6gw-r52c-724r

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

Overview

Incomplete validation in boosted trees code

Advisory

Tensorflow-macos versions 2.5.3, 2.6.3 and 2.7.1 include a fix for CVE-2021-41208: In affected versions, the code for boosted trees in TensorFlow is still missing validation. As a result, attackers can trigger denial of service (via dereferencing 'nullptr's or via 'CHECK'-failures) as well as abuse undefined behavior (binding references to 'nullptr's). An attacker can also read and write from heap buffers, depending on the API that gets used and the arguments that are passed to the call. Given that the boosted trees implementation in TensorFlow is unmaintained, it is recommend to no longer use these APIs. TensorFlow's boosted trees APIs will be deprecated in subsequent releases. https://github.com/tensorflow/tensorflow/security/advisories/GHSA-57wx-m983-2f88 https://github.com/tensorflow/tensorflow/commit/5c8c9a8bfe750f9743d0c859bae112060b216f5c https://github.com/tensorflow/tensorflow/security/advisories/GHSA-h6gw-r52c-724r

Affected Package

Affecting tensorflow-macos package, versions<2.5.3>=2.6.0rc0,<2.6.3>=2.7.0rc0,<2.7.1

Also affects

---

How to Fix

Upgradetensorflow-macosto2.8.02.8.02.8.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