ADVISORIES

Vulnerability

CVE-2021-41196

TensorFlow is an open source platform for machine learning. In affected versions the Keras pooling layers can trigger a segfault if the size of the pool is 0 or if a dimension is negative. This is due to the TensorFlow's implementation of pooling operations where the values in the sliding window are not checked to be strictly positive. 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-m539-j985-hcr8

    Crash in `max_pool3d` when size argument is 0 or negative

    Moderate CVE-2021-41196 PyPI Updated 8 July 2026
  • PYSEC-2021-389

    TensorFlow is an open source platform for machine learning. In affected versions the Keras pooling layers can trigger a segfault if the size of the pool is 0 or if a dimension is negative. This is due to the…

    CVE-2021-41196 PyPI Updated 6 December 2023
  • PYSEC-2021-606

    TensorFlow is an open source platform for machine learning. In affected versions the Keras pooling layers can trigger a segfault if the size of the pool is 0 or if a dimension is negative. This is due to the…

    CVE-2021-41196 PyPI Updated 6 December 2023
  • PYSEC-2021-804

    TensorFlow is an open source platform for machine learning. In affected versions the Keras pooling layers can trigger a segfault if the size of the pool is 0 or if a dimension is negative. This is due to the…

    CVE-2021-41196 PyPI Updated 6 December 2023

References