SecurityContext

CVE-2022-35952: TensorFlow - Denial of Service

  • Cve: CVE-2022-35952
  • Name: TensorFlow - Denial of Service
  • Description: TensorFlow is an open source platform for machine learning. The `UnbatchGradOp` function takes an argument `id` that is assumed to be a scalar. A nonscalar `id` can trigger a `CHECK` failure and crash the program. It also requires its argument `batch_index` to contain three times the number of elements as indicated in its `batch_index.dim_size(0)`. An incorrect `batch_index` can trigger a `CHECK` failure and crash the program. We have patched the issue in GitHub commit 5f945fc6409a3c1e90d6970c9292f805f6e6ddf2. The fix will be included in TensorFlow 2.10.0. We will also cherrypick this commit on TensorFlow 2.9.1, TensorFlow 2.8.1, and TensorFlow 2.7.2, as these are also affected and still in supported range. There are no known workarounds for this issue.
  • Impact: Attackers can cause crashes or denial of service by providing malformed `id` or `batch_index` inputs, disrupting service availability.
  • Remediation: Update to TensorFlow 2.10.0 or apply commit 5f945fc6409a3c1e90d6970c9292f805f6e6ddf2 in affected versions.
  • Vulnerability impact: denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Epss score: 0.00732
  • Epss percentile: 0.55249
  • Assignee: [email protected]
  • Published at: 2022-09-16T20:15:10Z
  • Age in days: 1530
  • Modified at: 2026-06-17T04:52:35Z
  • Patch available: yes
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-35952
  • 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-617Reachable Assertion

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/tensorflow/tensorflow/commit/5f945fc6409a3c1e90d6970c9292f805f6e6ddf2Patch, Third Party Advisory
https://github.com/tensorflow/tensorflow/security/advisories/GHSA-h5vq-gw2c-pq47Patch, Third Party Advisory
https://github.com/tensorflow/tensorflow/blob/769eddaf479c8debead9a59a72617d6ed6f0fe10/tensorflow/core/kernels/batch_kernels.cc#L891Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
google:tensorflow= 2.10 rc3; = 2.10 rc0; = 2.10 rc1; = 2.10 rc2; >= 2.9.0, < 2.9.1; >= 2.8.0, < 2.8.1; >= 2.7.0, < 2.7.2nonvd/v1/products/google/tensorflow

Projects

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

Index

  • Repositories: 363
  • Repositories high signal: 138
  • Packages: 3

Exploitation

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