Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-41207

TensorFlow is an open source platform for machine learning. In affected versions the implementation of `ParallelConcat` misses some input validation and can produce a division by 0. 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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-41207
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 12:40 UTC · Revision 1

Source evidence

CVE-2021-41207

core-osv · Original source

Published 5 Nov 2021, 22:15 UTC

TensorFlow is an open source platform for machine learning. In affected versions the implementation of `ParallelConcat` misses some input validation and can produce a division by 0. 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.

osv:CVE-2021-41207
Complete source record
{
  "id": "92d372ac26e266c045aa287d7f4c9a6fbb5aa89d18c1e5e47150e179e7ba706e",
  "url": "https://osv.dev/vulnerability/CVE-2021-41207",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-41207",
    "summary": "TensorFlow is an open source platform for machine learning. In affected versions the implementation of `ParallelConcat` misses some input validation and can produce a division by 0. 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.",
    "evidence": "osv:CVE-2021-41207",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2021-41207",
      "aliases": [
        "BIT-tensorflow-2021-41207",
        "CVE-2021-41207",
        "GHSA-7v94-64hj-m82h",
        "PYSEC-2021-399",
        "PYSEC-2021-616",
        "PYSEC-2021-814"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/tensorflow/tensorflow",
              "type": "GIT",
              "events": [
                {
                  "introduced": "582c8d236cb079023657287c318ff26adb239002"
                },
                {
                  "fixed": "64918868e2154b06c7479347a59a4230f785e9fa"
                },
                {
                  "introduced": "a4dfb8d1a71385bd6d122e4f27f86dcebb96712d"
                },
                {
                  "fixed": "957590ea15cc03ee2e00fc61934647d54836676f"
                },
                {
                  "introduced": "919f693420e35d00c8d0a42100837ae3718f7927"
                },
                {
                  "fixed": "3aa40c3ce9d16eae296f086bc4ac4d62deb2affc"
                },
                {
                  "introduced": "ce35e5c3a8efdb8161c6a85c8fb9ffb5bbdc9ffd"
                },
                {
                  "last_affected": "ff68385595088304cf772086b9a259a65b007622"
                },
                {
                  "fixed": "f2c3931113eaafe9ef558faaddd48e00a6606235"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.4.0"
                      },
                      {
                        "fixed": "2.4.4"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.5.0"
                      },
                      {
                        "fixed": "2.5.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.6.0"
                      },
                      {
                        "fixed": "2.6.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:google:tensorflow:2.7.0:rc0:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.7.0-rc0"
                      },
                      {
                        "last_affected": "2.7.0-rc0"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:google:tensorflow:2.7.0:rc1:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.7.0-rc1"
                      },
                      {
                        "last_affected": "2.7.0-rc1"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "range": [
                      {
                        "fixed": "f2c3931113eaafe9ef558faaddd48e00a6606235"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.7.0-rc0",
            "2.7.0-rc1",
            "v2.7.0-rc1",
            "v2.4.3",
            "v2.6.0",
            "v2.5.1",
            "v2.7.0-rc0",
            "v2.4.2",
            "v2.5.0",
            "v2.4.1",
            "v2.4.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-41207.json",
            "vanir_signatures": [
              {
                "id": "CVE-2021-41207-db85b999",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "129095244854036632173131377968883283926",
                    "59391607675454624616787070319331966422",
                    "254841050197655582270788966355686820730",
                    "31661765596769610621690290177303759814"
                  ]
                },
                "source": "https://github.com/tensorflow/tensorflow/commit/f2c3931113eaafe9ef558faaddd48e00a6606235",
                "target": {
                  "file": "tensorflow/core/kernels/inplace_ops.cc"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T14:11:01Z"
          }
        }
      ],
      "modified": "2026-10-20T14:11:01.914776786Z",
      "provider": "osv",
      "references": [
        "https://github.com/tensorflow/tensorflow/security/advisories/GHSA-7v94-64hj-m82h",
        "https://github.com/tensorflow/tensorflow/commit/f2c3931113eaafe9ef558faaddd48e00a6606235"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-41207",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 388699,
  "published_at": "2021-11-05T22:15:08.47+00:00"
}