ADVISORIES

Vulnerability

CVE-2021-41227

TensorFlow is an open source platform for machine learning. In affected versions the `ImmutableConst` operation in TensorFlow can be tricked into reading arbitrary memory contents. This is because the `tstring` TensorFlow string class has a special case for memory mapped strings but the operation itself does not offer any support for this datatype. 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 in PyPI

  • GHSA-j8c8-67vp-6mx7

    Arbitrary memory read in `ImmutableConst`

    Moderate CVE-2021-41227 PyPI Updated 8 July 2026
  • PYSEC-2021-419

    TensorFlow is an open source platform for machine learning. In affected versions the `ImmutableConst` operation in TensorFlow can be tricked into reading arbitrary memory contents. This is because the `tstring`…

    CVE-2021-41227 PyPI Updated 6 December 2023
  • PYSEC-2021-636

    TensorFlow is an open source platform for machine learning. In affected versions the `ImmutableConst` operation in TensorFlow can be tricked into reading arbitrary memory contents. This is because the `tstring`…

    CVE-2021-41227 PyPI Updated 6 December 2023
  • PYSEC-2021-834

    TensorFlow is an open source platform for machine learning. In affected versions the `ImmutableConst` operation in TensorFlow can be tricked into reading arbitrary memory contents. This is because the `tstring`…

    CVE-2021-41227 PyPI Updated 6 December 2023

References