ADVISORIES

Vulnerability

CVE-2021-41216

TensorFlow is an open source platform for machine learning. In affected versions the shape inference function for `Transpose` is vulnerable to a heap buffer overflow. This occurs whenever `perm` contains negative elements. The shape inference function does not validate that the indices in `perm` are all valid. The fix will be included in TensorFlow 2.7.0. We will also cherrypick this commit on TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.4, as these are also affected and still in supported range.

4 advisories report this vulnerability, across 1 ecosystem.

Medium severity PyPI 4

Advisories

  • GHSA-3ff2-r28g-w7h9

    Heap buffer overflow in `Transpose`

    Moderate CVE-2021-41216 PyPI Updated 8 July 2026
  • PYSEC-2021-408

    TensorFlow is an open source platform for machine learning. In affected versions the shape inference function for `Transpose` is vulnerable to a heap buffer overflow. This occurs whenever `perm` contains negative…

    CVE-2021-41216 PyPI Updated 6 December 2023
  • PYSEC-2021-625

    TensorFlow is an open source platform for machine learning. In affected versions the shape inference function for `Transpose` is vulnerable to a heap buffer overflow. This occurs whenever `perm` contains negative…

    CVE-2021-41216 PyPI Updated 6 December 2023
  • PYSEC-2021-823

    TensorFlow is an open source platform for machine learning. In affected versions the shape inference function for `Transpose` is vulnerable to a heap buffer overflow. This occurs whenever `perm` contains negative…

    CVE-2021-41216 PyPI Updated 6 December 2023

References