CVE-2021-41207: TensorFlow - Division by 0 in ParallelConcat Implementation

tensorflow Updated 02 Oct 2025

Summary

06/03/2024
Yes i
Medium
Not published

CVE-2021-41207: Division by zero in ParallelConcat. Affects tensorflow across 3 version ranges.

>= 2.4.0, < 2.4.4 >= 2.5.0, < 2.5.2 >= 2.6.0, < 2.6.1

Fixed in 2.4.4, 2.5.2 or 2.6.1, depending on the release line you run. How to fix ↓

Also tracked for

The same CVE-2021-41207 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

TensorFlow is an open-source platform for machine learning. It provides a comprehensive ecosystem of tools, libraries, and resources for developing and deploying machine learning models. TensorFlow is widely used in various domains, including research, industry, and academia. This vulnerability affects versions 2.4.0 and above of the TensorFlow package.

Vulnerability Detail

The vulnerability in TensorFlow's implementation of ParallelConcat arises from missing input validation, which can lead to a division by zero. This vulnerability can be exploited by an attacker to cause a denial-of-service (DoS) condition or potentially execute arbitrary code. The issue has been assigned the identifier CVE-2021-41207 and has a severity rating of Medium.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 2.4.0, < 2.4.4 2.4.4
  • >= 2.5.0, < 2.5.2 2.5.2
  • >= 2.6.0, < 2.6.1 2.6.1

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

There is no known workaround for this vulnerability. It is recommended to follow the steps mentioned in the 'how_to_fix' section to update TensorFlow to a patched version.

Conclusion

The vulnerability in TensorFlow's ParallelConcat implementation can result in a division by zero, leading to a denial-of-service condition or potential code execution. Users are advised to upgrade to the latest patched version of TensorFlow or apply the appropriate patches to mitigate the risk. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for tensorflow →

Share this vulnerability

FAQ

TensorFlow is an open-source platform for machine learning that provides tools and libraries for developing and deploying machine learning models.

This vulnerability can lead to a division by zero, resulting in a denial-of-service (DoS) condition or potential execution of arbitrary code.

Versions 2.4.0 and above of the TensorFlow package are affected by this vulnerability.

To fix this vulnerability, upgrade your TensorFlow installation to version 2.7.0 or apply the appropriate patches for versions 2.6.1, 2.5.2, or 2.4.4.

No, there is no known workaround for this vulnerability. It is recommended to update TensorFlow to a patched version.

Related vulnerabilities

Recent vulnerabilities recorded for tensorflow.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 2.4.0, < 2.4.4 2.4.4
  • >= 2.5.0, < 2.5.2 2.5.2
  • >= 2.6.0, < 2.6.1 2.6.1

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback