SecurityContext

CVE-2021-29544: TensorFlow - Denial of Service

  • Cve: CVE-2021-29544
  • Name: TensorFlow - Denial of Service
  • Description: TensorFlow is an end-to-end open source platform for machine learning. An attacker can trigger a denial of service via a `CHECK`-fail in `tf.raw_ops.QuantizeAndDequantizeV4Grad`. This is because the implementation does not validate the rank of the `input_*` tensors. In turn, this results in the tensors being passes as they are to `QuantizeAndDequantizePerChannelGradientImpl`. However, the `vec<T>` method, requires the rank to 1 and triggers a `CHECK` failure otherwise. The fix will be included in TensorFlow 2.5.0. We will also cherrypick this commit on TensorFlow 2.4.2 as this is the only other affected version.
  • Impact: Attackers can cause a denial of service by crashing the system through crafted tensors, disrupting service availability.
  • Remediation: Update to TensorFlow 2.5.0 or apply the cherrypick fix on TensorFlow 2.4.2.
  • 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.0031
  • Epss percentile: 0.24221
  • Assignee: [email protected]
  • Published at: 2021-05-14T20:15:12Z
  • Age in days: 2020
  • Modified at: 2026-06-17T03:47:52Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 4
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-29544
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: vulnerability type, requirements, hackerone

Cwe

IdName
CWE-754Improper Check for Unusual or Exceptional Conditions

Public exploits

UrlSourceAdded date
https://github.com/tensorflow/tensorflow/security/advisories/GHSA-6g85-3hm8-83f9nvd2021-05-14

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/tensorflow/tensorflow/commit/20431e9044cf2ad3c0323c34888b192f3289af6bPatch, Third Party Advisory
https://github.com/tensorflow/tensorflow/security/advisories/GHSA-6g85-3hm8-83f9Exploit, Patch, Third Party Advisory
https://github.com/tensorflow/tensorflow/blob/95078c145b5a7a43ee046144005f733092756ab5/tensorflow/core/kernels/quantize_and_dequantize_op.cc#L162-L163
https://github.com/tensorflow/tensorflow/blob/95078c145b5a7a43ee046144005f733092756ab5/tensorflow/core/kernels/quantize_and_dequantize_op.h#L295-L306

Products

ProductAffectedPlatform boundSourcesUrl
google:tensorflow>= 2.4.0, < 2.4.2nonvd/v1/products/google/tensorflow

Projects

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

Index

  • Repositories: 331
  • Repositories high signal: 130
  • Packages: 3

Exploitation

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