SecurityContext

CVE-2021-37669: TensorFlow - Denial of Service

  • Cve: CVE-2021-37669
  • Name: TensorFlow - Denial of Service
  • Description: TensorFlow is an end-to-end open source platform for machine learning. In affected versions an attacker can cause denial of service in applications serving models using `tf.raw_ops.NonMaxSuppressionV5` by triggering a division by 0. The [implementation](https://github.com/tensorflow/tensorflow/blob/460e000de3a83278fb00b61a16d161b1964f15f4/tensorflow/core/kernels/image/non_max_suppression_op.cc#L170-L271) uses a user controlled argument to resize a `std::vector`. However, as `std::vector::resize` takes the size argument as a `size_t` and `output_size` is an `int`, there is an implicit conversion to unsigned. If the attacker supplies a negative value, this conversion results in a crash. A similar issue occurs in `CombinedNonMaxSuppression`. We have patched the issue in GitHub commit 3a7362750d5c372420aa8f0caf7bf5b5c3d0f52d and commit [b5cdbf12ffcaaffecf98f22a6be5a64bb96e4f58. The fix will be included in TensorFlow 2.6.0. We will also cherrypick this commit on TensorFlow 2.5.1, TensorFlow 2.4.3, and TensorFlow 2.3.4, as these are also affected and still in supported range.
  • Impact: Attackers can cause denial of service by triggering a division by zero, leading to application crash or unavailability.
  • Remediation: Update to TensorFlow 2.6.0 or apply the patch commits b5cdbf12ffcaaffecf98f22a6be5a64bb96e4f58 and 3a7362750d5c372420aa8f0caf7bf5b5c3d0f52d, or upgrade to the latest supported version.
  • Vulnerability impact: denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.5
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
  • Epss score: 0.00173
  • Epss percentile: 0.06676
  • Assignee: [email protected]
  • Published at: 2021-08-12T23:15:07Z
  • Age in days: 1930
  • Modified at: 2026-06-17T04:00:56Z
  • Patch available: yes
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-37669
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: vulnerability type, requirements, hackerone

Cwe

IdName
CWE-681Incorrect Conversion between Numeric Types

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/tensorflow/tensorflow/commit/3a7362750d5c372420aa8f0caf7bf5b5c3d0f52dPatch, Third Party Advisory
https://github.com/tensorflow/tensorflow/commit/b5cdbf12ffcaaffecf98f22a6be5a64bb96e4f58Patch, Third Party Advisory
https://github.com/tensorflow/tensorflow/security/advisories/GHSA-vmjw-c2vp-p33cThird Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
google:tensorflow= 2.6.0 rc0; = 2.6.0 rc1; = 2.6.0 rc2; = 2.5.0; >= 2.4.0, < 2.4.3; >= 2.3.0, < 2.3.4nonvd/v1/products/google/tensorflow

Projects

RepositoryLink kindsIndexedUrl
tensorflow/tensorflowcommit, fix, security_advisoryyes/v1/repositories/tensorflow/tensorflow

Index

  • Repositories: 340
  • Repositories high signal: 133
  • Packages: 3

Exploitation

  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts