SecurityContext

CVE-2021-29602: TensorFlow - Denial of Service

  • Cve: CVE-2021-29602
  • Name: TensorFlow - Denial of Service
  • Description: TensorFlow is an end-to-end open source platform for machine learning. The implementation of the `DepthwiseConv` TFLite operator is vulnerable to a division by zero error(https://github.com/tensorflow/tensorflow/blob/1a8e885b864c818198a5b2c0cbbeca5a1e833bc8/tensorflow/lite/kernels/depthwise_conv.cc#L287-L288). An attacker can craft a model such that `input`'s fourth dimension would be 0. The fix will be included in TensorFlow 2.5.0. We will also cherrypick this commit on TensorFlow 2.4.2, TensorFlow 2.3.3, TensorFlow 2.2.3 and TensorFlow 2.1.4, as these are also affected and still in supported range.
  • Impact: Attackers can cause runtime errors or crashes, potentially leading to denial of service or disruption of machine learning applications.
  • Remediation: Update to TensorFlow 2.5.0 or cherry-pick the fix into versions 2.4.2, 2.3.3, 2.2.3, and 2.1.4.
  • 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.00189
  • Epss percentile: 0.08509
  • Assignee: [email protected]
  • Published at: 2021-05-14T20:15:15Z
  • Age in days: 2020
  • Modified at: 2026-06-17T03:48:00Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-29602
  • 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-369Divide By Zero

Public exploits

UrlSourceAdded date
https://github.com/tensorflow/tensorflow/security/advisories/GHSA-rf3h-xgv5-2q39nvd2021-05-14

References

UrlSourceTags
https://github.com/tensorflow/tensorflow/commit/cbda3c6b2dbbd3fbdc482ff8c0170a78ec2e97d0nvdPatch, Third Party Advisory
https://github.com/tensorflow/tensorflow/security/advisories/GHSA-rf3h-xgv5-2q39nvdExploit, Patch, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
google:tensorflow>= 2.4.0, < 2.4.2; >= 2.3.0, < 2.3.3; >= 2.2.0, < 2.2.3; < 2.1.4nonvd/v1/products/google/tensorflow

Projects

RepositoryLink kindsIndexedUrl
tensorflow/tensorflowcommit, 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