GHSA-wcv5-vrvr-3rx2
Integer Overflow or Wraparound in TensorFlow
Impact
The Grappler component of TensorFlow is vulnerable to a denial of service via CHECK-failure (assertion failure) in constant folding:
for (const auto& output_prop : output_props) {
const PartialTensorShape output_shape(output_prop.shape());
// ...
}
The output_prop tensor has a shape that is controlled by user input and this can result in triggering one of the CHECKs in the PartialTensorShape constructor. This is an instance of TFSA-2021-198 (CVE-2021-41197).
Patches
We have patched the issue in GitHub commit be7b286d40bc68cb0b56f702186cc4837d508058.
The fix will be included in TensorFlow 2.8.0. We will also cherrypick this commit on TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.3, as these are also affected and still in supported range.
For more information
Please consult our security guide for more information regarding the security model and how to contact us with issues and questions.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
What each source reports
GitHub Advisories Score used 5.5
Integer Overflow or Wraparound in TensorFlow
Impact
The Grappler component of TensorFlow is vulnerable to a denial of service via CHECK-failure (assertion failure) in constant folding:
for (const auto& output_prop : output_props) {
const PartialTensorShape output_shape(output_prop.shape());
// ...
}
The output_prop tensor has a shape that is controlled by user input and this can result in triggering one of the CHECKs in the PartialTensorShape constructor. This is an instance of TFSA-2021-198 (CVE-2021-41197).
Patches
We have patched the issue in GitHub commit be7b286d40bc68cb0b56f702186cc4837d508058.
The fix will be included in TensorFlow 2.8.0. We will also cherrypick this commit on TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.3, as these are also affected and still in supported range.
For more information
Please consult our security guide for more information regarding the security model and how to contact us with issues and questions.
- Record
GHSA-wcv5-vrvr-3rx2- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-190
- Updated
- 2026-11-02
OSV 5.5
Integer Overflow or Wraparound in TensorFlow
Impact
The Grappler component of TensorFlow is vulnerable to a denial of service via CHECK-failure (assertion failure) in constant folding:
for (const auto& output_prop : output_props) {
const PartialTensorShape output_shape(output_prop.shape());
// ...
}
The output_prop tensor has a shape that is controlled by user input and this can result in triggering one of the CHECKs in the PartialTensorShape constructor. This is an instance of TFSA-2021-198 (CVE-2021-41197).
Patches
We have patched the issue in GitHub commit be7b286d40bc68cb0b56f702186cc4837d508058.
The fix will be included in TensorFlow 2.8.0. We will also cherrypick this commit on TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.3, as these are also affected and still in supported range.
For more information
Please consult our security guide for more information regarding the security model and how to contact us with issues and questions.
- Record
GHSA-wcv5-vrvr-3rx2- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-190
- Updated
- 2026-11-02
Affected packages
| Package | Affected | Fixed |
|---|---|---|
tensorflowPyPI | before 2.5.3 | 2.5.3 |
tensorflowPyPI | 2.6.0 up to 2.6.3 | 2.6.3 |
tensorflowPyPI | 2.7.0 to 2.7.0 | 2.7.1 |
tensorflow-cpuPyPI | before 2.5.3 | 2.5.3 |
tensorflow-cpuPyPI | 2.6.0 up to 2.6.3 | 2.6.3 |
tensorflow-cpuPyPI | 2.7.0 to 2.7.0 | 2.7.1 |
tensorflow-gpuPyPI | before 2.5.3 | 2.5.3 |
tensorflow-gpuPyPI | 2.6.0 up to 2.6.3 | 2.6.3 |
tensorflow-gpuPyPI | 2.7.0 to 2.7.0 | 2.7.1 |
tensorflowPyPI | before 2.5.3, plus listed versions 0.12.00.12.11.0.01.0.11.1.0 Show 45 moreShow less1.10.01.10.11.11.01.12.01.12.21.12.31.13.11.13.21.14.01.15.01.15.21.15.31.15.41.15.51.2.01.2.11.3.01.4.01.4.11.5.01.5.11.6.01.7.01.7.11.8.01.9.02.0.02.0.12.0.22.0.32.0.42.1.02.1.12.1.22.1.32.1.42.2.02.2.12.2.22.2.32.3.02.3.12.3.22.3.32.3.4 | 2.5.3 |
Show 8 moreShow less
| Package | Affected | Fixed |
|---|---|---|
tensorflowPyPI | 2.6.0 up to 2.6.3, plus listed versions 2.6.12.6.2 | 2.6.3 |
tensorflowPyPI | 2.7.0 up to 2.7.1 | 2.7.1 |
tensorflow-cpuPyPI | before 2.5.3, plus listed versions 1.15.02.1.02.1.12.1.22.1.3 Show 18 moreShow less2.1.42.2.02.2.12.2.22.2.32.3.02.3.12.3.22.3.32.3.42.4.02.4.12.4.22.4.32.4.42.5.02.5.12.5.2 | 2.5.3 |
tensorflow-cpuPyPI | 2.6.0 up to 2.6.3, plus listed versions 2.6.12.6.2 | 2.6.3 |
tensorflow-cpuPyPI | 2.7.0 up to 2.7.1 | 2.7.1 |
tensorflow-gpuPyPI | before 2.5.3, plus listed versions 0.12.00.12.11.0.01.0.11.1.0 Show 45 moreShow less1.10.01.10.11.11.01.12.01.12.21.12.31.13.11.13.21.14.01.15.01.15.21.15.31.15.41.15.51.2.01.2.11.3.01.4.01.4.11.5.01.5.11.6.01.7.01.7.11.8.01.9.02.0.02.0.12.0.22.0.32.0.42.1.02.1.12.1.22.1.32.1.42.2.02.2.12.2.22.2.32.3.02.3.12.3.22.3.32.3.4 | 2.5.3 |
tensorflow-gpuPyPI | 2.6.0 up to 2.6.3, plus listed versions 2.6.12.6.2 | 2.6.3 |
tensorflow-gpuPyPI | 2.7.0 up to 2.7.1 | 2.7.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | GitHub Advisories, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
GHSA-wcv5-vrvr-3rx2 is a medium vulnerability (CVSS 5.5) in tensorflow, published February 9, 2022. No source lists public exploit code. Fixed in tensorflow 2.5.3.
References
Left out here: 16 versions. The JSON record has them.